From: Alex Hung <alex.h...@amd.com>

[Why]
When IGT's kms_hdmi_inject forces EDID for HDMI audio, dc rejects the
request because virtual signal is not in dc_is_audio_capable_signal
function.

[How]
Includes SIGNAL_TYPE_VIRTUAL as audio capable.

Reviewed-by: Chao-kai Wang <stylon.w...@amd.com>
Acked-by: Qingqing Zhuo <qingqing.z...@amd.com>
Signed-off-by: Alex Hung <alex.h...@amd.com>
Signed-off-by: Wenchieh Chien <wenchieh.ch...@amd.com>
---
 drivers/gpu/drm/amd/display/include/signal_types.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/amd/display/include/signal_types.h 
b/drivers/gpu/drm/amd/display/include/signal_types.h
index beed70179bb5..23a308c3eccb 100644
--- a/drivers/gpu/drm/amd/display/include/signal_types.h
+++ b/drivers/gpu/drm/amd/display/include/signal_types.h
@@ -104,6 +104,7 @@ static inline bool dc_is_audio_capable_signal(enum 
signal_type signal)
 {
        return (signal == SIGNAL_TYPE_DISPLAY_PORT ||
                signal == SIGNAL_TYPE_DISPLAY_PORT_MST ||
+               signal == SIGNAL_TYPE_VIRTUAL ||
                dc_is_hdmi_signal(signal));
 }
 
-- 
2.34.1

Reply via email to