diff options
author | Minsong Kim <ms17.kim@samsung.com> | 2010-11-08 17:29:21 -0800 |
---|---|---|
committer | Arve Hjønnevåg <arve@android.com> | 2011-11-17 17:52:14 -0800 |
commit | 5dd31dbd391b8a8bbfdb7c323fd302a4326864f6 (patch) | |
tree | 0b4958c2e5f2939d0c45c66f658e8ea91818f1a2 /sound/soc/codecs/wm8994_samsung.h | |
parent | d843c9f8f88ae1dfed01818cde96c5bbce47af8c (diff) | |
download | kernel_samsung_crespo-5dd31dbd391b8a8bbfdb7c323fd302a4326864f6.zip kernel_samsung_crespo-5dd31dbd391b8a8bbfdb7c323fd302a4326864f6.tar.gz kernel_samsung_crespo-5dd31dbd391b8a8bbfdb7c323fd302a4326864f6.tar.bz2 |
S5PC11X: SOUND: Support a different microphone gain for the camcorder
We have to support a different microphone gain for the camcorder.
Because codec gain is set focused on SIP. When we use the phone as
the camcorder, MIC gain should be higher than SIP. This is requested
by Samsung QA.
Change-Id: I8600ed70350f2fe2d715f81e1c22d2f37d55a303
Signed-off-by: Minsong Kim <ms17.kim@samsung.com>
Diffstat (limited to 'sound/soc/codecs/wm8994_samsung.h')
-rwxr-xr-x | sound/soc/codecs/wm8994_samsung.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm8994_samsung.h b/sound/soc/codecs/wm8994_samsung.h index b5b88f7..c82753c 100755 --- a/sound/soc/codecs/wm8994_samsung.h +++ b/sound/soc/codecs/wm8994_samsung.h @@ -78,10 +78,13 @@ Codec Output Path BIT #define RECORDING_REC_MAIN (0x01 << 4) #define RECORDING_REC_HP (0x01 << 5) #define RECORDING_REC_BT (0x01 << 6) +#define RECORDING_CAM_MAIN (0x01 << 7) +#define RECORDING_CAM_HP (0x01 << 8) +#define RECORDING_CAM_BT (0x01 << 9) #define PLAYBACK_GAIN_NUM 43 #define VOICECALL_GAIN_NUM 32 -#define RECORDING_GAIN_NUM 16 +#define RECORDING_GAIN_NUM 24 #define GAIN_CODE_NUM 13 /* * Definitions of enum type @@ -93,7 +96,7 @@ enum audio_path { enum mic_path {MAIN, SUB, BT_REC, MIC_OFF}; enum power_state {CODEC_OFF, CODEC_ON }; enum ringtone_state {RING_OFF, RING_ON}; -enum recognition {REC_OFF, REC_ON}; +enum input_source_state {DEFAULT, RECOGNITION, CAMCORDER}; typedef void (*select_route)(struct snd_soc_codec *); typedef void (*select_mic_route)(struct snd_soc_codec *); @@ -125,7 +128,7 @@ struct wm8994_priv { enum audio_path cur_path; enum mic_path rec_path; enum power_state power_state; - enum recognition recognition_active; + enum input_source_state input_source; enum ringtone_state ringtone_active; select_route *universal_playback_path; select_route *universal_voicecall_path; |