Browse Source

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

Signed-off-by: Charlene Liu <charlene.liu@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Charlene Liu 8 years ago
parent
commit
8357234009
1 changed files with 6 additions and 0 deletions
  1. 6 0
      drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c

+ 6 - 0
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c

@@ -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;