From: Mark Brown Date: Wed, 18 Jan 2012 20:02:38 +0000 (+0000) Subject: ASoC: Mark WM5100 register map cache only when going into BIAS_OFF X-Git-Tag: v3.2.3~77 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=11a17e56ac9c607c6eaecf64b618cd17c828ade0;p=karo-tx-linux.git ASoC: Mark WM5100 register map cache only when going into BIAS_OFF commit e53e417331c57b9b97e3f8be870214a02c99265c upstream. Writing to the registers won't work if we do actually manage to hit a fully powered off state. Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- diff --git a/sound/soc/codecs/wm5100.c b/sound/soc/codecs/wm5100.c index 42d9039a49e9..19c26d222547 100644 --- a/sound/soc/codecs/wm5100.c +++ b/sound/soc/codecs/wm5100.c @@ -1404,6 +1404,7 @@ static int wm5100_set_bias_level(struct snd_soc_codec *codec, break; case SND_SOC_BIAS_OFF: + regcache_cache_only(wm5100->regmap, true); if (wm5100->pdata.ldo_ena) gpio_set_value_cansleep(wm5100->pdata.ldo_ena, 0); regulator_bulk_disable(ARRAY_SIZE(wm5100->core_supplies),