summaryrefslogtreecommitdiffstats
path: root/libc/kernel/common/linux/msm_audio_mvs.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/kernel/common/linux/msm_audio_mvs.h')
-rw-r--r--libc/kernel/common/linux/msm_audio_mvs.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/libc/kernel/common/linux/msm_audio_mvs.h b/libc/kernel/common/linux/msm_audio_mvs.h
new file mode 100644
index 0000000..01140e6
--- /dev/null
+++ b/libc/kernel/common/linux/msm_audio_mvs.h
@@ -0,0 +1,72 @@
+/****************************************************************************
+ ****************************************************************************
+ ***
+ *** This header was automatically generated from a Linux kernel header
+ *** of the same name, to make information necessary for userspace to
+ *** call into the kernel available to libc. It contains only constants,
+ *** structures, and macros generated from the original header, and thus,
+ *** contains no copyrightable information.
+ ***
+ ****************************************************************************
+ ****************************************************************************/
+#ifndef __MSM_AUDIO_MVS_H
+#define __MSM_AUDIO_MVS_H
+
+#include <linux/msm_audio.h>
+
+#define AUDIO_GET_MVS_CONFIG _IOW(AUDIO_IOCTL_MAGIC, (AUDIO_MAX_COMMON_IOCTL_NUM + 0), unsigned)
+#define AUDIO_SET_MVS_CONFIG _IOR(AUDIO_IOCTL_MAGIC, (AUDIO_MAX_COMMON_IOCTL_NUM + 1), unsigned)
+
+#define MVS_MODE_AMR 5
+#define MVS_MODE_LINEAR_PCM 9
+#define MVS_MODE_PCM 12
+#define MVS_MODE_AMR_WB 13
+
+enum msm_audio_amr_mode {
+ MVS_AMR_MODE_0475,
+ MVS_AMR_MODE_0515,
+ MVS_AMR_MODE_0590,
+ MVS_AMR_MODE_0670,
+ MVS_AMR_MODE_0740,
+ MVS_AMR_MODE_0795,
+ MVS_AMR_MODE_1020,
+ MVS_AMR_MODE_1220,
+ MVS_AMR_MODE_0660,
+ MVS_AMR_MODE_0885,
+ MVS_AMR_MODE_1265,
+ MVS_AMR_MODE_1425,
+ MVS_AMR_MODE_1585,
+ MVS_AMR_MODE_1825,
+ MVS_AMR_MODE_1985,
+ MVS_AMR_MODE_2305,
+ MVS_AMR_MODE_2385,
+ MVS_AMR_MODE_UNDEF
+};
+
+enum msm_audio_amr_frame_type {
+ MVS_AMR_SPEECH_GOOD,
+ MVS_AMR_SPEECH_DEGRADED,
+ MVS_AMR_ONSET,
+ MVS_AMR_SPEECH_BAD,
+ MVS_AMR_SID_FIRST,
+ MVS_AMR_SID_UPDATE,
+ MVS_AMR_SID_BAD,
+ MVS_AMR_NO_DATA,
+ MVS_AMR_SPEECH_LOST,
+};
+
+struct msm_audio_mvs_config {
+ uint32_t mvs_mode;
+ uint32_t rate_type;
+};
+
+#define MVS_MAX_VOC_PKT_SIZE 320
+
+struct msm_audio_mvs_frame {
+ uint32_t frame_type;
+ uint32_t len;
+ uint8_t voc_pkt[MVS_MAX_VOC_PKT_SIZE];
+
+};
+
+#endif