1 /****************************************************************************
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_AC3_H
20 #define _MSM_AUDIO_AC3_H
21 #include <linux/msm_audio.h>
22 #define AUDIO_SET_AC3_CONFIG _IOW(AUDIO_IOCTL_MAGIC, (AUDIO_MAX_COMMON_IOCTL_NUM + 0), unsigned int)
23 #define AUDIO_GET_AC3_CONFIG _IOR(AUDIO_IOCTL_MAGIC, (AUDIO_MAX_COMMON_IOCTL_NUM + 1), unsigned int)
24 #define AUDAC3_DEF_WORDSIZE 0
25 #define AUDAC3_DEF_USER_DOWNMIX_FLAG 0x0
26 #define AUDAC3_DEF_USER_KARAOKE_FLAG 0x0
27 #define AUDAC3_DEF_ERROR_CONCEALMENT 0
28 #define AUDAC3_DEF_MAX_REPEAT_COUNT 0
29 struct msm_audio_ac3_config {
30   unsigned short numChans;
31   unsigned short wordSize;
32   unsigned short kCapableMode;
33   unsigned short compMode;
34   unsigned short outLfeOn;
35   unsigned short outputMode;
36   unsigned short stereoMode;
37   unsigned short dualMonoMode;
38   unsigned short fsCod;
39   unsigned short pcmScaleFac;
40   unsigned short dynRngScaleHi;
41   unsigned short dynRngScaleLow;
42   unsigned short user_downmix_flag;
43   unsigned short user_karaoke_flag;
44   unsigned short dm_address_high;
45   unsigned short dm_address_low;
46   unsigned short ko_address_high;
47   unsigned short ko_address_low;
48   unsigned short error_concealment;
49   unsigned short max_rep_count;
50   unsigned short channel_routing_mode[6];
51 };
52 #endif
53 
54