From 62ca513220bb57d4c37fe30c5dbc3a62d39f338e Mon Sep 17 00:00:00 2001 From: Ravindra Lokhande Date: Fri, 25 Feb 2011 23:53:56 +0530 Subject: [tegra alsa] reset vmid and bias for wm8903 reset vimd and bias registers for wm8903 codec when codec bias level is off. fix for bug 773327 Change-Id: If7d46f4210fb70f2bfd47c46cdf834ec7b7b776e Reviewed-on: http://git-master/r/21226 Reviewed-by: Ravindra Lokhande Tested-by: Ravindra Lokhande Reviewed-by: Bharat Nihalani Reviewed-by: Scott Peterson --- sound/soc/codecs/wm8903.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c index 88d342ff4101..7acd563d9128 100644 --- a/sound/soc/codecs/wm8903.c +++ b/sound/soc/codecs/wm8903.c @@ -988,6 +988,11 @@ static int wm8903_set_bias_level(struct snd_soc_codec *codec, case SND_SOC_BIAS_OFF: wm8903_run_sequence(codec, 32); + + snd_soc_write(codec, WM8903_VMID_CONTROL_0, 0x0); + + snd_soc_write(codec, WM8903_BIAS_CONTROL_0, 0x0); + reg = snd_soc_read(codec, WM8903_CLOCK_RATES_2); reg &= ~WM8903_CLK_SYS_ENA; snd_soc_write(codec, WM8903_CLOCK_RATES_2, reg); -- cgit v1.2.3