1 #ifndef _MSM_AUDIO_AMRNB_H 2 #define _MSM_AUDIO_AMRNB_H 3 4 #include <linux/msm_audio.h> 5 6 #define AUDIO_GET_AMRNB_ENC_CONFIG _IOW(AUDIO_IOCTL_MAGIC, \ 7 (AUDIO_MAX_COMMON_IOCTL_NUM+0), unsigned int) 8 #define AUDIO_SET_AMRNB_ENC_CONFIG _IOR(AUDIO_IOCTL_MAGIC, \ 9 (AUDIO_MAX_COMMON_IOCTL_NUM+1), unsigned int) 10 #define AUDIO_GET_AMRNB_ENC_CONFIG_V2 _IOW(AUDIO_IOCTL_MAGIC, \ 11 (AUDIO_MAX_COMMON_IOCTL_NUM+2), \ 12 struct msm_audio_amrnb_enc_config_v2) 13 #define AUDIO_SET_AMRNB_ENC_CONFIG_V2 _IOR(AUDIO_IOCTL_MAGIC, \ 14 (AUDIO_MAX_COMMON_IOCTL_NUM+3), \ 15 struct msm_audio_amrnb_enc_config_v2) 16 17 struct msm_audio_amrnb_enc_config { 18 unsigned short voicememoencweight1; 19 unsigned short voicememoencweight2; 20 unsigned short voicememoencweight3; 21 unsigned short voicememoencweight4; 22 unsigned short dtx_mode_enable; /* 0xFFFF - enable, 0- disable */ 23 unsigned short test_mode_enable; /* 0xFFFF - enable, 0- disable */ 24 unsigned short enc_mode; /* 0-MR475,1-MR515,2-MR59,3-MR67,4-MR74 25 * 5-MR795, 6- MR102, 7- MR122(default) 26 */ 27 }; 28 29 struct msm_audio_amrnb_enc_config_v2 { 30 uint32_t band_mode; 31 uint32_t dtx_enable; 32 uint32_t frame_format; 33 }; 34 #endif /* _MSM_AUDIO_AMRNB_H */ 35