diff options
author | Maxime Ripard <maxime@cerno.tech> | 2022-11-17 12:28:48 +0300 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2022-11-24 14:42:39 +0300 |
commit | 7d63cd8526f1b70d1438b1aa90620cde941162c3 (patch) | |
tree | 4efda8e5074edd5336e00c22c0ad29069494e357 /include/drm/drm_mode_config.h | |
parent | 80ed86d4b6d7cf91f4fd588bd7be2fa382724d2d (diff) | |
download | linux-7d63cd8526f1b70d1438b1aa90620cde941162c3.tar.xz |
drm/connector: Add TV standard property
The TV mode property has been around for a while now to select and get the
current TV mode output on an analog TV connector.
Despite that property name being generic, its content isn't and has been
driver-specific which makes it hard to build any generic behaviour on top
of it, both in kernel and user-space.
Let's create a new enum tv norm property, that can contain any of the
analog TV standards currently supported by kernel drivers. Each driver can
then pass in a bitmask of the modes it supports, and the property
creation function will filter out the modes not supported.
We'll then be able to phase out the older tv mode property.
Tested-by: Mateusz Kwiatkowski <kfyatek+publicgit@gmail.com>
Acked-in-principle-or-something-like-that-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://lore.kernel.org/r/20220728-rpi-analog-tv-properties-v10-5-256dad125326@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Diffstat (limited to 'include/drm/drm_mode_config.h')
-rw-r--r-- | include/drm/drm_mode_config.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/drm/drm_mode_config.h b/include/drm/drm_mode_config.h index c47b29e80108..e5b053001d22 100644 --- a/include/drm/drm_mode_config.h +++ b/include/drm/drm_mode_config.h @@ -716,10 +716,18 @@ struct drm_mode_config { /** * @legacy_tv_mode_property: Optional TV property to select * the output TV mode. + * + * Superseded by @tv_mode_property */ struct drm_property *legacy_tv_mode_property; /** + * @tv_mode_property: Optional TV property to select the TV + * standard output on the connector. + */ + struct drm_property *tv_mode_property; + + /** * @tv_left_margin_property: Optional TV property to set the left * margin (expressed in pixels). */ |