Skip to content

Commit fc0479a

Browse files
Alex Hungalexdeucher
authored andcommitted
drm/amd/display: Set emulated sink type to HDMI accordingly.
[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>
1 parent 0604ffe commit fc0479a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6513,6 +6513,9 @@ static void create_eml_sink(struct amdgpu_dm_connector *aconnector)
65136513
return;
65146514
}
65156515

6516+
if (drm_detect_hdmi_monitor(edid))
6517+
init_params.sink_signal = SIGNAL_TYPE_HDMI_TYPE_A;
6518+
65166519
aconnector->edid = edid;
65176520

65186521
aconnector->dc_em_sink = dc_link_add_remote_sink(

0 commit comments

Comments
 (0)