From: Marek Vasut Date: Thu, 14 May 2009 19:52:46 +0000 (+0100) Subject: ASoC: Support AC97 link off by default on WM9712 X-Git-Tag: v2.6.31-rc2~6^2~13^2~57^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=63c26baa2aa624b023892d66ed696525fc787560;p=profile%2Fcommon%2Fkernel-common.git ASoC: Support AC97 link off by default on WM9712 The WM9712 can be configured by resistor strapping GPIO4 to behave like the WM9713 and default to leaving the AC97 link disabled after cold reset until a warm reset occurs. In this configuration we need to issue a warm reset after cold to bring the link up so do so. The warm reset will be harmless on systems that don't need it. [Changelog rewritten to document the reasoning. -- broonie] Signed-off-by: Marek Vasut Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm9712.c b/sound/soc/codecs/wm9712.c index 550c903..1fd4e88 100644 --- a/sound/soc/codecs/wm9712.c +++ b/sound/soc/codecs/wm9712.c @@ -585,6 +585,8 @@ static int wm9712_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) != wm9712_reg[0]) goto err; return 0;