msm_audio_sbc.h 957 B

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