Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <rodrigo.siqueira@amd.com>
Acked-by: Wayne Lin <wayne.lin@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>

authored by

Alex Hung and committed by
Alex Deucher
a73d4e88 f7f9e48f

+4
+4
drivers/gpu/drm/amd/display/dc/dce/dce_audio.c
··· 407 407 bool is_ac3_supported = false; 408 408 union audio_sample_rates sample_rate; 409 409 uint32_t strlen = 0; 410 + 411 + if (signal == SIGNAL_TYPE_VIRTUAL) 412 + return; 413 + 410 414 value = AZ_REG_READ(AZALIA_F0_CODEC_PIN_CONTROL_HOT_PLUG_CONTROL); 411 415 set_reg_field_value(value, 1, 412 416 AZALIA_F0_CODEC_PIN_CONTROL_HOT_PLUG_CONTROL,