diff options
author | Ben Romberger <bromberg@codeaurora.org> | 2010-11-16 13:39:42 -0800 |
---|---|---|
committer | Ben Romberger <bromberg@codeaurora.org> | 2010-11-16 15:44:30 -0800 |
commit | ea788c8409aec6a939ddb415cf3dcc095ba5be67 (patch) | |
tree | e6a7e68c4805271aba2ab0addcc7f11a8c3a1fe4 | |
parent | a540a151bdb6ef8d1b1308e94e118b469633c1d0 (diff) | |
download | bionic-ea788c8409aec6a939ddb415cf3dcc095ba5be67.zip bionic-ea788c8409aec6a939ddb415cf3dcc095ba5be67.tar.gz bionic-ea788c8409aec6a939ddb415cf3dcc095ba5be67.tar.bz2 |
bionic: Adds interface for sidetone gain
Adds an interface to send sidetone gain calibration to the audio
calibration kernel driver.
Change-Id: I91e52ee378c6720249be07b86cb798372efbb92c
-rw-r--r-- | libc/kernel/common/linux/msm_audio_acdb.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/kernel/common/linux/msm_audio_acdb.h b/libc/kernel/common/linux/msm_audio_acdb.h index e9dc2c3..91786d2 100644 --- a/libc/kernel/common/linux/msm_audio_acdb.h +++ b/libc/kernel/common/linux/msm_audio_acdb.h @@ -23,10 +23,16 @@ #define AUDIO_SET_AUDPROC_TX_CAL _IOW(AUDIO_IOCTL_MAGIC, (AUDIO_MAX_COMMON_IOCTL_NUM+6), unsigned) #define AUDIO_SET_AUDPROC_TX_STREAM_CAL _IOW(AUDIO_IOCTL_MAGIC, (AUDIO_MAX_COMMON_IOCTL_NUM+7), unsigned) #define AUDIO_SET_AUDPROC_TX_VOL_CAL _IOW(AUDIO_IOCTL_MAGIC, (AUDIO_MAX_COMMON_IOCTL_NUM+8), unsigned) +#define AUDIO_SET_SIDETONE_CAL _IOW(AUDIO_IOCTL_MAGIC, (AUDIO_MAX_COMMON_IOCTL_NUM+9), unsigned) struct cal_block { uint32_t cal_size; uint32_t cal_offset; }; +struct sidetone_cal { + uint16_t enable; + uint16_t gain; +}; + #endif |