From: Mark Brown Date: Sat, 3 Jan 2009 10:24:41 +0000 (+0100) Subject: ASoC: Fix SND_SOC_ALL_CODECS handling of dual SPI and I2C control buses X-Git-Tag: v2.6.29-rc1~227^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=227b4dc6432d271eecd0ff0aefe6f0897ec47397;p=pandora-kernel.git 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 Tested-by: Ingo Molnar Signed-off-by: Mark Brown --- Reading git-diff-tree failed