ASoC: wm8994: Actively discharge VMID when not in use
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 11 Feb 2012 23:10:30 +0000 (23:10 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 11 Feb 2012 23:11:22 +0000 (23:11 +0000)
Ensure we're in a known state when we restart.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8994.c

index aa94ca1f6a9b673ae6108a74977ce954de786c5f..3a69ec0d5afd3f2510457120050af77617e5c7c5 100644 (file)
@@ -838,6 +838,10 @@ static void vmid_dereference(struct snd_soc_codec *codec)
                                    WM8994_BIAS_ENA |
                                    WM8994_VMID_SEL_MASK, 0);
 
+               /* Discharge VMID */
+               snd_soc_update_bits(codec, WM8994_ANTIPOP_2,
+                                   WM8994_VMID_DISCH, WM8994_VMID_DISCH);
+
                /* Discharge line */
                snd_soc_update_bits(codec, WM8994_ANTIPOP_1,
                                    WM8994_LINEOUT1_DISCH |