[PATCH 5/5] drm/amd/display: Allow HDMI capabilities over DVI connector (DC)

Jeff Smith whydoubt at gmail.com
Sat Feb 25 00:14:39 UTC 2017


Signed-off-by: Jeff Smith <whydoubt at gmail.com>
---
 drivers/gpu/drm/amd/display/dc/core/dc_link.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
index 2b92939..168f260 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
@@ -706,8 +706,13 @@ bool dc_link_detect(const struct dc_link *dc_link, bool boot)
 
 		/* HDMI-DVI Dongle */
 		if (dc_sink->sink_signal == SIGNAL_TYPE_HDMI_TYPE_A &&
-				!dc_sink->edid_caps.edid_hdmi)
+				!dc_sink->edid_caps.edid_hdmi) {
 			dc_sink->sink_signal = SIGNAL_TYPE_DVI_SINGLE_LINK;
+		} else if ((dc_sink->sink_signal == SIGNAL_TYPE_DVI_SINGLE_LINK ||
+				dc_sink->sink_signal == SIGNAL_TYPE_DVI_DUAL_LINK) &&
+				dc_sink->edid_caps.edid_hdmi) {
+			dc_sink->sink_signal = SIGNAL_TYPE_HDMI_TYPE_A;
+		}
 
 		/* Connectivity log: detection */
 		for (i = 0; i < sink->public.dc_edid.length / EDID_BLOCK_SIZE; i++) {
-- 
2.9.3



More information about the dri-devel mailing list