Change-Id: I25541a0a4b7abfe9aacb890cf500f0c0a4e4902e Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
38 lines
957 B
C
38 lines
957 B
C
#ifndef _UAPI_MSM_AUDIO_SBC_H
|
|
#define _UAPI_MSM_AUDIO_SBC_H
|
|
|
|
#include <audio/linux/msm_audio.h>
|
|
#include <linux/types.h>
|
|
|
|
#define AUDIO_SET_SBC_ENC_CONFIG _IOW(AUDIO_IOCTL_MAGIC, \
|
|
(AUDIO_MAX_COMMON_IOCTL_NUM+0), struct msm_audio_sbc_enc_config)
|
|
|
|
#define AUDIO_GET_SBC_ENC_CONFIG _IOR(AUDIO_IOCTL_MAGIC, \
|
|
(AUDIO_MAX_COMMON_IOCTL_NUM+1), struct msm_audio_sbc_enc_config)
|
|
|
|
#define AUDIO_SBC_BA_LOUDNESS 0x0
|
|
#define AUDIO_SBC_BA_SNR 0x1
|
|
|
|
#define AUDIO_SBC_MODE_MONO 0x0
|
|
#define AUDIO_SBC_MODE_DUAL 0x1
|
|
#define AUDIO_SBC_MODE_STEREO 0x2
|
|
#define AUDIO_SBC_MODE_JSTEREO 0x3
|
|
|
|
#define AUDIO_SBC_BANDS_8 0x1
|
|
|
|
#define AUDIO_SBC_BLOCKS_4 0x0
|
|
#define AUDIO_SBC_BLOCKS_8 0x1
|
|
#define AUDIO_SBC_BLOCKS_12 0x2
|
|
#define AUDIO_SBC_BLOCKS_16 0x3
|
|
|
|
struct msm_audio_sbc_enc_config {
|
|
__u32 channels;
|
|
__u32 sample_rate;
|
|
__u32 bit_allocation;
|
|
__u32 number_of_subbands;
|
|
__u32 number_of_blocks;
|
|
__u32 bit_rate;
|
|
__u32 mode;
|
|
};
|
|
#endif /* _UAPI_MSM_AUDIO_SBC_H */
|