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)
commitfc0479ac5dd9ac48673ade462622a4efbda30223
tree0b760d6dfbd73991ed4a59184714436c54ed5820
parent0604ffead6e5927d2e70698df6bcb1c68690ad0e
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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c