msm_audio_sbc.h 947 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef _UAPI_MSM_AUDIO_SBC_H
  2. #define _UAPI_MSM_AUDIO_SBC_H
  3. #include <linux/msm_audio.h>
  4. #define AUDIO_SET_SBC_ENC_CONFIG _IOW(AUDIO_IOCTL_MAGIC, \
  5. (AUDIO_MAX_COMMON_IOCTL_NUM+0), struct msm_audio_sbc_enc_config)
  6. #define AUDIO_GET_SBC_ENC_CONFIG _IOR(AUDIO_IOCTL_MAGIC, \
  7. (AUDIO_MAX_COMMON_IOCTL_NUM+1), struct msm_audio_sbc_enc_config)
  8. #define AUDIO_SBC_BA_LOUDNESS 0x0
  9. #define AUDIO_SBC_BA_SNR 0x1
  10. #define AUDIO_SBC_MODE_MONO 0x0
  11. #define AUDIO_SBC_MODE_DUAL 0x1
  12. #define AUDIO_SBC_MODE_STEREO 0x2
  13. #define AUDIO_SBC_MODE_JSTEREO 0x3
  14. #define AUDIO_SBC_BANDS_8 0x1
  15. #define AUDIO_SBC_BLOCKS_4 0x0
  16. #define AUDIO_SBC_BLOCKS_8 0x1
  17. #define AUDIO_SBC_BLOCKS_12 0x2
  18. #define AUDIO_SBC_BLOCKS_16 0x3
  19. struct msm_audio_sbc_enc_config {
  20. uint32_t channels;
  21. uint32_t sample_rate;
  22. uint32_t bit_allocation;
  23. uint32_t number_of_subbands;
  24. uint32_t number_of_blocks;
  25. uint32_t bit_rate;
  26. uint32_t mode;
  27. };
  28. #endif /* _UAPI_MSM_AUDIO_SBC_H */