mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 23:14:31 +08:00
50525c332b
Added content_type property to drm_connector_state in order to properly handle external HDMI TV content-type setting. v2: * Moved helper function which attaches content type property to the drm core, as was suggested. Removed redundant connector state initialization. v3: * Removed caps in drm_content_type_enum_list. After some discussion it turned out that HDMI Spec 1.4 was wrongly assuming that IT Content(itc) bit doesn't affect Content type states, however itc bit needs to be manupulated as well. In order to not expose additional property for itc, for sake of simplicity it was decided to bind those together in same "content type" property. v4: * Added it_content checking in intel_digital_connector_atomic_check. Fixed documentation for new content type enum. v5: * Moved patch revision's description to commit messages. v6: * Minor naming fix for the content type enumeration string. v7: * Fix parameter name for documentation and parameter alignment in order not to get warning. Added Content Type description to new HDMI connector properties section. v8: * Thrown away unneeded numbers from HDMI content-type property description. Switch to strings desription instead of plain definitions. v9: * Moved away hdmi specific content-type enum from drm_connector_state. Content type property should probably not be bound to any specific connector interface in drm_connector_state. Same probably should be done to hdmi_picture_aspect_ration enum which is also contained in drm_connector_state. Added special helper function to get derive hdmi specific relevant infoframe fields. v10: * Added usage description to HDMI properties kernel doc. v11: * Created centralized function for filling HDMI AVI infoframe, based on correspondent DRM property value. Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180515135928.31092-2-stanislav.lisovskiy@intel.com [vsyrjala: clean up checkpatch multiple blank lines warnings] Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
7.6 KiB
7.6 KiB
1 | Owner Module/Drivers | Group | Property Name | Type | Property Values | Object attached | Description/Restrictions |
---|---|---|---|---|---|---|---|
2 | DVI-I | “subconnector” | ENUM | { “Unknown”, “DVI-D”, “DVI-A” } | Connector | TBD | |
3 | “select subconnector” | ENUM | { “Automatic”, “DVI-D”, “DVI-A” } | Connector | TBD | ||
4 | TV | “subconnector” | ENUM | { "Unknown", "Composite", "SVIDEO", "Component", "SCART" } | Connector | TBD | |
5 | “select subconnector” | ENUM | { "Automatic", "Composite", "SVIDEO", "Component", "SCART" } | Connector | TBD | ||
6 | “mode” | ENUM | { "NTSC_M", "NTSC_J", "NTSC_443", "PAL_B" } etc. | Connector | TBD | ||
7 | “left margin” | RANGE | Min=0, Max=100 | Connector | TBD | ||
8 | “right margin” | RANGE | Min=0, Max=100 | Connector | TBD | ||
9 | “top margin” | RANGE | Min=0, Max=100 | Connector | TBD | ||
10 | “bottom margin” | RANGE | Min=0, Max=100 | Connector | TBD | ||
11 | “brightness” | RANGE | Min=0, Max=100 | Connector | TBD | ||
12 | “contrast” | RANGE | Min=0, Max=100 | Connector | TBD | ||
13 | “flicker reduction” | RANGE | Min=0, Max=100 | Connector | TBD | ||
14 | “overscan” | RANGE | Min=0, Max=100 | Connector | TBD | ||
15 | “saturation” | RANGE | Min=0, Max=100 | Connector | TBD | ||
16 | “hue” | RANGE | Min=0, Max=100 | Connector | TBD | ||
17 | Virtual GPU | “suggested X” | RANGE | Min=0, Max=0xffffffff | Connector | property to suggest an X offset for a connector | |
18 | “suggested Y” | RANGE | Min=0, Max=0xffffffff | Connector | property to suggest an Y offset for a connector | ||
19 | Optional | "aspect ratio" | ENUM | { "None", "4:3", "16:9" } | Connector | TDB | |
20 | Optional | "content type" | ENUM | { "No Data", "Graphics", "Photo", "Cinema", "Game" } | Connector | TBD | |
21 | i915 | Generic | "Broadcast RGB" | ENUM | { "Automatic", "Full", "Limited 16:235" } | Connector | When this property is set to Limited 16:235 and CTM is set, the hardware will be programmed with the result of the multiplication of CTM by the limited range matrix to ensure the pixels normaly in the range 0..1.0 are remapped to the range 16/255..235/255. |
22 | “audio” | ENUM | { "force-dvi", "off", "auto", "on" } | Connector | TBD | ||
23 | SDVO-TV | “mode” | ENUM | { "NTSC_M", "NTSC_J", "NTSC_443", "PAL_B" } etc. | Connector | TBD | |
24 | "left_margin" | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
25 | "right_margin" | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
26 | "top_margin" | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
27 | "bottom_margin" | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
28 | “hpos” | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
29 | “vpos” | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
30 | “contrast” | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
31 | “saturation” | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
32 | “hue” | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
33 | “sharpness” | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
34 | “flicker_filter” | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
35 | “flicker_filter_adaptive” | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
36 | “flicker_filter_2d” | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
37 | “tv_chroma_filter” | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
38 | “tv_luma_filter” | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
39 | “dot_crawl” | RANGE | Min=0, Max=1 | Connector | TBD | ||
40 | SDVO-TV/LVDS | “brightness” | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | |
41 | CDV gma-500 | Generic | "Broadcast RGB" | ENUM | { “Full”, “Limited 16:235” } | Connector | TBD |
42 | "Broadcast RGB" | ENUM | { “off”, “auto”, “on” } | Connector | TBD | ||
43 | Poulsbo | Generic | “backlight” | RANGE | Min=0, Max=100 | Connector | TBD |
44 | SDVO-TV | “mode” | ENUM | { "NTSC_M", "NTSC_J", "NTSC_443", "PAL_B" } etc. | Connector | TBD | |
45 | "left_margin" | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
46 | "right_margin" | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
47 | "top_margin" | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
48 | "bottom_margin" | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
49 | “hpos” | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
50 | “vpos” | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
51 | “contrast” | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
52 | “saturation” | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
53 | “hue” | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
54 | “sharpness” | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
55 | “flicker_filter” | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
56 | “flicker_filter_adaptive” | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
57 | “flicker_filter_2d” | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
58 | “tv_chroma_filter” | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
59 | “tv_luma_filter” | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | ||
60 | “dot_crawl” | RANGE | Min=0, Max=1 | Connector | TBD | ||
61 | SDVO-TV/LVDS | “brightness” | RANGE | Min=0, Max= SDVO dependent | Connector | TBD | |
62 | armada | CRTC | "CSC_YUV" | ENUM | { "Auto" , "CCIR601", "CCIR709" } | CRTC | TBD |
63 | "CSC_RGB" | ENUM | { "Auto", "Computer system", "Studio" } | CRTC | TBD | ||
64 | Overlay | "colorkey" | RANGE | Min=0, Max=0xffffff | Plane | TBD | |
65 | "colorkey_min" | RANGE | Min=0, Max=0xffffff | Plane | TBD | ||
66 | "colorkey_max" | RANGE | Min=0, Max=0xffffff | Plane | TBD | ||
67 | "colorkey_val" | RANGE | Min=0, Max=0xffffff | Plane | TBD | ||
68 | "colorkey_alpha" | RANGE | Min=0, Max=0xffffff | Plane | TBD | ||
69 | "colorkey_mode" | ENUM | { "disabled", "Y component", "U component" , "V component", "RGB", “R component", "G component", "B component" } | Plane | TBD | ||
70 | "brightness" | RANGE | Min=0, Max=256 + 255 | Plane | TBD | ||
71 | "contrast" | RANGE | Min=0, Max=0x7fff | Plane | TBD | ||
72 | "saturation" | RANGE | Min=0, Max=0x7fff | Plane | TBD | ||
73 | exynos | CRTC | “mode” | ENUM | { "normal", "blank" } | CRTC | TBD |
74 | i2c/ch7006_drv | Generic | “scale” | RANGE | Min=0, Max=2 | Connector | TBD |
75 | TV | “mode” | ENUM | { "PAL", "PAL-M","PAL-N"}, ”PAL-Nc" , "PAL-60", "NTSC-M", "NTSC-J" } | Connector | TBD | |
76 | nouveau | NV10 Overlay | "colorkey" | RANGE | Min=0, Max=0x01ffffff | Plane | TBD |
77 | “contrast” | RANGE | Min=0, Max=8192-1 | Plane | TBD | ||
78 | “brightness” | RANGE | Min=0, Max=1024 | Plane | TBD | ||
79 | “hue” | RANGE | Min=0, Max=359 | Plane | TBD | ||
80 | “saturation” | RANGE | Min=0, Max=8192-1 | Plane | TBD | ||
81 | “iturbt_709” | RANGE | Min=0, Max=1 | Plane | TBD | ||
82 | Nv04 Overlay | “colorkey” | RANGE | Min=0, Max=0x01ffffff | Plane | TBD | |
83 | “brightness” | RANGE | Min=0, Max=1024 | Plane | TBD | ||
84 | Display | “dithering mode” | ENUM | { "auto", "off", "on" } | Connector | TBD | |
85 | “dithering depth” | ENUM | { "auto", "off", "on", "static 2x2", "dynamic 2x2", "temporal" } | Connector | TBD | ||
86 | “underscan” | ENUM | { "auto", "6 bpc", "8 bpc" } | Connector | TBD | ||
87 | “underscan hborder” | RANGE | Min=0, Max=128 | Connector | TBD | ||
88 | “underscan vborder” | RANGE | Min=0, Max=128 | Connector | TBD | ||
89 | “vibrant hue” | RANGE | Min=0, Max=180 | Connector | TBD | ||
90 | “color vibrance” | RANGE | Min=0, Max=200 | Connector | TBD | ||
91 | omap | Generic | “zorder” | RANGE | Min=0, Max=3 | CRTC, Plane | TBD |
92 | qxl | Generic | “hotplug_mode_update" | RANGE | Min=0, Max=1 | Connector | TBD |
93 | radeon | DVI-I | “coherent” | RANGE | Min=0, Max=1 | Connector | TBD |
94 | DAC enable load detect | “load detection” | RANGE | Min=0, Max=1 | Connector | TBD | |
95 | TV Standard | "tv standard" | ENUM | { "ntsc", "pal", "pal-m", "pal-60", "ntsc-j" , "scart-pal", "pal-cn", "secam" } | Connector | TBD | |
96 | legacy TMDS PLL detect | "tmds_pll" | ENUM | { "driver", "bios" } | - | TBD | |
97 | Underscan | "underscan" | ENUM | { "off", "on", "auto" } | Connector | TBD | |
98 | "underscan hborder" | RANGE | Min=0, Max=128 | Connector | TBD | ||
99 | "underscan vborder" | RANGE | Min=0, Max=128 | Connector | TBD | ||
100 | Audio | “audio” | ENUM | { "off", "on", "auto" } | Connector | TBD | |
101 | FMT Dithering | “dither” | ENUM | { "off", "on" } | Connector | TBD | |
102 | "colorkey" | RANGE | Min=0, Max=0x01ffffff | Plane | TBD |