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

Configure Feed

Select the types of activity you want to include in your feed.

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 <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202501090345.pBIDRTym-lkp@intel.com/
Signed-off-by: Yu-Chun Lin <eleanor15x@gmail.com>
Link: https://patch.msgid.link/20250109171547.362412-1-eleanor15x@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Yu-Chun Lin and committed by
Mark Brown
7e24ec93 9c0e29b9

+1 -1
+1 -1
sound/soc/amd/Kconfig
··· 105 105 config SND_SOC_AMD_YC_MACH 106 106 tristate "AMD YC support for DMIC" 107 107 select SND_SOC_DMIC 108 - depends on SND_SOC_AMD_ACP6x 108 + depends on SND_SOC_AMD_ACP6x && ACPI 109 109 help 110 110 This option enables machine driver for Yellow Carp platform 111 111 using dmic. ACP IP has PDM Decoder block with DMA controller.