Skip to content

Commit

Permalink
ASoC: Use standard cache sync code in wm8961
Browse files Browse the repository at this point in the history
We write the reset register with the default value so it should not be
mistakenly written.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Dec 17, 2011
1 parent 2ec2a90 commit 202a51a
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions sound/soc/codecs/wm8961.c
Original file line number Diff line number Diff line change
Expand Up @@ -1047,18 +1047,7 @@ static int wm8961_suspend(struct snd_soc_codec *codec)

static int wm8961_resume(struct snd_soc_codec *codec)
{
u16 *reg_cache = codec->reg_cache;
int i;

for (i = 0; i < codec->driver->reg_cache_size; i++) {
if (reg_cache[i] == wm8961_reg_defaults[i])
continue;

if (i == WM8961_SOFTWARE_RESET)
continue;

snd_soc_write(codec, i, reg_cache[i]);
}
snd_soc_cache_sync(codec);

wm8961_set_bias_level(codec, SND_SOC_BIAS_STANDBY);

Expand Down

0 comments on commit 202a51a

Please sign in to comment.