Skip to contentSkip to conversation

ASoC: amd: vangogh: add SPI dependency

PATCH In review Arnd Bergmann 2 participants 2 messages Oct 19, 2021 – Nov 3, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: amd: vangogh: add SPI dependency

From: Arnd Bergmann <[email protected]>

Without CONFIG_SPI, this fails to build:

WARNING: unmet direct dependencies detected for SND_SOC_CS35L41_SPI
Depends on [n]: SOUND [=m] && !UML && SND [=m] && SND_SOC [=m] && SPI_MASTER [=n]
Selected by [m]:
- SND_SOC_AMD_VANGOGH_MACH [=m] && SOUND [=m] && !UML && SND [=m] && SND_SOC [=m] && SND_SOC_AMD_ACP5x [=m] && I2C [=y]
ERROR: modpost: "spi_setup" [sound/soc/codecs/snd-soc-cs35l41-spi.ko] undefined!
ERROR: modpost: "__devm_regmap_init_spi" [sound/soc/codecs/snd-soc-cs35l41-spi.ko] undefined!

Fixes 96792fdd77cd ("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 d91a9399777c..edee2098c82e 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
 	help
 	  This option enables machine driver for Vangogh platform
 	  using NAU8821 and CS35L41 codecs.
Signature · 1 line
2.29.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 23 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

Without CONFIG_SPI, this fails to build:

WARNING: unmet direct dependencies detected for SND_SOC_CS35L41_SPI
Depends on [n]: SOUND [=m] && !UML && SND [=m] && SND_SOC [=m] && SPI_MASTER [=n]
Selected by [m]:
- SND_SOC_AMD_VANGOGH_MACH [=m] && SOUND [=m] && !UML && SND [=m] && SND_SOC [=m] && SND_SOC_AMD_ACP5x [=m] && I2C [=y]
ERROR: modpost: "spi_setup" [sound/soc/codecs/snd-soc-cs35l41-spi.ko] undefined!
ERROR: modpost: "__devm_regmap_init_spi" [sound/soc/codecs/snd-soc-cs35l41-spi.ko] undefined!

Fixes 96792fdd77cd ("ASoC: amd: enable vangogh platform machine driver build")
---
  sound/soc/amd/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/amd/Kconfig +0 -0
index d91a9399777c..edee2098c82e 100644

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

Quoted 8 lines
sound/soc/amd/Kconfig +1 -1
@@ -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
  	help
  	  This option enables machine driver for Vangogh platform
  	  using NAU8821 and CS35L41 codecs.

Just had this build error in linux-next-20211103
so this patch is needed there.

Thanks.

Signature · 1 line
~Randy