mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 17:24:17 +08:00
05e70e32f7
We currently have two sets of TV properties. The first one is there to deal with analog TV properties, creating properties such as the TV mode, subconnectors, saturation, hue and so on. It's created by calling the drm_mode_create_tv_properties() function. The second one is there to deal with properties that might be useful on a TV, creating the overscan margins for example. It's created by calling the drm_mode_create_tv_margin_properties(). However, we also have a drm_atomic_helper_connector_tv_reset() function that will reset the TV margin properties to their default values, and thus is supposed to be called for the latter set. This creates an ambiguity due to the inconsistent naming. We can thus rename the drm_atomic_helper_connector_tv_reset() function to drm_atomic_helper_connector_tv_margins_reset() to remove that ambiguity and hopefully make it more obvious. Acked-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Noralf Trønnes <noralf@tronnes.org> Link: https://lore.kernel.org/r/20220728-rpi-analog-tv-properties-v4-4-60d38873f782@cerno.tech Signed-off-by: Maxime Ripard <maxime@cerno.tech>
96 lines
4.2 KiB
C
96 lines
4.2 KiB
C
/*
|
|
* Copyright (C) 2018 Intel Corp.
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
* to deal in the Software without restriction, including without limitation
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
* Software is furnished to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* all copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
* OTHER DEALINGS IN THE SOFTWARE.
|
|
*
|
|
* Authors:
|
|
* Rob Clark <robdclark@gmail.com>
|
|
* Daniel Vetter <daniel.vetter@ffwll.ch>
|
|
*/
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct drm_bridge;
|
|
struct drm_bridge_state;
|
|
struct drm_crtc;
|
|
struct drm_crtc_state;
|
|
struct drm_plane;
|
|
struct drm_plane_state;
|
|
struct drm_connector;
|
|
struct drm_connector_state;
|
|
struct drm_private_obj;
|
|
struct drm_private_state;
|
|
struct drm_modeset_acquire_ctx;
|
|
struct drm_device;
|
|
|
|
void __drm_atomic_helper_crtc_state_reset(struct drm_crtc_state *state,
|
|
struct drm_crtc *crtc);
|
|
void __drm_atomic_helper_crtc_reset(struct drm_crtc *crtc,
|
|
struct drm_crtc_state *state);
|
|
void drm_atomic_helper_crtc_reset(struct drm_crtc *crtc);
|
|
void __drm_atomic_helper_crtc_duplicate_state(struct drm_crtc *crtc,
|
|
struct drm_crtc_state *state);
|
|
struct drm_crtc_state *
|
|
drm_atomic_helper_crtc_duplicate_state(struct drm_crtc *crtc);
|
|
void __drm_atomic_helper_crtc_destroy_state(struct drm_crtc_state *state);
|
|
void drm_atomic_helper_crtc_destroy_state(struct drm_crtc *crtc,
|
|
struct drm_crtc_state *state);
|
|
|
|
void __drm_atomic_helper_plane_state_reset(struct drm_plane_state *state,
|
|
struct drm_plane *plane);
|
|
void __drm_atomic_helper_plane_reset(struct drm_plane *plane,
|
|
struct drm_plane_state *state);
|
|
void drm_atomic_helper_plane_reset(struct drm_plane *plane);
|
|
void __drm_atomic_helper_plane_duplicate_state(struct drm_plane *plane,
|
|
struct drm_plane_state *state);
|
|
struct drm_plane_state *
|
|
drm_atomic_helper_plane_duplicate_state(struct drm_plane *plane);
|
|
void __drm_atomic_helper_plane_destroy_state(struct drm_plane_state *state);
|
|
void drm_atomic_helper_plane_destroy_state(struct drm_plane *plane,
|
|
struct drm_plane_state *state);
|
|
|
|
void __drm_atomic_helper_connector_state_reset(struct drm_connector_state *conn_state,
|
|
struct drm_connector *connector);
|
|
void __drm_atomic_helper_connector_reset(struct drm_connector *connector,
|
|
struct drm_connector_state *conn_state);
|
|
void drm_atomic_helper_connector_reset(struct drm_connector *connector);
|
|
void drm_atomic_helper_connector_tv_margins_reset(struct drm_connector *connector);
|
|
void
|
|
__drm_atomic_helper_connector_duplicate_state(struct drm_connector *connector,
|
|
struct drm_connector_state *state);
|
|
struct drm_connector_state *
|
|
drm_atomic_helper_connector_duplicate_state(struct drm_connector *connector);
|
|
void
|
|
__drm_atomic_helper_connector_destroy_state(struct drm_connector_state *state);
|
|
void drm_atomic_helper_connector_destroy_state(struct drm_connector *connector,
|
|
struct drm_connector_state *state);
|
|
void __drm_atomic_helper_private_obj_duplicate_state(struct drm_private_obj *obj,
|
|
struct drm_private_state *state);
|
|
|
|
void __drm_atomic_helper_bridge_duplicate_state(struct drm_bridge *bridge,
|
|
struct drm_bridge_state *state);
|
|
struct drm_bridge_state *
|
|
drm_atomic_helper_bridge_duplicate_state(struct drm_bridge *bridge);
|
|
void drm_atomic_helper_bridge_destroy_state(struct drm_bridge *bridge,
|
|
struct drm_bridge_state *state);
|
|
void __drm_atomic_helper_bridge_reset(struct drm_bridge *bridge,
|
|
struct drm_bridge_state *state);
|
|
struct drm_bridge_state *
|
|
drm_atomic_helper_bridge_reset(struct drm_bridge *bridge);
|