mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-20 06:26:09 -05:00
ASoC: SOF: amd: fix SND_AMD_SOUNDWIRE_ACPI dependencies
The snd-amd-sdw-acpi.ko module is under CONFIG_SND_SOC_AMD_ACP_COMMON but
selected from SoF, which causes build failures in some randconfig builds
that enable SOF but not ACP:
WARNING: unmet direct dependencies detected for SND_AMD_SOUNDWIRE_ACPI
Depends on [n]: SOUND [=m] && SND [=m] && SND_SOC [=m] && SND_SOC_AMD_ACP_COMMON [=n] && ACPI [=y]
Selected by [m]:
- SND_SOC_SOF_AMD_SOUNDWIRE_LINK_BASELINE [=m] && SOUND [=m] && SND [=m] && SND_SOC [=m] && SND_SOC_SOF_TOPLEVEL [=y] && SND_SOC_SOF_AMD_TOPLEVEL [=m] && ACPI [=y]
ERROR: modpost: "amd_sdw_scan_controller" [sound/soc/sof/amd/snd-sof-amd-acp.ko] undefined!
Change the Makefile and Kconfig to allow it to get built regardless
of CONFIG_SND_SOC_AMD_ACP_COMMON.
Fixes: d948218424 ("ASoC: SOF: amd: add code for invoking soundwire manager helper functions")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20240204212207.3158914-1-arnd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
c5d74fe6a7
commit
69f8336e29
@@ -15,7 +15,7 @@ obj-$(CONFIG_SND_SOC_AMD_RV_RT5682_MACH) += snd-soc-acp-rt5682-mach.o
|
||||
obj-$(CONFIG_SND_SOC_AMD_RENOIR) += renoir/
|
||||
obj-$(CONFIG_SND_SOC_AMD_ACP5x) += vangogh/
|
||||
obj-$(CONFIG_SND_SOC_AMD_ACP6x) += yc/
|
||||
obj-$(CONFIG_SND_SOC_AMD_ACP_COMMON) += acp/
|
||||
obj-$(CONFIG_SND_AMD_ACP_CONFIG) += acp/
|
||||
obj-$(CONFIG_SND_AMD_ACP_CONFIG) += snd-acp-config.o
|
||||
obj-$(CONFIG_SND_SOC_AMD_RPL_ACP6x) += rpl/
|
||||
obj-$(CONFIG_SND_SOC_AMD_PS) += ps/
|
||||
|
||||
@@ -101,13 +101,6 @@ config SND_SOC_AMD_MACH_COMMON
|
||||
help
|
||||
This option enables common Machine driver module for ACP.
|
||||
|
||||
config SND_AMD_SOUNDWIRE_ACPI
|
||||
tristate "AMD SoundWire ACPI Support"
|
||||
depends on ACPI
|
||||
help
|
||||
This options enables ACPI helper functions for SoundWire
|
||||
interface for AMD platforms.
|
||||
|
||||
config SND_SOC_AMD_LEGACY_MACH
|
||||
tristate "AMD Legacy Machine Driver Support"
|
||||
depends on X86 && PCI && I2C
|
||||
@@ -123,3 +116,10 @@ config SND_SOC_AMD_SOF_MACH
|
||||
This option enables SOF sound card support for ACP audio.
|
||||
|
||||
endif # SND_SOC_AMD_ACP_COMMON
|
||||
|
||||
config SND_AMD_SOUNDWIRE_ACPI
|
||||
tristate
|
||||
depends on ACPI
|
||||
help
|
||||
This options enables ACPI helper functions for SoundWire
|
||||
interface for AMD platforms.
|
||||
|
||||
Reference in New Issue
Block a user