summaryrefslogtreecommitdiffstats
path: root/libc/kernel/common/linux/msm_audio_mvs.h
blob: 01140e67af9a1a62f00eaa964a5910438c4ca713 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
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