aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8994_samsung.h
diff options
context:
space:
mode:
authorUK KIM <w0806.kim@samsung.com>2010-10-19 23:47:43 -0700
committerArve Hjønnevåg <arve@android.com>2011-11-17 17:50:11 -0800
commitbfaeee91ce5a03c8e0481a1b660c99e7c6b86a35 (patch)
tree10f880bb3478d471512bf8bd3aceaee10b49aee5 /sound/soc/codecs/wm8994_samsung.h
parentfe9fd2ce97dc63c0862091cd0ba06057a6a412b2 (diff)
downloadkernel_samsung_crespo-bfaeee91ce5a03c8e0481a1b660c99e7c6b86a35.zip
kernel_samsung_crespo-bfaeee91ce5a03c8e0481a1b660c99e7c6b86a35.tar.gz
kernel_samsung_crespo-bfaeee91ce5a03c8e0481a1b660c99e7c6b86a35.tar.bz2
S5PC11X: SOUND: devide gain table using gain code
devide gain table with default table not to effect default gain table value. Change-Id: I369fa9e3dfe3c733e0ba6797a44d75b0c26baf15 Signed-off-by: UK KIM <w0806.kim@samsung.com>
Diffstat (limited to 'sound/soc/codecs/wm8994_samsung.h')
-rwxr-xr-xsound/soc/codecs/wm8994_samsung.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8994_samsung.h b/sound/soc/codecs/wm8994_samsung.h
index 0967f5b..a42ec56 100755
--- a/sound/soc/codecs/wm8994_samsung.h
+++ b/sound/soc/codecs/wm8994_samsung.h
@@ -49,6 +49,7 @@ extern struct snd_soc_dai wm8994_dai;
#define RECORDING_MODE (0x01 << 2)
#define FMRADIO_MODE (0x01 << 3)
+#define GAIN_DIVISION_BIT (0x01 << 16)
#define COMMON_SET_BIT (0x01 << 0)
#define PLAYBACK_RCV (0x01 << 1)
#define PLAYBACK_SPK (0x01 << 2)
@@ -74,7 +75,7 @@ extern struct snd_soc_dai wm8994_dai;
#define PLAYBACK_GAIN_NUM 39
#define VOICECALL_GAIN_NUM 26
#define RECORDING_GAIN_NUM 16
-
+#define GAIN_CODE_NUM 6
/*
* Definitions of enum type
*/
@@ -119,6 +120,7 @@ struct wm8994_priv {
select_clock_control universal_clock_control;
struct wm8994_platform_data *pdata;
struct clk *codec_clk;
+ int gain_code;
};
struct gain_info_t {
@@ -161,4 +163,5 @@ void wm8994_set_voicecall_headset(struct snd_soc_codec *codec);
void wm8994_set_voicecall_speaker(struct snd_soc_codec *codec);
void wm8994_set_voicecall_bluetooth(struct snd_soc_codec *codec);
int wm8994_set_codec_gain(struct snd_soc_codec *codec, u16 mode, u16 device);
+extern int gain_code_check(void);
#endif