Skip to content

Commit 0637d2d

Browse files
Zheng Yangjayxurockchip
authored andcommitted
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>
1 parent ec32dc6 commit 0637d2d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/gpu/drm/drm_edid.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4212,6 +4212,8 @@ static void drm_add_display_info(struct drm_connector *connector,
42124212
info->max_tmds_clock = 0;
42134213
info->dvi_dual = false;
42144214

4215+
memset(&info->hdmi, 0, sizeof(info->hdmi));
4216+
42154217
if (edid->revision < 3)
42164218
return;
42174219

0 commit comments

Comments
 (0)