提交 202a51a8 编写于 作者: M Mark Brown

ASoC: Use standard cache sync code in wm8961

We write the reset register with the default value so it should not be
mistakenly written.
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 2ec2a906
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册