From: Axel Lin Date: Tue, 11 Oct 2011 09:55:00 +0000 (+0800) Subject: ASoC: Writing register default value for the reset register X-Git-Tag: MMI-PSA29.97-13-9~16612^2~607 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6f25e4eed9751460ee5f0ae9ff26e3a201261f71;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ASoC: Writing register default value for the reset register The WM8983 can be reset by performing a write of any value to the software reset register. To avoid writing to the software reset register while resume, we should write the same value in wm8983_reg_defs to software reset register in wm8983_probe(). The write to the reset register is suppressed by the cache restore code when it skips writes of default registers. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm8983.c b/sound/soc/codecs/wm8983.c index 17f04ec2b940..93ee28439be5 100644 --- a/sound/soc/codecs/wm8983.c +++ b/sound/soc/codecs/wm8983.c @@ -1007,7 +1007,7 @@ static int wm8983_probe(struct snd_soc_codec *codec) return ret; } - ret = snd_soc_write(codec, WM8983_SOFTWARE_RESET, 0x8983); + ret = snd_soc_write(codec, WM8983_SOFTWARE_RESET, 0); if (ret < 0) { dev_err(codec->dev, "Failed to issue reset: %d\n", ret); return ret;