linux/sound/soc/amd
Arnd Bergmann 69f8336e29
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>
2024-02-05 14:32:28 +00:00
..
acp ASoC: SOF: amd: fix SND_AMD_SOUNDWIRE_ACPI dependencies 2024-02-05 14:32:28 +00:00
include
ps ASoC: amd: ps: enable wake capability for acp pci driver 2023-10-17 12:59:17 +01:00
raven ASoC: amd: convert not to use asoc_xxx() 2023-09-25 14:16:17 +02:00
renoir ASoC: amd: update pm_runtime enable sequence 2023-06-23 11:07:39 +01:00
rpl ASoC: amd: enable RPL Platform acp drivers build 2022-07-21 23:25:19 +01:00
vangogh ASoC: amd: vangogh: Switch to {RUNTIME,SYSTEM_SLEEP}_PM_OPS 2023-12-18 14:03:51 +00:00
yc ASoC: amd: yc: Fix non-functional mic on ASUS E1504FA 2023-12-01 14:12:59 +00:00
acp3x-rt5682-max9836.c ASoC: amd: convert not to use asoc_xxx() 2023-09-25 14:16:17 +02:00
acp-config.c ASoC: Updates for v6.8 2024-01-08 08:18:02 +01:00
acp-da7219-max98357a.c ASoC: amd: convert not to use asoc_xxx() 2023-09-25 14:16:17 +02:00
acp-es8336.c ASoC: amd: convert not to use asoc_xxx() 2023-09-25 14:16:17 +02:00
acp-pcm-dma.c ASoC: amd: convert not to use asoc_xxx() 2023-09-25 14:16:17 +02:00
acp-rt5645.c ASoC: amd: convert not to use asoc_xxx() 2023-09-25 14:16:17 +02:00
acp.h ASoC: amd: add I2S MICSP instance support 2022-07-05 13:00:44 +01:00
Kconfig ASoC: amd: vangogh: Add support for NAU8821/MAX98388 variant 2023-07-09 22:47:57 +01:00
mach-config.h ASoC: amd: acp: add code for scanning acp pdm controller 2023-10-25 17:21:48 +01:00
Makefile ASoC: SOF: amd: fix SND_AMD_SOUNDWIRE_ACPI dependencies 2024-02-05 14:32:28 +00:00