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_AAC_H 8 #define _MSM_AUDIO_AAC_H 9 #include <linux/msm_audio.h> 10 #define AUDIO_SET_AAC_CONFIG _IOW(AUDIO_IOCTL_MAGIC, (AUDIO_MAX_COMMON_IOCTL_NUM + 0), struct msm_audio_aac_config) 11 #define AUDIO_GET_AAC_CONFIG _IOR(AUDIO_IOCTL_MAGIC, (AUDIO_MAX_COMMON_IOCTL_NUM + 1), struct msm_audio_aac_config) 12 #define AUDIO_SET_AAC_ENC_CONFIG _IOW(AUDIO_IOCTL_MAGIC, (AUDIO_MAX_COMMON_IOCTL_NUM + 3), struct msm_audio_aac_enc_config) 13 #define AUDIO_GET_AAC_ENC_CONFIG _IOR(AUDIO_IOCTL_MAGIC, (AUDIO_MAX_COMMON_IOCTL_NUM + 4), struct msm_audio_aac_enc_config) 14 #define AUDIO_SET_AAC_MIX_CONFIG _IOR(AUDIO_IOCTL_MAGIC, (AUDIO_MAX_COMMON_IOCTL_NUM + 5), uint32_t) 15 #define AUDIO_AAC_FORMAT_ADTS - 1 16 #define AUDIO_AAC_FORMAT_RAW 0x0000 17 #define AUDIO_AAC_FORMAT_PSUEDO_RAW 0x0001 18 #define AUDIO_AAC_FORMAT_LOAS 0x0002 19 #define AUDIO_AAC_FORMAT_ADIF 0x0003 20 #define AUDIO_AAC_OBJECT_LC 0x0002 21 #define AUDIO_AAC_OBJECT_LTP 0x0004 22 #define AUDIO_AAC_OBJECT_ERLC 0x0011 23 #define AUDIO_AAC_OBJECT_BSAC 0x0016 24 #define AUDIO_AAC_SEC_DATA_RES_ON 0x0001 25 #define AUDIO_AAC_SEC_DATA_RES_OFF 0x0000 26 #define AUDIO_AAC_SCA_DATA_RES_ON 0x0001 27 #define AUDIO_AAC_SCA_DATA_RES_OFF 0x0000 28 #define AUDIO_AAC_SPEC_DATA_RES_ON 0x0001 29 #define AUDIO_AAC_SPEC_DATA_RES_OFF 0x0000 30 #define AUDIO_AAC_SBR_ON_FLAG_ON 0x0001 31 #define AUDIO_AAC_SBR_ON_FLAG_OFF 0x0000 32 #define AUDIO_AAC_SBR_PS_ON_FLAG_ON 0x0001 33 #define AUDIO_AAC_SBR_PS_ON_FLAG_OFF 0x0000 34 #define AUDIO_AAC_DUAL_MONO_PL_PR 0 35 #define AUDIO_AAC_DUAL_MONO_SL_SR 1 36 #define AUDIO_AAC_DUAL_MONO_SL_PR 2 37 #define AUDIO_AAC_DUAL_MONO_PL_SR 3 38 struct msm_audio_aac_config { 39 signed short format; 40 unsigned short audio_object; 41 unsigned short ep_config; 42 unsigned short aac_section_data_resilience_flag; 43 unsigned short aac_scalefactor_data_resilience_flag; 44 unsigned short aac_spectral_data_resilience_flag; 45 unsigned short sbr_on_flag; 46 unsigned short sbr_ps_on_flag; 47 unsigned short dual_mono_mode; 48 unsigned short channel_configuration; 49 unsigned short sample_rate; 50 }; 51 struct msm_audio_aac_enc_config { 52 uint32_t channels; 53 uint32_t sample_rate; 54 uint32_t bit_rate; 55 uint32_t stream_format; 56 }; 57 #endif 58