diff options
author | sh21.won <sh21.won@samsung.com> | 2011-03-24 09:26:42 +0900 |
---|---|---|
committer | Arve Hjønnevåg <arve@android.com> | 2011-11-17 17:53:46 -0800 |
commit | da4284c7d5c99a515158b0d615155bc0f2376912 (patch) | |
tree | 2ca8115010504fff8e01dc474477e551b353c7f2 /sound | |
parent | c59b39369e4925d1a04cbb347e491c7bf9f600fb (diff) | |
download | kernel_samsung_crespo-da4284c7d5c99a515158b0d615155bc0f2376912.zip kernel_samsung_crespo-da4284c7d5c99a515158b0d615155bc0f2376912.tar.gz kernel_samsung_crespo-da4284c7d5c99a515158b0d615155bc0f2376912.tar.bz2 |
ASOC: delay after turning on codec
Voice calls are occasionally muted. This is because
a value is written to the codec register before the codec
has turned on completely. So, turn on the codec and
wait until it is turned on completely.
Signed-off-by: sh21.won <sh21.won@samsung.com>
Diffstat (limited to 'sound')
-rwxr-xr-x | sound/soc/codecs/wm8994_herring.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8994_herring.c b/sound/soc/codecs/wm8994_herring.c index b106c0b..3ccad95 100755 --- a/sound/soc/codecs/wm8994_herring.c +++ b/sound/soc/codecs/wm8994_herring.c @@ -2252,6 +2252,9 @@ static void wm8994_set_cdma_voicecall_common_setting(struct snd_soc_codec *codec { int val; + wm8994_write(codec, WM8994_ANTIPOP_2, 0x0068); + wm8994_write(codec, WM8994_POWER_MANAGEMENT_1, 0x0003); + msleep(50); /* GPIO Configuration */ wm8994_write(codec, WM8994_GPIO_1, 0xA101); wm8994_write(codec, WM8994_GPIO_2, 0x8100); |