mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
drm/bridge: synopsys: dw-hdmi-qp: Don't read scdc regs with hdmi1.4 sink
Only hdmi2.0 and later versions support scdc. Change-Id: Ice2079afe38e624ef7a0dbb2a67f6c8c5d5ba58d Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
This commit is contained in:
@@ -3179,7 +3179,9 @@ static int dw_hdmi_connector_atomic_check(struct drm_connector *connector,
|
||||
extcon_set_state_sync(hdmi->extcon, EXTCON_DISP_HDMI, true);
|
||||
}
|
||||
|
||||
drm_scdc_readb(hdmi->ddc, SCDC_TMDS_CONFIG, &val);
|
||||
val = 0;
|
||||
if (dw_hdmi_support_scdc(hdmi, &connector->display_info))
|
||||
drm_scdc_readb(hdmi->ddc, SCDC_TMDS_CONFIG, &val);
|
||||
/* if plug out before hdmi bind, reset hdmi */
|
||||
if (vmode->mtmdsclock >= 340000000 && vmode->mpixelclock <= 600000000 &&
|
||||
!(val & SCDC_TMDS_BIT_CLOCK_RATIO_BY_40) && !hdmi->force_kernel_output)
|
||||
|
||||
Reference in New Issue
Block a user