Commit 2796eaee authored by Joshua Aberback's avatar Joshua Aberback Committed by Alex Deucher

drm/amd/display: When signal type of sink is none, use link type for stream

Signed-off-by: default avatarJoshua Aberback <Joshua.Aberback@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 4b5e7d62
...@@ -984,19 +984,20 @@ static void update_stream_signal(struct core_stream *stream) ...@@ -984,19 +984,20 @@ static void update_stream_signal(struct core_stream *stream)
{ {
const struct dc_sink *dc_sink = stream->public.sink; const struct dc_sink *dc_sink = stream->public.sink;
stream->signal = dc_sink->sink_signal; if (dc_sink->sink_signal == SIGNAL_TYPE_NONE)
stream->signal = stream->sink->link->public.connector_signal;
else if (dc_sink->sink_signal == SIGNAL_TYPE_DVI_SINGLE_LINK ||
dc_sink->sink_signal == SIGNAL_TYPE_DVI_DUAL_LINK)
/* For asic supports dual link DVI, we should adjust signal type /* For asic supports dual link DVI, we should adjust signal type
* based on timing pixel clock. If pixel clock more than 165Mhz, * based on timing pixel clock. If pixel clock more than 165Mhz,
* signal is dual link, otherwise, single link. * signal is dual link, otherwise, single link.
*/ */
if (dc_sink->sink_signal == SIGNAL_TYPE_DVI_SINGLE_LINK || if (stream->public.timing.pix_clk_khz > TMDS_MAX_PIXEL_CLOCK_IN_KHZ)
dc_sink->sink_signal == SIGNAL_TYPE_DVI_DUAL_LINK) {
if (stream->public.timing.pix_clk_khz >
TMDS_MAX_PIXEL_CLOCK_IN_KHZ)
stream->signal = SIGNAL_TYPE_DVI_DUAL_LINK; stream->signal = SIGNAL_TYPE_DVI_DUAL_LINK;
else else
stream->signal = SIGNAL_TYPE_DVI_SINGLE_LINK; stream->signal = SIGNAL_TYPE_DVI_SINGLE_LINK;
} else
stream->signal = dc_sink->sink_signal;
} }
bool resource_is_stream_unchanged( bool resource_is_stream_unchanged(
......
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