Commit 9887cb9e authored by Mark Brown's avatar Mark Brown

ASoC: Use standard register cache sync for WM8955

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent ba5c88d0
...@@ -795,18 +795,7 @@ static int wm8955_set_bias_level(struct snd_soc_codec *codec, ...@@ -795,18 +795,7 @@ static int wm8955_set_bias_level(struct snd_soc_codec *codec,
return ret; return ret;
} }
/* Sync back cached values if they're snd_soc_cache_sync(codec);
* 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]);
}
/* Enable VREF and VMID */ /* Enable VREF and VMID */
snd_soc_update_bits(codec, WM8955_POWER_MANAGEMENT_1, snd_soc_update_bits(codec, WM8955_POWER_MANAGEMENT_1,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment