drm/edid: Add aspect ratios to HDMI 4K modes
authorWayne Lin <Wayne.Lin@amd.com>
Mon, 18 Nov 2019 10:18:31 +0000 (18:18 +0800)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 29 Nov 2019 15:04:22 +0000 (17:04 +0200)
commitd2b434730f301a7ad74473eb66422f0008186306
tree13e6d4c9cfaeefeb7f1c7bf8a6b6f5ab8a48cf2a
parentdbe3ad61dcebc49fe3efca70a0f752a95b4600f2
drm/edid: Add aspect ratios to HDMI 4K modes

[Why]
HDMI 2.0 adds aspect ratio attribute to distinguish different
4k modes. According to Appendix E of HDMI 2.0 spec, source should
use VSIF to indicate video mode only when the mode is one defined
in HDMI 1.4b 4K modes. Otherwise, use AVI infoframes to convey VIC.

Current code doesn't take aspect ratio into consideration while
constructing avi infoframe. Should modify that.

[How]
Inherit Ville Syrjälä's work
"drm/edid: Prep for HDMI VIC aspect ratio" at
https://patchwork.kernel.org/patch/11174639/

Add picture_aspect_ratio attributes to edid_4k_modes[] and
construct VIC and HDMI_VIC by taking aspect ratio into
consideration.

v2: Correct missing initializer error at adding aspect ratio of
SMPTE mode.

Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191118101832.15487-1-Wayne.Lin@amd.com
drivers/gpu/drm/drm_edid.c