blob: 977335ebfdd1c8ea974194c46941aae1b83b09fb [file] [log] [blame]
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07001/* arch/arm/mach-msm/include/mach/msm_audio_amrnb.h
2 *
3 * Copyright (c) 2009, Code Aurora Forum. All rights reserved.
4 *
5 * This software is licensed under the terms of the GNU General Public
6 * License version 2, as published by the Free Software Foundation, and
7 * may be copied, distributed, and modified under those terms.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 *
13 * See the GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, you can find it at http://www.fsf.org.
16 *
17 */
18
19#ifndef __MSM_AUDIO_AMRNB_H
20#define __MSM_AUDIO_AMRNB_H
21
22#include <linux/msm_audio.h>
23
24#define AUDIO_GET_AMRNB_ENC_CONFIG _IOW(AUDIO_IOCTL_MAGIC, \
25 (AUDIO_MAX_COMMON_IOCTL_NUM+0), unsigned)
26#define AUDIO_SET_AMRNB_ENC_CONFIG _IOR(AUDIO_IOCTL_MAGIC, \
27 (AUDIO_MAX_COMMON_IOCTL_NUM+1), unsigned)
28#define AUDIO_GET_AMRNB_ENC_CONFIG_V2 _IOW(AUDIO_IOCTL_MAGIC, \
29 (AUDIO_MAX_COMMON_IOCTL_NUM+2), \
30 struct msm_audio_amrnb_enc_config_v2)
31#define AUDIO_SET_AMRNB_ENC_CONFIG_V2 _IOR(AUDIO_IOCTL_MAGIC, \
32 (AUDIO_MAX_COMMON_IOCTL_NUM+3), \
33 struct msm_audio_amrnb_enc_config_v2)
34
35struct msm_audio_amrnb_enc_config {
36 unsigned short voicememoencweight1;
37 unsigned short voicememoencweight2;
38 unsigned short voicememoencweight3;
39 unsigned short voicememoencweight4;
40 unsigned short dtx_mode_enable; /* 0xFFFF - enable, 0- disable */
41 unsigned short test_mode_enable; /* 0xFFFF - enable, 0- disable */
42 unsigned short enc_mode; /* 0-MR475,1-MR515,2-MR59,3-MR67,4-MR74
43 5-MR795, 6- MR102, 7- MR122(default) */
44};
45
46struct msm_audio_amrnb_enc_config_v2 {
47 uint32_t band_mode;
48 uint32_t dtx_enable;
49 uint32_t frame_format;
50};
51#endif /* __MSM_AUDIO_AMRNB_H */