]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ASoC: Fix SND_SOC_ALL_CODECS handling of dual SPI and I2C control buses
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 3 Jan 2009 10:24:41 +0000 (11:24 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 6 Jan 2009 14:23:10 +0000 (14:23 +0000)
commit227b4dc6432d271eecd0ff0aefe6f0897ec47397
tree464777efda9c28c3689f6e8a7cd5862f5a7a3da7
parent8c0bad7fa5be47aa8a3d03ff6ee1917fa68b72e3
ASoC: Fix SND_SOC_ALL_CODECS handling of dual SPI and I2C control buses

For codecs that have both SPI and I2C support we need to ensure that we
don't try to make the codec driver built in when I2C is modular since
that won't link.  Do this by creating a helper variable which uses
conditional defaults to pick up the correct value for all combinations.

We don't need to do anything special for I2C-only codecs since a
conditional select passes on the full value for a tristate.

Reported-by: Ingo Molnar <mingo@elte.hu>
Tested-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/Kconfig