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: f120cf33d2 ("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>
This commit is contained in:
Mario Limonciello 2025-02-20 12:48:20 -06:00 committed by Mark Brown
parent 64899904d6
commit b47834ee44
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -33,6 +33,7 @@ config SND_SOC_SOF_AMD_COMMON
config SND_SOC_SOF_AMD_RENOIR config SND_SOC_SOF_AMD_RENOIR
tristate "SOF support for RENOIR" tristate "SOF support for RENOIR"
depends on SND_SOC_SOF_PCI depends on SND_SOC_SOF_PCI
depends on CPU_SUP_AMD
select SND_SOC_SOF_AMD_COMMON select SND_SOC_SOF_AMD_COMMON
help help
Select this option for SOF support on AMD Renoir platform Select this option for SOF support on AMD Renoir platform
@ -40,6 +41,7 @@ config SND_SOC_SOF_AMD_RENOIR
config SND_SOC_SOF_AMD_VANGOGH config SND_SOC_SOF_AMD_VANGOGH
tristate "SOF support for VANGOGH" tristate "SOF support for VANGOGH"
depends on SND_SOC_SOF_PCI depends on SND_SOC_SOF_PCI
depends on CPU_SUP_AMD
select SND_SOC_SOF_AMD_COMMON select SND_SOC_SOF_AMD_COMMON
help help
Select this option for SOF support Select this option for SOF support
@ -50,6 +52,7 @@ config SND_SOC_SOF_AMD_VANGOGH
config SND_SOC_SOF_AMD_REMBRANDT config SND_SOC_SOF_AMD_REMBRANDT
tristate "SOF support for REMBRANDT" tristate "SOF support for REMBRANDT"
depends on SND_SOC_SOF_PCI depends on SND_SOC_SOF_PCI
depends on CPU_SUP_AMD
select SND_SOC_SOF_AMD_COMMON select SND_SOC_SOF_AMD_COMMON
help help
Select this option for SOF support on AMD Rembrandt platform Select this option for SOF support on AMD Rembrandt platform
@ -82,6 +85,7 @@ config SND_SOC_SOF_AMD_SOUNDWIRE
config SND_SOC_SOF_AMD_ACP63 config SND_SOC_SOF_AMD_ACP63
tristate "SOF support for ACP6.3 platform" tristate "SOF support for ACP6.3 platform"
depends on SND_SOC_SOF_PCI depends on SND_SOC_SOF_PCI
depends on CPU_SUP_AMD
select SND_SOC_SOF_AMD_COMMON select SND_SOC_SOF_AMD_COMMON
select SND_SOC_SOF_AMD_SOUNDWIRE_LINK_BASELINE select SND_SOC_SOF_AMD_SOUNDWIRE_LINK_BASELINE
help help
@ -93,6 +97,7 @@ config SND_SOC_SOF_AMD_ACP63
config SND_SOC_SOF_AMD_ACP70 config SND_SOC_SOF_AMD_ACP70
tristate "SOF support for ACP7.0 platform" tristate "SOF support for ACP7.0 platform"
depends on SND_SOC_SOF_PCI depends on SND_SOC_SOF_PCI
depends on CPU_SUP_AMD
select SND_SOC_SOF_AMD_COMMON select SND_SOC_SOF_AMD_COMMON
help help
Select this option for SOF support on Select this option for SOF support on