diff options
author | UK KIM <w0806.kim@samsung.com> | 2010-10-21 16:12:47 -0700 |
---|---|---|
committer | Arve Hjønnevåg <arve@android.com> | 2011-11-17 17:51:39 -0800 |
commit | e0d2daab7aa7fad26e8d38673fadd73d8b662882 (patch) | |
tree | 4da4553b85a623a20e837e35fbb86af8702015a6 /sound/soc/codecs/wm8994_samsung.h | |
parent | d583fb47af4da3c57e180bcf15c45515f4c00d1e (diff) | |
download | kernel_samsung_crespo-e0d2daab7aa7fad26e8d38673fadd73d8b662882.zip kernel_samsung_crespo-e0d2daab7aa7fad26e8d38673fadd73d8b662882.tar.gz kernel_samsung_crespo-e0d2daab7aa7fad26e8d38673fadd73d8b662882.tar.bz2 |
S5PC11X: SOUND: add headphone device for output and input stream
must distinguish headset and headphone device for built-in mic
output device is seperated but use same path.
Change-Id: I45cc27c74d0eb3505e1b5adb1ba52690261ae0f3
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 | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8994_samsung.h b/sound/soc/codecs/wm8994_samsung.h index 5a0f1cb..edf8f75 100755 --- a/sound/soc/codecs/wm8994_samsung.h +++ b/sound/soc/codecs/wm8994_samsung.h @@ -63,7 +63,8 @@ extern struct snd_soc_dai wm8994_dai; #define VOICECALL_RCV (0x01 << 1) #define VOICECALL_SPK (0x01 << 2) #define VOICECALL_HP (0x01 << 3) -#define VOICECALL_BT (0x01 << 4) +#define VOICECALL_HP_NO_MIC (0x01 << 4) +#define VOICECALL_BT (0x01 << 5) #define RECORDING_MAIN (0x01 << 1) #define RECORDING_HP (0x01 << 2) @@ -73,15 +74,15 @@ extern struct snd_soc_dai wm8994_dai; #define RECORDING_REC_BT (0x01 << 6) #define PLAYBACK_GAIN_NUM 39 -#define VOICECALL_GAIN_NUM 26 +#define VOICECALL_GAIN_NUM 32 #define RECORDING_GAIN_NUM 16 -#define GAIN_CODE_NUM 6 +#define GAIN_CODE_NUM 9 /* * Definitions of enum type */ enum audio_path { - OFF, RCV, SPK, HP, BT, SPK_HP, - RING_SPK, RING_HP, RING_SPK_HP + OFF, RCV, SPK, HP, HP_NO_MIC, BT, SPK_HP, + RING_SPK, RING_HP, RING_NO_MIC, RING_SPK_HP }; enum mic_path {MAIN, SUB, BT_REC, MIC_OFF}; enum power_state {CODEC_OFF, CODEC_ON }; @@ -167,6 +168,7 @@ void wm8994_set_playback_speaker_headset(struct snd_soc_codec *codec); void wm8994_set_voicecall_common_setting(struct snd_soc_codec *codec); void wm8994_set_voicecall_receiver(struct snd_soc_codec *codec); void wm8994_set_voicecall_headset(struct snd_soc_codec *codec); +void wm8994_set_voicecall_headphone(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); |