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

ASoC: SOF: amd: Add depends on CPU_SUP_AMD

When SMN support was switched to the kernel wide AMD_NODE instead of
local implementation this broke compilation on the allyesconfig for
some architectures. AMD_NODE is only supported on AMD platforms, so
modify all the AMD drivers that use it to also require CPU_SUP_AMD.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Closes: https://lore.kernel.org/linux-next/20250220160950.2cd64bdb@canb.auug.org.au/
Fixes: f120cf33d232 ("ASoC: SOF: amd: Use AMD_NODE")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://patch.msgid.link/20250220184822.916090-1-superm1@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Mario Limonciello and committed by
Mark Brown
b47834ee 64899904

+5
+5
sound/soc/sof/amd/Kconfig
··· 33 33 config SND_SOC_SOF_AMD_RENOIR 34 34 tristate "SOF support for RENOIR" 35 35 depends on SND_SOC_SOF_PCI 36 + depends on CPU_SUP_AMD 36 37 select SND_SOC_SOF_AMD_COMMON 37 38 help 38 39 Select this option for SOF support on AMD Renoir platform ··· 41 40 config SND_SOC_SOF_AMD_VANGOGH 42 41 tristate "SOF support for VANGOGH" 43 42 depends on SND_SOC_SOF_PCI 43 + depends on CPU_SUP_AMD 44 44 select SND_SOC_SOF_AMD_COMMON 45 45 help 46 46 Select this option for SOF support ··· 52 50 config SND_SOC_SOF_AMD_REMBRANDT 53 51 tristate "SOF support for REMBRANDT" 54 52 depends on SND_SOC_SOF_PCI 53 + depends on CPU_SUP_AMD 55 54 select SND_SOC_SOF_AMD_COMMON 56 55 help 57 56 Select this option for SOF support on AMD Rembrandt platform ··· 85 82 config SND_SOC_SOF_AMD_ACP63 86 83 tristate "SOF support for ACP6.3 platform" 87 84 depends on SND_SOC_SOF_PCI 85 + depends on CPU_SUP_AMD 88 86 select SND_SOC_SOF_AMD_COMMON 89 87 select SND_SOC_SOF_AMD_SOUNDWIRE_LINK_BASELINE 90 88 help ··· 97 93 config SND_SOC_SOF_AMD_ACP70 98 94 tristate "SOF support for ACP7.0 platform" 99 95 depends on SND_SOC_SOF_PCI 96 + depends on CPU_SUP_AMD 100 97 select SND_SOC_SOF_AMD_COMMON 101 98 help 102 99 Select this option for SOF support on