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)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 31 Jul 2012 18:30:24 +0000 (19:30 +0100)
Required for reliable power up from cold.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
sound/soc/codecs/wm8962.c

index eaf65863ec2190c8e705eaa3d4b5a95ff6378d30..aa9ce9dd7d8adee0a1cab79d935569f188512d7d 100644 (file)
@@ -2501,6 +2501,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: