msm_audio_sbc.h 937 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef __MSM_AUDIO_SBC_H
  2. #define __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 /* __MSM_AUDIO_SBC_H */