From e7b1a31aa3072e14adc5fe6df6510d3e594057a6 Mon Sep 17 00:00:00 2001 From: Ashraya Arya Date: Wed, 22 Jul 2009 14:03:47 -0700 Subject: bionic: Add msm_voicerec_mode struct to msm_audio.h and ioctl to set it. --- libc/kernel/common/linux/msm_audio.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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; -- cgit v1.1