]> git.baikalelectronics.ru Git - kernel.git/commit
drm/edid: Fix HDMI VIC handling
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 4 Oct 2019 14:19:13 +0000 (17:19 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 18 Oct 2019 18:41:13 +0000 (21:41 +0300)
commit28cf0a953b44d41fdd0dc040f824c5c6606d9129
treef9372e4d4d2262e70f57019e00d44bfe2e9d701a
parent19a52601e4d82e7d40b7dec8d0c91ce0b0ca28a4
drm/edid: Fix HDMI VIC handling

Extract drm_mode_hdmi_vic() to correctly calculate the final HDMI
VIC for us. Currently this is being done a bit differently between
the AVI and HDMI infoframes. Let's get both to agree on this.

We need to allow the case where a mode is both 3D and has a HDMI
VIC. Currently we'll just refuse to generate the HDMI infoframe when
we really should be setting HDMI VIC to 0 and instead enabling 3D
stereo signalling.

If the sink doesn't even support the HDMI infoframe we should
not be picking the HDMI VIC in favor of the CEA VIC, because then
we'll end up not sending either VIC in the end.

Cc: Wayne Lin <waynelin@amd.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191004141914.20600-3-ville.syrjala@linux.intel.com
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
drivers/gpu/drm/drm_edid.c