Skip to contentSkip to conversation

ASoC: amd: simplify soundwire dependencies for

PATCH RESEND Superseded Vijendar Mukunda 1 participant 2 messages Mar 22, 2024

Subsystems (3)
lore
Share & tools
lore

Vijendar Mukunda

author maintainer
#0 lore raw

PATCH RESEND 1/1 ASoC: amd: simplify soundwire dependencies for

The CONFIG_SOUNDWIRE_AMD is a user-visible option, it should be never selected by another driver.
So replace the extra complexity with a normal Kconfig dependency in SND_SOC_AMD_SOUNDWIRE.

---
 sound/soc/amd/Kconfig | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
sound/soc/amd/Kconfig +2 -3
index fa74635cee08..3508f5a96b75 100644
@@ -134,15 +134,14 @@ config SND_SOC_AMD_RPL_ACP6x
 
 config SND_SOC_AMD_SOUNDWIRE_LINK_BASELINE
 	tristate
-	select SOUNDWIRE_AMD if SND_SOC_AMD_SOUNDWIRE != n
 	select SND_AMD_SOUNDWIRE_ACPI if ACPI
 
 config SND_SOC_AMD_SOUNDWIRE
 	tristate "Support for SoundWire based AMD platforms"
 	default SND_SOC_AMD_SOUNDWIRE_LINK_BASELINE
 	depends on SND_SOC_AMD_SOUNDWIRE_LINK_BASELINE
-	depends on ACPI && SOUNDWIRE
-	depends on !(SOUNDWIRE=m && SND_SOC_AMD_SOUNDWIRE_LINK_BASELINE=y)
+	depends on ACPI
+	depends on SOUNDWIRE_AMD
 	help
 	  This adds support for SoundWire for AMD platforms.
 	  Say Y if you want to enable SoundWire links with SOF.
Signature · 1 line
2.34.1
author maintainer
#1 lore raw
Quoted 4 lines · Vijendar Mukunda

The CONFIG_SOUNDWIRE_AMD is a user-visible option, it should be never selected by another driver.
So replace the extra complexity with a normal Kconfig dependency in SND_SOC_AMD_SOUNDWIRE.

Please ignore this patch, as the commit title has not been posted completely.

Quoted 28 lines
---
 sound/soc/amd/Kconfig | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
sound/soc/amd/Kconfig +2 -3
index fa74635cee08..3508f5a96b75 100644
@@ -134,15 +134,14 @@ config SND_SOC_AMD_RPL_ACP6x
 
 config SND_SOC_AMD_SOUNDWIRE_LINK_BASELINE
 	tristate
-	select SOUNDWIRE_AMD if SND_SOC_AMD_SOUNDWIRE != n
 	select SND_AMD_SOUNDWIRE_ACPI if ACPI
 
 config SND_SOC_AMD_SOUNDWIRE
 	tristate "Support for SoundWire based AMD platforms"
 	default SND_SOC_AMD_SOUNDWIRE_LINK_BASELINE
 	depends on SND_SOC_AMD_SOUNDWIRE_LINK_BASELINE
-	depends on ACPI && SOUNDWIRE
-	depends on !(SOUNDWIRE=m && SND_SOC_AMD_SOUNDWIRE_LINK_BASELINE=y)
+	depends on ACPI
+	depends on SOUNDWIRE_AMD
 	help
 	  This adds support for SoundWire for AMD platforms.
 	  Say Y if you want to enable SoundWire links with SOF.