summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAshraya Arya <ashrayaa@quicinc.com>2009-07-22 14:03:47 -0700
committerYen-Pin Hsiao <yphsiao@quicinc.com>2009-08-04 17:43:05 -0700
commite7b1a31aa3072e14adc5fe6df6510d3e594057a6 (patch)
tree7f7bd0190efc0d003d13c41114909deeb282dabd
parent172f4ca290926afd242eef207a7f8205c897afe0 (diff)
downloadbionic-e7b1a31aa3072e14adc5fe6df6510d3e594057a6.zip
bionic-e7b1a31aa3072e14adc5fe6df6510d3e594057a6.tar.gz
bionic-e7b1a31aa3072e14adc5fe6df6510d3e594057a6.tar.bz2
bionic: Add msm_voicerec_mode struct to msm_audio.h and ioctl to set it.
-rw-r--r--libc/kernel/common/linux/msm_audio.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libc/kernel/common/linux/msm_audio.h b/libc/kernel/common/linux/msm_audio.h
index bb7a60f..e431612 100644
--- a/libc/kernel/common/linux/msm_audio.h
+++ b/libc/kernel/common/linux/msm_audio.h
@@ -37,6 +37,8 @@
#define AUDIO_DEREGISTER_PMEM _IOW(AUDIO_IOCTL_MAGIC, 16, unsigned)
#define AUDIO_ASYNC_WRITE _IOW(AUDIO_IOCTL_MAGIC, 17, unsigned)
#define AUDIO_ASYNC_READ _IOW(AUDIO_IOCTL_MAGIC, 18, unsigned)
+#define AUDIO_SET_INCALL _IOW(AUDIO_IOCTL_MAGIC, 19, struct msm_voicerec_mode)
+
#define AUDIO_GET_PCM_CONFIG _IOR(AUDIO_IOCTL_MAGIC, 30, unsigned)
#define AUDIO_SET_PCM_CONFIG _IOW(AUDIO_IOCTL_MAGIC, 31, unsigned)
#define AUDIO_SWITCH_DEVICE _IOW(AUDIO_IOCTL_MAGIC, 32, unsigned)
@@ -92,6 +94,10 @@
#define NS_ENABLE 0x0002
#define TX_IIR_ENABLE 0x0004
+#define VOC_REC_UPLINK 0x00
+#define VOC_REC_DOWNLINK 0x01
+#define VOC_REC_BOTH 0x02
+
struct msm_audio_config {
uint32_t buffer_size;
uint32_t buffer_count;
@@ -135,6 +141,12 @@ struct msm_vol_info {
uint32_t path;
};
+struct msm_voicerec_mode {
+
+ uint32_t rec_mode;
+
+};
+
struct msm_snd_device_config {
uint32_t device;
uint32_t ear_mute;