Skip to content

Commit a73d4e8

Browse files
Alex Hungalexdeucher
Alex Hung
authored andcommitted
drm/amd/display: skip audio config for virtual signal
[WHY & HOW] IGT's kms_hdmi_inject (subtest inject_audio) triggers a warning message from dce_aud_az_configure. This can be fixed by checking Virtual signal that does not need to configure AZ audio since it does not have any. Reviewed-by: Rodrigo Siqueira <[email protected]> Acked-by: Wayne Lin <[email protected]> Signed-off-by: Alex Hung <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent f7f9e48 commit a73d4e8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/gpu/drm/amd/display/dc/dce/dce_audio.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,10 @@ void dce_aud_az_configure(
407407
bool is_ac3_supported = false;
408408
union audio_sample_rates sample_rate;
409409
uint32_t strlen = 0;
410+
411+
if (signal == SIGNAL_TYPE_VIRTUAL)
412+
return;
413+
410414
value = AZ_REG_READ(AZALIA_F0_CODEC_PIN_CONTROL_HOT_PLUG_CONTROL);
411415
set_reg_field_value(value, 1,
412416
AZALIA_F0_CODEC_PIN_CONTROL_HOT_PLUG_CONTROL,

0 commit comments

Comments
 (0)