• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _MSM_AUDIO_SBC_H
8 #define _MSM_AUDIO_SBC_H
9 #include <linux/msm_audio.h>
10 #define AUDIO_SET_SBC_ENC_CONFIG _IOW(AUDIO_IOCTL_MAGIC, (AUDIO_MAX_COMMON_IOCTL_NUM + 0), struct msm_audio_sbc_enc_config)
11 #define AUDIO_GET_SBC_ENC_CONFIG _IOR(AUDIO_IOCTL_MAGIC, (AUDIO_MAX_COMMON_IOCTL_NUM + 1), struct msm_audio_sbc_enc_config)
12 #define AUDIO_SBC_BA_LOUDNESS 0x0
13 #define AUDIO_SBC_BA_SNR 0x1
14 #define AUDIO_SBC_MODE_MONO 0x0
15 #define AUDIO_SBC_MODE_DUAL 0x1
16 #define AUDIO_SBC_MODE_STEREO 0x2
17 #define AUDIO_SBC_MODE_JSTEREO 0x3
18 #define AUDIO_SBC_BANDS_8 0x1
19 #define AUDIO_SBC_BLOCKS_4 0x0
20 #define AUDIO_SBC_BLOCKS_8 0x1
21 #define AUDIO_SBC_BLOCKS_12 0x2
22 #define AUDIO_SBC_BLOCKS_16 0x3
23 struct msm_audio_sbc_enc_config {
24   uint32_t channels;
25   uint32_t sample_rate;
26   uint32_t bit_allocation;
27   uint32_t number_of_subbands;
28   uint32_t number_of_blocks;
29   uint32_t bit_rate;
30   uint32_t mode;
31 };
32 #endif
33