Skip to content

Commit 7e24ec9

Browse files
eleanorLYJbroonie
authored andcommitted
ASoC: amd: Add ACPI dependency to fix build error
As reported by the kernel test robot, the following error occurs: sound/soc/amd/yc/acp6x-mach.c: In function 'acp6x_probe': >> sound/soc/amd/yc/acp6x-mach.c:573:15: error: implicit declaration of function 'acpi_evaluate_integer'; did you mean 'acpi_evaluate_object'? [-Werror=implicit-function-declaration] 573 | ret = acpi_evaluate_integer(handle, "_WOV", NULL, &dmic_status); | ^~~~~~~~~~~~~~~~~~~~~ | acpi_evaluate_object cc1: some warnings being treated as errors The function 'acpi_evaluate_integer' and its prototype in 'acpi_bus.h' are only available when 'CONFIG_ACPI' is enabled. Add a 'depends on ACPI' directive in Kconfig to ensure proper compilation. Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Yu-Chun Lin <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 9c0e29b commit 7e24ec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/amd/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ config SND_SOC_AMD_ACP6x
105105
config SND_SOC_AMD_YC_MACH
106106
tristate "AMD YC support for DMIC"
107107
select SND_SOC_DMIC
108-
depends on SND_SOC_AMD_ACP6x
108+
depends on SND_SOC_AMD_ACP6x && ACPI
109109
help
110110
This option enables machine driver for Yellow Carp platform
111111
using dmic. ACP IP has PDM Decoder block with DMA controller.

0 commit comments

Comments
 (0)