Commit 83572340 authored by Charlene Liu's avatar Charlene Liu Committed by Alex Deucher

drm/amd/display: fix DVI connected to HDMI connector max tmds clock

Signed-off-by: default avatarCharlene Liu <charlene.liu@amd.com>
Reviewed-by: default avatarDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 820e3935
......@@ -830,6 +830,12 @@ bool dce110_link_encoder_validate_dvi_output(
if (crtc_timing->pixel_encoding != PIXEL_ENCODING_RGB)
return false;
/*connect DVI via adpater's HDMI connector*/
if ((connector_signal == SIGNAL_TYPE_DVI_SINGLE_LINK ||
connector_signal == SIGNAL_TYPE_HDMI_TYPE_A) &&
signal != SIGNAL_TYPE_HDMI_TYPE_A &&
crtc_timing->pix_clk_khz > TMDS_MAX_PIXEL_CLOCK)
return false;
if (crtc_timing->pix_clk_khz < TMDS_MIN_PIXEL_CLOCK)
return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment