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