]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/amd/display: Set emulated sink type to HDMI accordingly.
authorAlex Hung <alex.hung@amd.com>
Tue, 3 Oct 2023 21:25:30 +0000 (15:25 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 26 Oct 2023 22:59:47 +0000 (18:59 -0400)
[WHY & HOW]
Virtual sink is not audio-capable and this causes kms_hdmi_inject's
inject-audio to fail. Set it to HDMI according to EDID.

Reviewed-by: Chao-kai Wang <stylon.wang@amd.com>
Acked-by: Roman Li <roman.li@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 9a712791f309fed9b06503b1676116db935246ce..4f6c8af4f046cc9c144c276dad7b9035f6ee162a 100644 (file)
@@ -6513,6 +6513,9 @@ static void create_eml_sink(struct amdgpu_dm_connector *aconnector)
                return;
        }
 
+       if (drm_detect_hdmi_monitor(edid))
+               init_params.sink_signal = SIGNAL_TYPE_HDMI_TYPE_A;
+
        aconnector->edid = edid;
 
        aconnector->dc_em_sink = dc_link_add_remote_sink(