ASoC: Ensure WM8731 register cache is synced when resuming from disabled
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 21 Nov 2011 11:55:41 +0000 (11:55 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 21 Nov 2011 16:58:46 +0000 (16:58 +0000)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
sound/soc/codecs/wm8731.c

index 7e5ec03f6f8dd579d1bd43413fd1d007a1989bcb..a7c9ae17fc7eb0e743a8dbfb27db88fea58a456e 100644 (file)
@@ -453,6 +453,7 @@ static int wm8731_set_bias_level(struct snd_soc_codec *codec,
                snd_soc_write(codec, WM8731_PWR, 0xffff);
                regulator_bulk_disable(ARRAY_SIZE(wm8731->supplies),
                                       wm8731->supplies);
+               codec->cache_sync = 1;
                break;
        }
        codec->dapm.bias_level = level;