From: Mark Brown Date: Mon, 21 Nov 2011 11:55:41 +0000 (+0000) Subject: ASoC: Ensure WM8731 register cache is synced when resuming from disabled X-Git-Tag: v2.6.39-400.9.0~823^2~55 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=09a492f25abc5c00a5477b5aea69ea8c42dc1ed2;p=users%2Fjedix%2Flinux-maple.git ASoC: Ensure WM8731 register cache is synced when resuming from disabled commit ed3e80c4c991a52f9fce3421536a78e331ae0949 upstream. Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c index 76b4361e9b80..f5a0ec4ade52 100644 --- a/sound/soc/codecs/wm8731.c +++ b/sound/soc/codecs/wm8731.c @@ -463,6 +463,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;