diff options
author | UK KIM <w0806.kim@samsung.com> | 2010-10-27 18:57:57 -0700 |
---|---|---|
committer | Arve Hjønnevåg <arve@android.com> | 2011-11-17 17:51:58 -0800 |
commit | 628dabdc62177ef9b6b7358ccf2e861bec0ead2b (patch) | |
tree | f1fbb86c1be53933f5cb551478e25c850183a299 /sound/soc/codecs/wm8994_samsung.h | |
parent | 0928b61482a7730e3d0a900b9359e204193bf526 (diff) | |
download | kernel_samsung_crespo-628dabdc62177ef9b6b7358ccf2e861bec0ead2b.zip kernel_samsung_crespo-628dabdc62177ef9b6b7358ccf2e861bec0ead2b.tar.gz kernel_samsung_crespo-628dabdc62177ef9b6b7358ccf2e861bec0ead2b.tar.bz2 |
S5PC11X: SOUND : can support to set gains in all modes for Europe.
1. support gain setting in all modes for Europe.
2. change gain value
HPOUT1 L/R(1Ch, 1Dh) : -8dB
Change-Id: I3400741ae7a47fbb501348683dc57f9c0baaa174
Signed-off-by: UK KIM <w0806.kim@samsung.com>
Diffstat (limited to 'sound/soc/codecs/wm8994_samsung.h')
-rwxr-xr-x | sound/soc/codecs/wm8994_samsung.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/sound/soc/codecs/wm8994_samsung.h b/sound/soc/codecs/wm8994_samsung.h index edf8f75..989bdf4 100755 --- a/sound/soc/codecs/wm8994_samsung.h +++ b/sound/soc/codecs/wm8994_samsung.h @@ -43,11 +43,16 @@ extern struct snd_soc_dai wm8994_dai; #define PCM_STREAM_PLAYBACK 0x01 #define PCM_STREAM_CAPTURE 0x02 -/* Codec Output Path BIT */ -#define PLAYBACK_MODE 0x01 -#define VOICECALL_MODE (0x01 << 1) -#define RECORDING_MODE (0x01 << 2) -#define FMRADIO_MODE (0x01 << 3) +/* +Codec Output Path BIT +[0:11] : For output device +[12:15] : For mode +[16] : For gain code +*/ +#define PLAYBACK_MODE (0x01 << 12) +#define VOICECALL_MODE (0x01 << 13) +#define RECORDING_MODE (0x01 << 14) +#define FMRADIO_MODE (0x01 << 15) #define GAIN_DIVISION_BIT (0x01 << 16) #define COMMON_SET_BIT (0x01 << 0) @@ -76,7 +81,7 @@ extern struct snd_soc_dai wm8994_dai; #define PLAYBACK_GAIN_NUM 39 #define VOICECALL_GAIN_NUM 32 #define RECORDING_GAIN_NUM 16 -#define GAIN_CODE_NUM 9 +#define GAIN_CODE_NUM 11 /* * Definitions of enum type */ |