[PATCH] ASoC: SOF: amd: add ACPI dependency

From: Arnd Bergmann

Date: Tue Oct 20 2026 - 06:54:04 EST


From: Arnd Bergmann <arnd@xxxxxxxx>

The newly added acp_asp_mailbox.c file makes no sense without ACPI
and fails to build in that configuration:

sound/soc/sof/amd/acp_asp_mailbox.c: In function 'acp7x_asp_send_cmd':
sound/soc/sof/amd/acp_asp_mailbox.c:59:22: error: invalid use of undefined type 'struct acpi_device'
59 | handle = adev->handle;
| ^~

Address this by adding the required Kconfig dependency at the
top level here.

Fixes: cec3598305a6 ("ASoC: SOF: amd: add ASP carveout firmware loading for ACP7.B/7.F")
Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
---
sound/soc/sof/amd/Kconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/sound/soc/sof/amd/Kconfig b/sound/soc/sof/amd/Kconfig
index d64f682cfbea..baa0fbf07ab2 100644
--- a/sound/soc/sof/amd/Kconfig
+++ b/sound/soc/sof/amd/Kconfig
@@ -7,6 +7,7 @@
config SND_SOC_SOF_AMD_TOPLEVEL
tristate "SOF support for AMD audio DSPs"
depends on SOUNDWIRE_AMD || !SOUNDWIRE_AMD
+ depends on ACPI
depends on X86 || COMPILE_TEST
help
This adds support for Sound Open Firmware for AMD platforms.
--
2.53.0