Skip to contentSkip to conversation

ASoC: amd: Fix dependency for SPI master

PATCH Superseded Lucas Tanure 2 participants 4 messages Dec 1, 2021 – Dec 2, 2021

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ASoC: amd: Fix dependency for SPI master

Select SPI_MASTER as is using CS35L41 SPI driver

Fixes 96792fdd77cd1 ("ASoC: amd: enable vangogh platform machine driver build")
---
 sound/soc/amd/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/amd/Kconfig +1 -1
index 092966ff5ea7..8961b8fd23eb 100644
@@ -68,7 +68,7 @@ config SND_SOC_AMD_VANGOGH_MACH
 	tristate "AMD Vangogh support for NAU8821 CS35L41"
 	select SND_SOC_NAU8821
 	select SND_SOC_CS35L41_SPI
-	depends on SND_SOC_AMD_ACP5x && I2C
+	depends on SND_SOC_AMD_ACP5x && I2C && SPI_MASTER
 	help
 	  This option enables machine driver for Vangogh platform
 	  using NAU8821 and CS35L41 codecs.
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/2 ASoC: cs35l41: Fix undefined reference to core functions

Auto select core driver if i2c or spi bus drivers are selected

Fixes a5e0091d62ab ("ASoC: cs35l41: Fix link problem")
---
 sound/soc/codecs/Kconfig | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
sound/soc/codecs/Kconfig +4 -2
index b4f70e27342c..c033ee7d82e4 100644
@@ -614,17 +614,19 @@ config SND_SOC_CS35L36
 
 config SND_SOC_CS35L41
 	tristate
+	default y if SND_SOC_CS35L41_SPI=y
+	default y if SND_SOC_CS35L41_I2C=y
+	default m if SND_SOC_CS35L41_SPI=m
+	default m if SND_SOC_CS35L41_I2C=m
 
 config SND_SOC_CS35L41_SPI
 	tristate "Cirrus Logic CS35L41 CODEC (SPI)"
 	depends on SPI_MASTER
-	select SND_SOC_CS35L41
 	select REGMAP_SPI
 
 config SND_SOC_CS35L41_I2C
 	tristate "Cirrus Logic CS35L41 CODEC (I2C)"
 	depends on I2C
-	select SND_SOC_CS35L41
 	select REGMAP_I2C
 
 config SND_SOC_CS42L42
Signature · 1 line
2.34.1
maintainer
#2 lore raw
In reply to Lucas Tanure

sound/soc/amd/Kconfig config SND_SOC_AMD_VANGOGH_MACH · line 71

Quoted 4 lines · Lucas Tanure

Select SPI_MASTER as is using CS35L41 SPI driver

sound/soc/amd/Kconfig +1 -1
-	depends on SND_SOC_AMD_ACP5x && I2C
+	depends on SND_SOC_AMD_ACP5x && I2C && SPI_MASTER

This is a depends not a select (which is good, a select wouldn't be appropriate here).

maintainer
#3 lore raw
In reply to Lucas Tanure
Quoted 5 lines · Lucas Tanure

Select SPI_MASTER as is using CS35L41 SPI driver

Fixes 96792fdd77cd1 ("ASoC: amd: enable vangogh platform machine driver build")

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/2] ASoC: amd: Fix dependency for SPI master

      commit: 19a628d8f1a6c16263d8037a918427207c8a95a0
[2/2] ASoC: cs35l41: Fix undefined reference to core functions
      commit: 0695ad92fe1a0bb7697eb92c6a145a73c5ab0e24

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark