From: Mark Brown Date: Tue, 28 Oct 2008 15:04:35 +0000 (+0000) Subject: ASoC: Do a warm reset after cold when resetting the WM9713 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e775f6c0fb6ac25ab8845d4ad1e17b4b015487f0;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git ASoC: Do a warm reset after cold when resetting the WM9713 The WM9713 comes out of cold reset in low power mode so always requires a warm reset to bring up the AC97 link after a cold reset. Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm9713.c b/sound/soc/codecs/wm9713.c index aba402b3c999..3214aa503ead 100644 --- a/sound/soc/codecs/wm9713.c +++ b/sound/soc/codecs/wm9713.c @@ -1097,6 +1097,8 @@ int wm9713_reset(struct snd_soc_codec *codec, int try_warm) } soc_ac97_ops.reset(codec->ac97); + if (soc_ac97_ops.warm_reset) + soc_ac97_ops.warm_reset(codec->ac97); if (ac97_read(codec, 0) != wm9713_reg[0]) return -EIO; return 0;