[alsa-devel] [PATCH] ASoC: tlv320aic23: add dependencies on I2C/SPI_MASTER

Max Filippov jcmvbkbc at gmail.com
Mon Nov 3 11:10:53 CET 2014


This fixes build errors in configurations with I2C/SPI master disabled.

Reported-by: Fengguang Wu <fengguang.wu at intel.com>
Signed-off-by: Max Filippov <jcmvbkbc at gmail.com>
---
 sound/soc/codecs/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig
index 7dad805..b0bcd0d 100644
--- a/sound/soc/codecs/Kconfig
+++ b/sound/soc/codecs/Kconfig
@@ -553,10 +553,12 @@ config SND_SOC_TLV320AIC23
 
 config SND_SOC_TLV320AIC23_I2C
 	tristate "Texas Instruments TLV320AIC23 audio CODEC - I2C"
+	depends on I2C
 	select SND_SOC_TLV320AIC23
 
 config SND_SOC_TLV320AIC23_SPI
 	tristate "Texas Instruments TLV320AIC23 audio CODEC - SPI"
+	depends on SPI_MASTER
 	select SND_SOC_TLV320AIC23
 
 config SND_SOC_TLV320AIC26
-- 
1.8.1.4



More information about the Alsa-devel mailing list