]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: wm8962: Allow VMID time to fully ramp
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 30 Jul 2012 17:24:19 +0000 (18:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Aug 2012 15:27:53 +0000 (08:27 -0700)
commit 9d40e5582c9c4cfb6977ba2a0ca9c2ed82c56f21 upstream.

Required for reliable power up from cold.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/wm8962.c

index c850e3d84ed00b300f67c9b17d1006ed0903d9e2..f16f587dfb0e67dad46d7a780a33882b7fc86a2a 100644 (file)
@@ -2890,6 +2890,9 @@ static int wm8962_set_bias_level(struct snd_soc_codec *codec,
                /* VMID 2*250k */
                snd_soc_update_bits(codec, WM8962_PWR_MGMT_1,
                                    WM8962_VMID_SEL_MASK, 0x100);
+
+               if (codec->dapm.bias_level == SND_SOC_BIAS_OFF)
+                       msleep(100);
                break;
 
        case SND_SOC_BIAS_OFF: