blob: 2aaa1c469915d5abc91287748a3e29bcc1ada53e [file] [log] [blame]
Ajay Dudani3fc3b7f2012-07-08 01:19:11 -07001/****************************************************************************
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_AAC_H
20#define __MSM_AUDIO_AAC_H
21#include <linux/msm_audio.h>
22#define AUDIO_SET_AAC_CONFIG _IOW(AUDIO_IOCTL_MAGIC, (AUDIO_MAX_COMMON_IOCTL_NUM+0), unsigned)
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define AUDIO_GET_AAC_CONFIG _IOR(AUDIO_IOCTL_MAGIC, (AUDIO_MAX_COMMON_IOCTL_NUM+1), unsigned)
25#define AUDIO_SET_AAC_ENC_CONFIG _IOW(AUDIO_IOCTL_MAGIC, (AUDIO_MAX_COMMON_IOCTL_NUM+3), struct msm_audio_aac_enc_config)
26#define AUDIO_GET_AAC_ENC_CONFIG _IOR(AUDIO_IOCTL_MAGIC, (AUDIO_MAX_COMMON_IOCTL_NUM+4), struct msm_audio_aac_enc_config)
27#define AUDIO_AAC_FORMAT_ADTS -1
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define AUDIO_AAC_FORMAT_RAW 0x0000
30#define AUDIO_AAC_FORMAT_PSUEDO_RAW 0x0001
31#define AUDIO_AAC_FORMAT_LOAS 0x0002
32#define AUDIO_AAC_FORMAT_ADIF 0x0003
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define AUDIO_AAC_OBJECT_LC 0x0002
35#define AUDIO_AAC_OBJECT_LTP 0x0004
36#define AUDIO_AAC_OBJECT_ERLC 0x0011
37#define AUDIO_AAC_OBJECT_BSAC 0x0016
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define AUDIO_AAC_SEC_DATA_RES_ON 0x0001
40#define AUDIO_AAC_SEC_DATA_RES_OFF 0x0000
41#define AUDIO_AAC_SCA_DATA_RES_ON 0x0001
42#define AUDIO_AAC_SCA_DATA_RES_OFF 0x0000
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define AUDIO_AAC_SPEC_DATA_RES_ON 0x0001
45#define AUDIO_AAC_SPEC_DATA_RES_OFF 0x0000
46#define AUDIO_AAC_SBR_ON_FLAG_ON 0x0001
47#define AUDIO_AAC_SBR_ON_FLAG_OFF 0x0000
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define AUDIO_AAC_SBR_PS_ON_FLAG_ON 0x0001
50#define AUDIO_AAC_SBR_PS_ON_FLAG_OFF 0x0000
51#define AUDIO_AAC_DUAL_MONO_PL_PR 0
52#define AUDIO_AAC_DUAL_MONO_SL_SR 1
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define AUDIO_AAC_DUAL_MONO_SL_PR 2
55#define AUDIO_AAC_DUAL_MONO_PL_SR 3
56struct msm_audio_aac_config {
57 signed short format;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 unsigned short audio_object;
60 unsigned short ep_config;
61 unsigned short aac_section_data_resilience_flag;
62 unsigned short aac_scalefactor_data_resilience_flag;
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 unsigned short aac_spectral_data_resilience_flag;
65 unsigned short sbr_on_flag;
66 unsigned short sbr_ps_on_flag;
67 unsigned short dual_mono_mode;
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 unsigned short channel_configuration;
70};
71struct msm_audio_aac_enc_config {
72 uint32_t channels;
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 uint32_t sample_rate;
75 uint32_t bit_rate;
76 uint32_t stream_format;
77};
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#endif
80