Home | History | Annotate | Download | only in linux
      1 #ifndef _MSM_AUDIO_QCP_H
      2 #define _MSM_AUDIO_QCP_H
      3 
      4 #include <linux/msm_audio.h>
      5 
      6 #define AUDIO_SET_QCELP_ENC_CONFIG  _IOW(AUDIO_IOCTL_MAGIC, \
      7 	0, struct msm_audio_qcelp_enc_config)
      8 
      9 #define AUDIO_GET_QCELP_ENC_CONFIG  _IOR(AUDIO_IOCTL_MAGIC, \
     10 	1, struct msm_audio_qcelp_enc_config)
     11 
     12 #define AUDIO_SET_EVRC_ENC_CONFIG  _IOW(AUDIO_IOCTL_MAGIC, \
     13 	2, struct msm_audio_evrc_enc_config)
     14 
     15 #define AUDIO_GET_EVRC_ENC_CONFIG  _IOR(AUDIO_IOCTL_MAGIC, \
     16 	3, struct msm_audio_evrc_enc_config)
     17 
     18 #define CDMA_RATE_BLANK		0x00
     19 #define CDMA_RATE_EIGHTH	0x01
     20 #define CDMA_RATE_QUARTER	0x02
     21 #define CDMA_RATE_HALF		0x03
     22 #define CDMA_RATE_FULL		0x04
     23 #define CDMA_RATE_ERASURE	0x05
     24 
     25 struct msm_audio_qcelp_enc_config {
     26 	uint32_t cdma_rate;
     27 	uint32_t min_bit_rate;
     28 	uint32_t max_bit_rate;
     29 };
     30 
     31 struct msm_audio_evrc_enc_config {
     32 	uint32_t cdma_rate;
     33 	uint32_t min_bit_rate;
     34 	uint32_t max_bit_rate;
     35 };
     36 
     37 #endif /* _MSM_AUDIO_QCP_H */
     38