Skip to contentSkip to conversation

ASoC: rt5677: add build dependency to spi

PATCH Applied Anatol Pomozov 3 participants 3 messages Oct 17, 2014 – Oct 20, 2014

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

PATCH 1/1 ASoC: rt5677: add build dependency to spi

Since 9cb715a9d4c the codec has a hardcoded dependency to spi. Add this dependency to Kconfig. It fixes buildbot compilation failure:

sound/built-in.o: In function `spi_write':

Quoted 1 line
Quoted 1 line

rt5677-spi.c:(.text+0x8265f): undefined reference to `spi_sync'

sound/built-in.o: In function `rt5677_spi_driver_init':

Quoted 1 line
Quoted 1 line

rt5677-spi.c:(.init.text+0x17db): undefined reference to `spi_register_driver'

---
 sound/soc/codecs/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/Kconfig +1 -1
index 8838838e..1ff565e 100644
@@ -81,7 +81,7 @@ config SND_SOC_ALL_CODECS
 	select SND_SOC_RT5645 if I2C
 	select SND_SOC_RT5651 if I2C
 	select SND_SOC_RT5670 if I2C
-	select SND_SOC_RT5677 if I2C
+	select SND_SOC_RT5677 if I2C && SPI_MASTER
 	select SND_SOC_SGTL5000 if I2C
 	select SND_SOC_SI476X if MFD_SI476X_CORE
 	select SND_SOC_SIRF_AUDIO_CODEC
Signature · 1 line
2.1.0.rc2.206.gedb03e5
#1 lore raw
Quoted 10 lines

-----Original Message-----
From: Anatol Pomozov [mailto:[email protected]]
Sent: Saturday, October 18, 2014 2:57 AM
To: [email protected]
Cc: Oder Chiou; [email protected]; Anatol Pomozov
Subject: [PATCH] ASoC: rt5677: add build dependency to spi

Since 9cb715a9d4c the codec has a hardcoded dependency to spi. Add this dependency to Kconfig. It fixes buildbot compilation failure:

Quoted 6 lines

sound/built-in.o: In function `spi_write':

Quoted 1 line
Quoted 1 line

rt5677-spi.c:(.text+0x8265f): undefined reference to `spi_sync'

sound/built-in.o: In function `rt5677_spi_driver_init':

Quoted 1 line
Quoted 1 line

rt5677-spi.c:(.init.text+0x17db): undefined reference to `spi_register_driver'

Oder Chiou <[email protected]>

maintainer Applied
#2 lore raw
In reply to Anatol Pomozov
Quoted 2 lines · Anatol Pomozov

Since 9cb715a9d4c the codec has a hardcoded dependency to spi. Add this dependency to Kconfig. It fixes buildbot compilation failure:

Applied, thanks.