14bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/****************************************************************************
24bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj ****************************************************************************
34bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj ***
44bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj ***   This header was automatically generated from a Linux kernel header
54bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj ***   of the same name, to make information necessary for userspace to
64bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj ***   call into the kernel available to libc.  It contains only constants,
74bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj ***   structures, and macros generated from the original header, and thus,
84bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj ***   contains no copyrightable information.
94bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj ***
104bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj ***   To edit the content of this header, modify the corresponding
114bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj ***   source file (e.g. under external/kernel-headers/original/) then
124bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj ***   run bionic/libc/kernel/tools/update_all.py
134bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj ***
144bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj ***   Any manual change here will be lost the next time this script will
154bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj ***   be run. You've been warned!
164bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj ***
174bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj ****************************************************************************
184bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj ****************************************************************************/
194bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#ifndef _UAPI_MSM_AUDIO_AAC_H
204bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define _UAPI_MSM_AUDIO_AAC_H
214bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#include <linux/msm_audio.h>
224bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_SET_AAC_CONFIG _IOW(AUDIO_IOCTL_MAGIC,   (AUDIO_MAX_COMMON_IOCTL_NUM+0), unsigned)
234bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
244bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_GET_AAC_CONFIG _IOR(AUDIO_IOCTL_MAGIC,   (AUDIO_MAX_COMMON_IOCTL_NUM+1), unsigned)
254bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_SET_AAC_ENC_CONFIG _IOW(AUDIO_IOCTL_MAGIC,   (AUDIO_MAX_COMMON_IOCTL_NUM+3), struct msm_audio_aac_enc_config)
264bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_GET_AAC_ENC_CONFIG _IOR(AUDIO_IOCTL_MAGIC,   (AUDIO_MAX_COMMON_IOCTL_NUM+4), struct msm_audio_aac_enc_config)
274bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_SET_AAC_MIX_CONFIG _IOR(AUDIO_IOCTL_MAGIC,  (AUDIO_MAX_COMMON_IOCTL_NUM+5), unsigned)
284bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
294bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_AAC_FORMAT_ADTS -1
304bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_AAC_FORMAT_RAW 0x0000
314bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_AAC_FORMAT_PSUEDO_RAW 0x0001
324bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_AAC_FORMAT_LOAS 0x0002
334bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
344bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_AAC_FORMAT_ADIF 0x0003
354bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_AAC_OBJECT_LC 0x0002
364bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_AAC_OBJECT_LTP 0x0004
374bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_AAC_OBJECT_ERLC 0x0011
384bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
394bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_AAC_OBJECT_BSAC 0x0016
404bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_AAC_SEC_DATA_RES_ON 0x0001
414bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_AAC_SEC_DATA_RES_OFF 0x0000
424bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_AAC_SCA_DATA_RES_ON 0x0001
434bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
444bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_AAC_SCA_DATA_RES_OFF 0x0000
454bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_AAC_SPEC_DATA_RES_ON 0x0001
464bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_AAC_SPEC_DATA_RES_OFF 0x0000
474bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_AAC_SBR_ON_FLAG_ON 0x0001
484bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
494bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_AAC_SBR_ON_FLAG_OFF 0x0000
504bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_AAC_SBR_PS_ON_FLAG_ON 0x0001
514bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_AAC_SBR_PS_ON_FLAG_OFF 0x0000
524bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_AAC_DUAL_MONO_PL_PR 0
534bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
544bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_AAC_DUAL_MONO_SL_SR 1
554bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_AAC_DUAL_MONO_SL_PR 2
564bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_AAC_DUAL_MONO_PL_SR 3
574bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_audio_aac_config {
584bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
594bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj signed short format;
604bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj unsigned short audio_object;
614bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj unsigned short ep_config;
624bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj unsigned short aac_section_data_resilience_flag;
634bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
644bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj unsigned short aac_scalefactor_data_resilience_flag;
654bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj unsigned short aac_spectral_data_resilience_flag;
664bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj unsigned short sbr_on_flag;
674bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj unsigned short sbr_ps_on_flag;
684bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
694bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj unsigned short dual_mono_mode;
704bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj unsigned short channel_configuration;
714bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj unsigned short sample_rate;
724bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj};
734bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
744bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_audio_aac_enc_config {
754bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t channels;
764bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t sample_rate;
774bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t bit_rate;
784bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
794bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t stream_format;
804bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj};
814bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#endif
824bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj
83