Skip to contentSkip to conversation

ASoC: samsung: Add I2C dependency for snow

PATCH In review Arnd Bergmann 3 participants 3 messages Jun 4, 2014

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

PATCH 1/1 ASoC: samsung: Add I2C dependency for snow

Both codecs used by snow, max98090 and max98095 require the use of I2C, so we can only select this driver if I2C is there, otherwise we get a build error like:

codecs/max98090.c:2494:1: warning: data definition has no type or storage class [enabled by default]
module_i2c_driver(max98090_i2c_driver);
^
codecs/max98095.c:2443:1: warning: data definition has no type or storage class [enabled by default]
module_i2c_driver(max98095_i2c_driver);
^

This adds one more I2C dependency to the hundreds we already have.

---

sound/soc/samsung/Kconfig +1 -1
index a7cb8f6..cb7be4f 100644
@@ -232,7 +232,7 @@ config SND_SOC_LITTLEMILL
 
 config SND_SOC_SNOW
 	tristate "Audio support for Google Snow boards"
-	depends on SND_SOC_SAMSUNG
+	depends on SND_SOC_SAMSUNG && I2C
 	select SND_SOC_MAX98090
 	select SND_SOC_MAX98095
 	select SND_SAMSUNG_I2S
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Arnd Bergmann

Both codecs used by snow, max98090 and max98095 require the use of I2C, so we can only select this driver if I2C is there, otherwise we get a build error like:

codecs/max98090.c:2494:1: warning: data definition has no type or storage class [enabled by default]
module_i2c_driver(max98090_i2c_driver);
^
codecs/max98095.c:2443:1: warning: data definition has no type or storage class [enabled by default]
module_i2c_driver(max98095_i2c_driver);
^

Quoted 5 lines

This adds one more I2C dependency to the hundreds we already have.

Thanks for the patch. I should have added this dependency while introducing this config option.

Quoted 15 lines

---

sound/soc/samsung/Kconfig +1 -1
index a7cb8f6..cb7be4f 100644
@@ -232,7 +232,7 @@ config SND_SOC_LITTLEMILL
 
 config SND_SOC_SNOW
        tristate "Audio support for Google Snow boards"
-       depends on SND_SOC_SAMSUNG
+       depends on SND_SOC_SAMSUNG && I2C
        select SND_SOC_MAX98090
        select SND_SOC_MAX98095
        select SND_SAMSUNG_I2S
Signature · 1 line
Tushar Behera
maintainer
#2 lore raw
In reply to Arnd Bergmann
Quoted 3 lines · Arnd Bergmann

Both codecs used by snow, max98090 and max98095 require the use of I2C, so we can only select this driver if I2C is there, otherwise we get a build error like:

Applied, thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140604/1608efaf/attachment.sig>