1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef _MSM_AUDIO_SBC_H
20 #define _MSM_AUDIO_SBC_H
21 #include <linux/msm_audio.h>
22 #define AUDIO_SET_SBC_ENC_CONFIG _IOW(AUDIO_IOCTL_MAGIC, (AUDIO_MAX_COMMON_IOCTL_NUM + 0), struct msm_audio_sbc_enc_config)
23 #define AUDIO_GET_SBC_ENC_CONFIG _IOR(AUDIO_IOCTL_MAGIC, (AUDIO_MAX_COMMON_IOCTL_NUM + 1), struct msm_audio_sbc_enc_config)
24 #define AUDIO_SBC_BA_LOUDNESS 0x0
25 #define AUDIO_SBC_BA_SNR 0x1
26 #define AUDIO_SBC_MODE_MONO 0x0
27 #define AUDIO_SBC_MODE_DUAL 0x1
28 #define AUDIO_SBC_MODE_STEREO 0x2
29 #define AUDIO_SBC_MODE_JSTEREO 0x3
30 #define AUDIO_SBC_BANDS_8 0x1
31 #define AUDIO_SBC_BLOCKS_4 0x0
32 #define AUDIO_SBC_BLOCKS_8 0x1
33 #define AUDIO_SBC_BLOCKS_12 0x2
34 #define AUDIO_SBC_BLOCKS_16 0x3
35 struct msm_audio_sbc_enc_config {
36   uint32_t channels;
37   uint32_t sample_rate;
38   uint32_t bit_allocation;
39   uint32_t number_of_subbands;
40   uint32_t number_of_blocks;
41   uint32_t bit_rate;
42   uint32_t mode;
43 };
44 #endif
45 
46