ASoC: ab8500: Explicitly set I/O up
authorMark Brown <broonie@linaro.org>
Tue, 24 Sep 2013 10:50:10 +0000 (11:50 +0100)
committerMark Brown <broonie@linaro.org>
Tue, 24 Sep 2013 11:02:49 +0000 (12:02 +0100)
We do some I/O in probe so we need to ensure the I/O operations are fully
set up then.

Reported-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/ab8500-codec.c

index d5a0fc4b2fe2590e00ce6eece8e01db65a2f1ee1..7f6ca111659b9741004af9f1dee7fd0f426762e5 100644 (file)
@@ -2468,6 +2468,8 @@ static int ab8500_codec_probe(struct snd_soc_codec *codec)
 
        dev_dbg(dev, "%s: Enter.\n", __func__);
 
+       snd_soc_codec_set_cache_io(codec, 0, 0, SND_SOC_REGMAP);
+
        /* Setup AB8500 according to board-settings */
        pdata = dev_get_platdata(dev->parent);