summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/mc13783.c
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-09-23 20:14:32 +0200
committerLee Jones <lee.jones@linaro.org>2013-10-23 17:21:24 +0200
commit0248b4bfe56f0545c051e6230939ca8b95f1b037 (patch)
tree7ffc3f6930b8ccf21a61b27bed03d48134bb88b9 /sound/soc/codecs/mc13783.c
parentmfd: mc13xxx: Don't require lock for simple register I/O (diff)
downloadlinux-0248b4bfe56f0545c051e6230939ca8b95f1b037.tar.xz
linux-0248b4bfe56f0545c051e6230939ca8b95f1b037.zip
mfd: mc13xxx: Move SPI erratum workaround into SPI I/O function
Move the workaround for double sending AUDIO_CODEC and AUDIO_DAC writes into the SPI core, aiding refactoring to eliminate the ASoC custom I/O functions and avoiding the extra writes for I2C. Signed-off-by: Mark Brown <broonie@linaro.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to '')
-rw-r--r--sound/soc/codecs/mc13783.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/soc/codecs/mc13783.c b/sound/soc/codecs/mc13783.c
index ea141e1d6f28..4d3c8fd8c5db 100644
--- a/sound/soc/codecs/mc13783.c
+++ b/sound/soc/codecs/mc13783.c
@@ -125,10 +125,6 @@ static int mc13783_write(struct snd_soc_codec *codec,
ret = mc13xxx_reg_write(priv->mc13xxx, reg, value);
- /* include errata fix for spi audio problems */
- if (reg == MC13783_AUDIO_CODEC || reg == MC13783_AUDIO_DAC)
- ret = mc13xxx_reg_write(priv->mc13xxx, reg, value);
-
mc13xxx_unlock(priv->mc13xxx);
return ret;