Skip to content

Commit

Permalink
ASoC: Use standard register cache sync for WM8955
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Jan 20, 2012
1 parent ba5c88d commit 9887cb9
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions sound/soc/codecs/wm8955.c
Original file line number Diff line number Diff line change
Expand Up @@ -795,18 +795,7 @@ static int wm8955_set_bias_level(struct snd_soc_codec *codec,
return ret;
}

/* Sync back cached values if they're
* different from the hardware default.
*/
for (i = 0; i < codec->driver->reg_cache_size; i++) {
if (i == WM8955_RESET)
continue;

if (reg_cache[i] == wm8955_reg[i])
continue;

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

/* Enable VREF and VMID */
snd_soc_update_bits(codec, WM8955_POWER_MANAGEMENT_1,
Expand Down

0 comments on commit 9887cb9

Please sign in to comment.