aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0812-drm-amd-dal-Fixed-HDMI-DVI-dongle-not-light-up-issue.patch
blob: 4fa645a5d80de8954ef1360519e8b87610032e85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From 8e75667d141c823d595bc3e4a0a47f285676a1a1 Mon Sep 17 00:00:00 2001
From: Yongqiang Sun <yongqiang.sun@amd.com>
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 <yongqiang.sun@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
---
 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