From 8e75667d141c823d595bc3e4a0a47f285676a1a1 Mon Sep 17 00:00:00 2001 From: Yongqiang Sun Date: Thu, 18 Feb 2016 13:42:55 -0500 Subject: [PATCH 0812/1110] drm/amd/dal: Fixed HDMI-DVI dongle not light up issue. Signed-off-by: Yongqiang Sun Acked-by: Harry Wentland --- drivers/gpu/drm/amd/dal/dc/core/dc_resource.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/amd/dal/dc/core/dc_resource.c b/drivers/gpu/drm/amd/dal/dc/core/dc_resource.c index 5d9095e..18cddfd 100644 --- a/drivers/gpu/drm/amd/dal/dc/core/dc_resource.c +++ b/drivers/gpu/drm/amd/dal/dc/core/dc_resource.c @@ -747,6 +747,17 @@ static void set_stream_signal(struct pipe_ctx *pipe_ctx) } pipe_ctx->signal = dc_sink->sink_signal; + + /* Down-grade pipe_ctx signal instead of sink singal from HDMI to DVI + * here based on audio info in stream. This allows DC to handle stream + * with or without audio on a HDMI connector. + * + * On a HDMI to DVI passive dongle, audio info is not available from the + * EDID and the signal is down-graded in pipe ctx. + */ + if (pipe_ctx->signal == SIGNAL_TYPE_HDMI_TYPE_A && + pipe_ctx->stream->public.audio_info.mode_count == 0) + pipe_ctx->signal = SIGNAL_TYPE_DVI_SINGLE_LINK; } enum dc_status map_resources( -- 2.7.4