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>
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(