diff options
author | Harry Wentland <harry.wentland@amd.com> | 2017-05-09 10:41:42 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-26 18:06:55 -0400 |
commit | 56dcade33fd3c1681a43ebc250523249be3adbb0 (patch) | |
tree | 6e13e3537aea5aa5ee1ae0b15b815fb43d95ef18 | |
parent | 46df790c6b569faffb4cc93889745a7827283749 (diff) |
drm/amd/display: Keep DVI_SINGLE_LINK signal if low clk
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>
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c index ae8b221c85aa..9588217e0220 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c @@ -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( |