ASoC: wm8994: Disable line output discharge prior to ramping VMID
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 7 Feb 2012 14:18:29 +0000 (14:18 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 8 Feb 2012 19:52:00 +0000 (19:52 +0000)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8994.c

index b75a65273dab4729fd1decdcf9cb462103ff9aa7..ec69a6c152fea9a8b55a7c16c1f3935fb3dc305d 100644 (file)
@@ -787,6 +787,11 @@ static void vmid_reference(struct snd_soc_codec *codec)
                                    WM8994_VMID_BUF_ENA |
                                    (0x3 << WM8994_VMID_RAMP_SHIFT));
 
+               /* Remove discharge for line out */
+               snd_soc_update_bits(codec, WM8994_ANTIPOP_1,
+                                   WM8994_LINEOUT1_DISCH |
+                                   WM8994_LINEOUT2_DISCH, 0);
+
                /* Main bias enable, VMID=2x40k */
                snd_soc_update_bits(codec, WM8994_POWER_MANAGEMENT_1,
                                    WM8994_BIAS_ENA |