mirror of
https://github.com/torvalds/linux.git
synced 2025-11-05 03:00:13 +02:00
drm: document connector margin properties
Add docs for "{left,right,top,bottom} margin" properties.
v2:
- Mention the purpose: mitigate underscan on TVs
- Move out of analog TV section into standard props (Pekka)
- Mention HDMI AVI InfoFrames (Pekka, Ville)
Signed-off-by: Simon Ser <contact@emersion.fr>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Noralf Trønnes <noralf@tronnes.org>
Cc: Mateusz Kwiatkowski <kfyatek+publicgit@gmail.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.com>
Acked-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230228123156.175973-1-contact@emersion.fr
This commit is contained in:
parent
72122c69d7
commit
409f07d353
1 changed files with 14 additions and 4 deletions
|
|
@ -1449,6 +1449,20 @@ static const struct drm_prop_enum_list dp_colorspaces[] = {
|
||||||
* a firmware handled hotkey. Therefor userspace must not include the
|
* a firmware handled hotkey. Therefor userspace must not include the
|
||||||
* privacy-screen sw-state in an atomic commit unless it wants to change
|
* privacy-screen sw-state in an atomic commit unless it wants to change
|
||||||
* its value.
|
* its value.
|
||||||
|
*
|
||||||
|
* left margin, right margin, top margin, bottom margin:
|
||||||
|
* Add margins to the connector's viewport. This is typically used to
|
||||||
|
* mitigate underscan on TVs.
|
||||||
|
*
|
||||||
|
* The value is the size in pixels of the black border which will be
|
||||||
|
* added. The attached CRTC's content will be scaled to fill the whole
|
||||||
|
* area inside the margin.
|
||||||
|
*
|
||||||
|
* The margins configuration might be sent to the sink, e.g. via HDMI AVI
|
||||||
|
* InfoFrames.
|
||||||
|
*
|
||||||
|
* Drivers can set up these properties by calling
|
||||||
|
* drm_mode_create_tv_margin_properties().
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int drm_connector_create_standard_properties(struct drm_device *dev)
|
int drm_connector_create_standard_properties(struct drm_device *dev)
|
||||||
|
|
@ -1593,10 +1607,6 @@ EXPORT_SYMBOL(drm_connector_attach_dp_subconnector_property);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TODO: Document the properties:
|
* TODO: Document the properties:
|
||||||
* - left margin
|
|
||||||
* - right margin
|
|
||||||
* - top margin
|
|
||||||
* - bottom margin
|
|
||||||
* - brightness
|
* - brightness
|
||||||
* - contrast
|
* - contrast
|
||||||
* - flicker reduction
|
* - flicker reduction
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue