aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8994_samsung.h
diff options
context:
space:
mode:
authorUk Kim <w0806.kim@samsung.com>2011-02-01 12:53:58 +0900
committerArve Hjønnevåg <arve@android.com>2011-11-17 17:53:05 -0800
commitfb36486113238c3a9ce37392626ef925cce078e6 (patch)
treeb8b28a4e41f513a5bbf1d1cd211a0fad24118b8a /sound/soc/codecs/wm8994_samsung.h
parentfd782c6d904f38fc8dbff87373b37fe2fcef5294 (diff)
downloadkernel_samsung_crespo-fb36486113238c3a9ce37392626ef925cce078e6.zip
kernel_samsung_crespo-fb36486113238c3a9ce37392626ef925cce078e6.tar.gz
kernel_samsung_crespo-fb36486113238c3a9ce37392626ef925cce078e6.tar.bz2
ASOC : add tty device of each tty mode.
supports VCO, HCO, FULL mode of TTY during call. Change-Id: If56d0c3da20377c59adc8681769e443f35da045c 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.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8994_samsung.h b/sound/soc/codecs/wm8994_samsung.h
index f0b92e3..0950b86 100755
--- a/sound/soc/codecs/wm8994_samsung.h
+++ b/sound/soc/codecs/wm8994_samsung.h
@@ -81,6 +81,9 @@ Codec Output Path BIT
#define VOICECALL_HP (0x01 << 3)
#define VOICECALL_HP_NO_MIC (0x01 << 4)
#define VOICECALL_BT (0x01 << 5)
+#define VOICECALL_TTY_VCO (0x01 << 6)
+#define VOICECALL_TTY_HCO (0x01 << 7)
+#define VOICECALL_TTY_FULL (0x01 << 8)
#define RECORDING_MAIN (0x01 << 1)
#define RECORDING_HP (0x01 << 2)
@@ -96,7 +99,7 @@ Codec Output Path BIT
#define RECORDING_VC_BT (0x01 << 12)
#define PLAYBACK_GAIN_NUM 43
-#define VOICECALL_GAIN_NUM 32
+#define VOICECALL_GAIN_NUM 38
#define RECORDING_GAIN_NUM 32
#define GAIN_CODE_NUM 13
/*
@@ -106,6 +109,11 @@ enum audio_path {
OFF, RCV, SPK, HP, HP_NO_MIC, BT, SPK_HP,
RING_SPK, RING_HP, RING_NO_MIC, RING_SPK_HP
};
+enum call_path {
+ CALL_OFF, CALL_RCV, CALL_SPK, CALL_HP,
+ CALL_HP_NO_MIC, CALL_BT, CALL_TTY_VCO,
+ CALL_TTY_HCO, CALL_TTY_FULL
+};
enum mic_path {MAIN, SUB, BT_REC, MIC_OFF};
enum power_state {CODEC_OFF, CODEC_ON };
enum ringtone_state {RING_OFF, RING_ON};
@@ -193,6 +201,9 @@ 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);
+void wm8994_set_voicecall_tty_vco(struct snd_soc_codec *codec);
+void wm8994_set_voicecall_tty_hco(struct snd_soc_codec *codec);
+void wm8994_set_voicecall_tty_full(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