aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorsh21.won <sh21.won@samsung.com>2011-03-29 08:20:42 +0900
committerArve Hjønnevåg <arve@android.com>2011-11-17 17:54:06 -0800
commit3e7db3b2562654ac5e3a77d99542d137d595c5c0 (patch)
tree52c8b6146b46ab11fee37381987504947086a22a /sound
parent48571b5f01ee63ca133a928f4f6b47edc799fdc1 (diff)
downloadkernel_samsung_crespo-3e7db3b2562654ac5e3a77d99542d137d595c5c0.zip
kernel_samsung_crespo-3e7db3b2562654ac5e3a77d99542d137d595c5c0.tar.gz
kernel_samsung_crespo-3e7db3b2562654ac5e3a77d99542d137d595c5c0.tar.bz2
ASOC: Reduce the sleep current
The sleep current is more consumed about 0.1mA. Because ear_sel GPIO's setting is wrong. ear_sel GPIO is not connected with anything by Hardware. So, block 'Pull None' setting to reduce the sleep current. Change-Id: I8d9236b6a1af4f0051e56539844ba2778a748df3 Signed-off-by: sh21.won <sh21.won@samsung.com>
Diffstat (limited to 'sound')
-rwxr-xr-xsound/soc/codecs/wm8994_samsung.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sound/soc/codecs/wm8994_samsung.c b/sound/soc/codecs/wm8994_samsung.c
index a9e569b..c1f2bf2 100755
--- a/sound/soc/codecs/wm8994_samsung.c
+++ b/sound/soc/codecs/wm8994_samsung.c
@@ -40,6 +40,7 @@
#include <plat/gpio-cfg.h>
#include <mach/regs-clock.h>
#include "wm8994_samsung.h"
+#include "../../../arch/arm/mach-s5pv210/herring.h"
#define WM8994_VERSION "0.1"
#define SUBJECT "wm8994_samsung.c"
@@ -3010,11 +3011,12 @@ static int wm8994_codec_probe(struct snd_soc_codec *codec)
}
gpio_direction_output(pdata->ear_sel, 0);
}
- s3c_gpio_setpull(pdata->ear_sel, S3C_GPIO_PULL_NONE);
-
- s3c_gpio_slp_cfgpin(pdata->ear_sel, S3C_GPIO_SLP_PREV);
- s3c_gpio_slp_setpull_updown(pdata->ear_sel, S3C_GPIO_PULL_NONE);
+ if (!herring_is_cdma_wimax_dev()) {
+ s3c_gpio_setpull(pdata->ear_sel, S3C_GPIO_PULL_NONE);
+ s3c_gpio_slp_cfgpin(pdata->ear_sel, S3C_GPIO_SLP_PREV);
+ s3c_gpio_slp_setpull_updown(pdata->ear_sel, S3C_GPIO_PULL_NONE);
+ }
wm8994_ldo_control(pdata, 1);
codec->hw_write = (hw_write_t) i2c_master_send;