From: Mark Brown Date: Mon, 30 Jul 2012 17:24:19 +0000 (+0100) Subject: ASoC: wm8962: Allow VMID time to fully ramp X-Git-Tag: v3.0.40~7 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4ae4c20ceb593c1a8f392bb1100cc60a1f04ee4c;p=karo-tx-linux.git ASoC: wm8962: Allow VMID time to fully ramp commit 9d40e5582c9c4cfb6977ba2a0ca9c2ed82c56f21 upstream. Required for reliable power up from cold. Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index c850e3d84ed0..f16f587dfb0e 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -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: