]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.27/0052-ASoC-wm8962-Allow-VMID-time-to-fully-ramp.patch
linux-ti33x-psp 3.2: update to 3.2.28 and add motorcape support
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.2 / 3.2.27 / 0052-ASoC-wm8962-Allow-VMID-time-to-fully-ramp.patch
1 From 83c2f7e55e6b8ecd96bf3222c8176824c643d562 Mon Sep 17 00:00:00 2001
2 From: Mark Brown <broonie@opensource.wolfsonmicro.com>
3 Date: Mon, 30 Jul 2012 18:24:19 +0100
4 Subject: [PATCH 52/70] ASoC: wm8962: Allow VMID time to fully ramp
6 commit 9d40e5582c9c4cfb6977ba2a0ca9c2ed82c56f21 upstream.
8 Required for reliable power up from cold.
10 Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
11 Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
12 ---
13  sound/soc/codecs/wm8962.c |    3 +++
14  1 files changed, 3 insertions(+), 0 deletions(-)
16 diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
17 index 07dd7eb..e97df24 100644
18 --- a/sound/soc/codecs/wm8962.c
19 +++ b/sound/soc/codecs/wm8962.c
20 @@ -3105,6 +3105,9 @@ static int wm8962_set_bias_level(struct snd_soc_codec *codec,
21                 /* VMID 2*250k */
22                 snd_soc_update_bits(codec, WM8962_PWR_MGMT_1,
23                                     WM8962_VMID_SEL_MASK, 0x100);
24 +
25 +               if (codec->dapm.bias_level == SND_SOC_BIAS_OFF)
26 +                       msleep(100);
27                 break;
28  
29         case SND_SOC_BIAS_OFF:
30 -- 
31 1.7.7.6