aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8994_samsung.c
diff options
context:
space:
mode:
authorUK KIM <w0806.kim@samsung.com>2010-09-14 20:07:33 -0700
committerArve Hjønnevåg <arve@android.com>2011-11-17 17:45:42 -0800
commitc0ffad1e94af161adb6b4e188076bcf66de3f64f (patch)
tree5000344318ca50debdbab7caa9a2bf3675d10264 /sound/soc/codecs/wm8994_samsung.c
parentdc6b8fc04ff98f4fd283aac5a471703155f127b2 (diff)
downloadkernel_samsung_crespo-c0ffad1e94af161adb6b4e188076bcf66de3f64f.zip
kernel_samsung_crespo-c0ffad1e94af161adb6b4e188076bcf66de3f64f.tar.gz
kernel_samsung_crespo-c0ffad1e94af161adb6b4e188076bcf66de3f64f.tar.bz2
S5PC11X: SOUND: delay I2C-SCL waiting time after codec's VMID up.
According to Wolfson's guide, i2c operation must be enabled after codec VMID is stable up. Signed-off-by: UK KIM <w0806.kim@samsung.com> Change-Id: Ic6b7e9d55c74c8545e760b831222ff0e0227d98f
Diffstat (limited to 'sound/soc/codecs/wm8994_samsung.c')
-rwxr-xr-xsound/soc/codecs/wm8994_samsung.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm8994_samsung.c b/sound/soc/codecs/wm8994_samsung.c
index 26035b1..8e924de 100755
--- a/sound/soc/codecs/wm8994_samsung.c
+++ b/sound/soc/codecs/wm8994_samsung.c
@@ -1088,7 +1088,7 @@ static int wm8994_startup(struct snd_pcm_substream *substream,
/* For initialize codec */
wm8994_write(codec, WM8994_POWER_MANAGEMENT_1,
0x3 << WM8994_VMID_SEL_SHIFT | WM8994_BIAS_ENA);
- msleep(30);
+ msleep(50);
wm8994_write(codec, WM8994_POWER_MANAGEMENT_1,
WM8994_VMID_SEL_NORMAL | WM8994_BIAS_ENA);
wm8994_write(codec, WM8994_OVERSAMPLING, 0x0000);
@@ -1237,7 +1237,7 @@ static int wm8994_init(struct wm8994_priv *wm8994_private)
wm8994_write(codec, WM8994_POWER_MANAGEMENT_1,
0x3 << WM8994_VMID_SEL_SHIFT | WM8994_BIAS_ENA);
- msleep(10);
+ msleep(50);
wm8994_write(codec, WM8994_POWER_MANAGEMENT_1,
WM8994_VMID_SEL_NORMAL | WM8994_BIAS_ENA);
@@ -1338,7 +1338,6 @@ static int wm8994_i2c_probe(struct i2c_client *i2c,
s3c_gpio_slp_cfgpin(pdata->micbias, S3C_GPIO_SLP_PREV);
wm8994_ldo_control(pdata, 1);
- msleep(10);
codec->hw_write = (hw_write_t) i2c_master_send;
i2c_set_clientdata(i2c, wm8994_priv);