mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
drm/edid: Clear the old hdmi info before parsing display info
The current EDID might not support advanced HDMI 2.0 features. Leaving old hdmi info in the drm_display_info will make display work not okay, when switching display from HDMI 2.0 device to HDMI 1.4 device. Change-Id: Ifaf11a115580a93ec00160d54f0d453842d7b484 Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
This commit is contained in:
@@ -4556,6 +4556,8 @@ u32 drm_add_display_info(struct drm_connector *connector, const struct edid *edi
|
||||
|
||||
DRM_DEBUG_KMS("non_desktop set to %d\n", info->non_desktop);
|
||||
|
||||
memset(&info->hdmi, 0, sizeof(info->hdmi));
|
||||
|
||||
if (edid->revision < 3)
|
||||
return quirks;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user