msm_audio_qcp.h 916 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef __MSM_AUDIO_QCP_H
  2. #define __MSM_AUDIO_QCP_H
  3. #include <linux/msm_audio.h>
  4. #define AUDIO_SET_QCELP_ENC_CONFIG _IOW(AUDIO_IOCTL_MAGIC, \
  5. 0, struct msm_audio_qcelp_enc_config)
  6. #define AUDIO_GET_QCELP_ENC_CONFIG _IOR(AUDIO_IOCTL_MAGIC, \
  7. 1, struct msm_audio_qcelp_enc_config)
  8. #define AUDIO_SET_EVRC_ENC_CONFIG _IOW(AUDIO_IOCTL_MAGIC, \
  9. 2, struct msm_audio_evrc_enc_config)
  10. #define AUDIO_GET_EVRC_ENC_CONFIG _IOR(AUDIO_IOCTL_MAGIC, \
  11. 3, struct msm_audio_evrc_enc_config)
  12. #define CDMA_RATE_BLANK 0x00
  13. #define CDMA_RATE_EIGHTH 0x01
  14. #define CDMA_RATE_QUARTER 0x02
  15. #define CDMA_RATE_HALF 0x03
  16. #define CDMA_RATE_FULL 0x04
  17. #define CDMA_RATE_ERASURE 0x05
  18. struct msm_audio_qcelp_enc_config {
  19. uint32_t cdma_rate;
  20. uint32_t min_bit_rate;
  21. uint32_t max_bit_rate;
  22. };
  23. struct msm_audio_evrc_enc_config {
  24. uint32_t cdma_rate;
  25. uint32_t min_bit_rate;
  26. uint32_t max_bit_rate;
  27. };
  28. #endif /* __MSM_AUDIO_QCP_H */