aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm9090.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-12-13 08:04:26 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-12-14 04:07:39 -0500
commitffbf2a363e1867ba5f5869236dda944ec12fe99b (patch)
tree04079ff13539491d5a243eafd22ce6c245685a7f /sound/soc/codecs/wm9090.c
parent42f3b0109ea61aee0541a02f1802fd7939b9853a (diff)
ASoC: Use standard snd_soc_cache_sync() for WM9090
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm9090.c')
-rw-r--r--sound/soc/codecs/wm9090.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sound/soc/codecs/wm9090.c b/sound/soc/codecs/wm9090.c
index d1d2c703eab2..41ebe0dce772 100644
--- a/sound/soc/codecs/wm9090.c
+++ b/sound/soc/codecs/wm9090.c
@@ -513,18 +513,7 @@ static int wm9090_set_bias_level(struct snd_soc_codec *codec,
513 case SND_SOC_BIAS_STANDBY: 513 case SND_SOC_BIAS_STANDBY:
514 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { 514 if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) {
515 /* Restore the register cache */ 515 /* Restore the register cache */
516 for (i = 1; i < codec->driver->reg_cache_size; i++) { 516 snd_soc_cache_sync(codec);
517 if (reg_cache[i] == wm9090_reg_defaults[i])
518 continue;
519 if (wm9090_volatile(codec, i))
520 continue;
521
522 ret = snd_soc_write(codec, i, reg_cache[i]);
523 if (ret != 0)
524 dev_warn(codec->dev,
525 "Failed to restore register %d: %d\n",
526 i, ret);
527 }
528 } 517 }
529 518
530 /* We keep VMID off during standby since the combination of 519 /* We keep VMID off during standby since the combination of