| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2009, Code Aurora Forum. All rights reserved. | 
 | 2 |  * | 
 | 3 |  * This program is free software; you can redistribute it and/or modify | 
 | 4 |  * it under the terms of the GNU General Public License version 2 and | 
 | 5 |  * only version 2 as published by the Free Software Foundation. | 
 | 6 |  * | 
 | 7 |  * This program is distributed in the hope that it will be useful, | 
 | 8 |  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
 | 9 |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
 | 10 |  * GNU General Public License for more details. | 
 | 11 |  * | 
 | 12 |  */ | 
 | 13 |  | 
 | 14 | #ifndef __MSM_AUDIO_QCP_H | 
 | 15 | #define __MSM_AUDIO_QCP_H | 
 | 16 |  | 
 | 17 | #include <linux/msm_audio.h> | 
 | 18 |  | 
 | 19 | #define AUDIO_SET_QCELP_ENC_CONFIG  _IOW(AUDIO_IOCTL_MAGIC, \ | 
 | 20 | 	0, struct msm_audio_qcelp_enc_config) | 
 | 21 |  | 
 | 22 | #define AUDIO_GET_QCELP_ENC_CONFIG  _IOR(AUDIO_IOCTL_MAGIC, \ | 
 | 23 | 	1, struct msm_audio_qcelp_enc_config) | 
 | 24 |  | 
 | 25 | #define AUDIO_SET_EVRC_ENC_CONFIG  _IOW(AUDIO_IOCTL_MAGIC, \ | 
 | 26 | 	2, struct msm_audio_evrc_enc_config) | 
 | 27 |  | 
 | 28 | #define AUDIO_GET_EVRC_ENC_CONFIG  _IOR(AUDIO_IOCTL_MAGIC, \ | 
 | 29 | 	3, struct msm_audio_evrc_enc_config) | 
 | 30 |  | 
 | 31 | #define CDMA_RATE_BLANK		0x00 | 
 | 32 | #define CDMA_RATE_EIGHTH	0x01 | 
 | 33 | #define CDMA_RATE_QUARTER	0x02 | 
 | 34 | #define CDMA_RATE_HALF		0x03 | 
 | 35 | #define CDMA_RATE_FULL		0x04 | 
 | 36 | #define CDMA_RATE_ERASURE	0x05 | 
 | 37 |  | 
 | 38 | struct msm_audio_qcelp_enc_config { | 
 | 39 | 	uint32_t cdma_rate; | 
 | 40 | 	uint32_t min_bit_rate; | 
 | 41 | 	uint32_t max_bit_rate; | 
 | 42 | }; | 
 | 43 |  | 
 | 44 | struct msm_audio_evrc_enc_config { | 
 | 45 | 	uint32_t cdma_rate; | 
 | 46 | 	uint32_t min_bit_rate; | 
 | 47 | 	uint32_t max_bit_rate; | 
 | 48 | }; | 
 | 49 |  | 
 | 50 | #endif /* __MSM_AUDIO_QCP_H */ |