]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
drm/amd/display: Keep DVI_SINGLE_LINK signal if low clk
authorHarry Wentland <harry.wentland@amd.com>
Tue, 9 May 2017 14:41:42 +0000 (10:41 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:06:55 +0000 (18:06 -0400)
If user is using DVI->HDMI dongle dual link signal might pose a
problem. Keep single link signal type if clk is lower than
max tmds clk.

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c

index ae8b221c85aacbd7fc207430755b240c11495a38..9588217e022050084b056cdae3dd6d7534637fa4 100644 (file)
@@ -1283,9 +1283,12 @@ static void update_stream_signal(struct core_stream *stream)
                stream->signal = stream->public.output_signal;
        }
 
-       if (stream->signal == SIGNAL_TYPE_DVI_SINGLE_LINK &&
-               stream->public.timing.pix_clk_khz > TMDS_MAX_PIXEL_CLOCK_IN_KHZ)
-               stream->signal = SIGNAL_TYPE_DVI_DUAL_LINK;
+       if (dc_is_dvi_signal(stream->signal)) {
+               if (stream->public.timing.pix_clk_khz > TMDS_MAX_PIXEL_CLOCK_IN_KHZ)
+                       stream->signal = SIGNAL_TYPE_DVI_DUAL_LINK;
+               else
+                       stream->signal = SIGNAL_TYPE_DVI_SINGLE_LINK;
+       }
 }
 
 bool resource_is_stream_unchanged(