Skip to content

Commit 0b38362

Browse files
arndbbroonie
authored andcommitted
ASoC: amd: acp: add ACPI dependency
A newly added function requires CONFIG_ACPI to avoid a build error: sound/soc/amd/acp/acp-legacy-common.c: In function 'check_acp_pdm': sound/soc/amd/acp/acp-legacy-common.c:401:19: error: implicit declaration of function 'acpi_find_child_device'; did you mean 'acpi_match_device'? [-Werror=implicit-function-declaration] 401 | pdm_dev = acpi_find_child_device(ACPI_COMPANION(&pci->dev), pdm_addr, 0); | ^~~~~~~~~~~~~~~~~~~~~~ | acpi_match_device The acp drivers really only work when ACPI is enabled already, so just avoid the build failure with hard dependency in everything that enables the acp-legacy-common portion. Fixes: 3a94c8a ("ASoC: amd: acp: add code for scanning acp pdm controller") Signed-off-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 60781d2 commit 0b38362

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sound/soc/amd/acp/Kconfig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@ config SND_SOC_AMD_ACP_PCM
3030

3131
config SND_SOC_AMD_ACP_PCI
3232
tristate "AMD ACP PCI Driver Support"
33-
select SND_SOC_AMD_ACP_LEGACY_COMMON
3433
depends on X86 && PCI
34+
depends on ACPI
35+
select SND_SOC_AMD_ACP_LEGACY_COMMON
3536
help
3637
This options enables generic PCI driver for ACP device.
3738

3839
config SND_AMD_ASOC_RENOIR
3940
tristate "AMD ACP ASOC Renoir Support"
41+
depends on ACPI
4042
select SND_SOC_AMD_ACP_PCM
4143
select SND_SOC_AMD_ACP_I2S
4244
select SND_SOC_AMD_ACP_PDM
@@ -47,6 +49,7 @@ config SND_AMD_ASOC_RENOIR
4749

4850
config SND_AMD_ASOC_REMBRANDT
4951
tristate "AMD ACP ASOC Rembrandt Support"
52+
depends on ACPI
5053
select SND_SOC_AMD_ACP_PCM
5154
select SND_SOC_AMD_ACP_I2S
5255
select SND_SOC_AMD_ACP_PDM

0 commit comments

Comments
 (0)