Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame^] | 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 __SND_COMPRESS_PARAMS_H |
| 20 | #define __SND_COMPRESS_PARAMS_H |
| 21 | #include <linux/types.h> |
| 22 | #define MAX_NUM_CODECS 32 |
| 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 24 | #define MAX_NUM_CODEC_DESCRIPTORS 32 |
| 25 | #define MAX_NUM_BITRATES 32 |
| 26 | #define SND_AUDIOCODEC_PCM ((__u32) 0x00000001) |
| 27 | #define SND_AUDIOCODEC_MP3 ((__u32) 0x00000002) |
| 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 29 | #define SND_AUDIOCODEC_AMR ((__u32) 0x00000003) |
| 30 | #define SND_AUDIOCODEC_AMRWB ((__u32) 0x00000004) |
| 31 | #define SND_AUDIOCODEC_AMRWBPLUS ((__u32) 0x00000005) |
| 32 | #define SND_AUDIOCODEC_AAC ((__u32) 0x00000006) |
| 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 34 | #define SND_AUDIOCODEC_WMA ((__u32) 0x00000007) |
| 35 | #define SND_AUDIOCODEC_REAL ((__u32) 0x00000008) |
| 36 | #define SND_AUDIOCODEC_VORBIS ((__u32) 0x00000009) |
| 37 | #define SND_AUDIOCODEC_FLAC ((__u32) 0x0000000A) |
| 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 39 | #define SND_AUDIOCODEC_IEC61937 ((__u32) 0x0000000B) |
| 40 | #define SND_AUDIOCODEC_G723_1 ((__u32) 0x0000000C) |
| 41 | #define SND_AUDIOCODEC_G729 ((__u32) 0x0000000D) |
| 42 | #define SND_AUDIOCODEC_MAX SND_AUDIOCODEC_G729 |
| 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 44 | #define SND_AUDIOPROFILE_PCM ((__u32) 0x00000001) |
| 45 | #define SND_AUDIOCHANMODE_MP3_MONO ((__u32) 0x00000001) |
| 46 | #define SND_AUDIOCHANMODE_MP3_STEREO ((__u32) 0x00000002) |
| 47 | #define SND_AUDIOCHANMODE_MP3_JOINTSTEREO ((__u32) 0x00000004) |
| 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 49 | #define SND_AUDIOCHANMODE_MP3_DUAL ((__u32) 0x00000008) |
| 50 | #define SND_AUDIOPROFILE_AMR ((__u32) 0x00000001) |
| 51 | #define SND_AUDIOMODE_AMR_DTX_OFF ((__u32) 0x00000001) |
| 52 | #define SND_AUDIOMODE_AMR_VAD1 ((__u32) 0x00000002) |
| 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 54 | #define SND_AUDIOMODE_AMR_VAD2 ((__u32) 0x00000004) |
| 55 | #define SND_AUDIOSTREAMFORMAT_UNDEFINED ((__u32) 0x00000000) |
| 56 | #define SND_AUDIOSTREAMFORMAT_CONFORMANCE ((__u32) 0x00000001) |
| 57 | #define SND_AUDIOSTREAMFORMAT_IF1 ((__u32) 0x00000002) |
| 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 59 | #define SND_AUDIOSTREAMFORMAT_IF2 ((__u32) 0x00000004) |
| 60 | #define SND_AUDIOSTREAMFORMAT_FSF ((__u32) 0x00000008) |
| 61 | #define SND_AUDIOSTREAMFORMAT_RTPPAYLOAD ((__u32) 0x00000010) |
| 62 | #define SND_AUDIOSTREAMFORMAT_ITU ((__u32) 0x00000020) |
| 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 64 | #define SND_AUDIOPROFILE_AMRWB ((__u32) 0x00000001) |
| 65 | #define SND_AUDIOMODE_AMRWB_DTX_OFF ((__u32) 0x00000001) |
| 66 | #define SND_AUDIOMODE_AMRWB_VAD1 ((__u32) 0x00000002) |
| 67 | #define SND_AUDIOMODE_AMRWB_VAD2 ((__u32) 0x00000004) |
| 68 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 69 | #define SND_AUDIOPROFILE_AMRWBPLUS ((__u32) 0x00000001) |
| 70 | #define SND_AUDIOPROFILE_AAC ((__u32) 0x00000001) |
| 71 | #define SND_AUDIOMODE_AAC_MAIN ((__u32) 0x00000001) |
| 72 | #define SND_AUDIOMODE_AAC_LC ((__u32) 0x00000002) |
| 73 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 74 | #define SND_AUDIOMODE_AAC_SSR ((__u32) 0x00000004) |
| 75 | #define SND_AUDIOMODE_AAC_LTP ((__u32) 0x00000008) |
| 76 | #define SND_AUDIOMODE_AAC_HE ((__u32) 0x00000010) |
| 77 | #define SND_AUDIOMODE_AAC_SCALABLE ((__u32) 0x00000020) |
| 78 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 79 | #define SND_AUDIOMODE_AAC_ERLC ((__u32) 0x00000040) |
| 80 | #define SND_AUDIOMODE_AAC_LD ((__u32) 0x00000080) |
| 81 | #define SND_AUDIOMODE_AAC_HE_PS ((__u32) 0x00000100) |
| 82 | #define SND_AUDIOMODE_AAC_HE_MPS ((__u32) 0x00000200) |
| 83 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 84 | #define SND_AUDIOSTREAMFORMAT_MP2ADTS ((__u32) 0x00000001) |
| 85 | #define SND_AUDIOSTREAMFORMAT_MP4ADTS ((__u32) 0x00000002) |
| 86 | #define SND_AUDIOSTREAMFORMAT_MP4LOAS ((__u32) 0x00000004) |
| 87 | #define SND_AUDIOSTREAMFORMAT_MP4LATM ((__u32) 0x00000008) |
| 88 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 89 | #define SND_AUDIOSTREAMFORMAT_ADIF ((__u32) 0x00000010) |
| 90 | #define SND_AUDIOSTREAMFORMAT_MP4FF ((__u32) 0x00000020) |
| 91 | #define SND_AUDIOSTREAMFORMAT_RAW ((__u32) 0x00000040) |
| 92 | #define SND_AUDIOPROFILE_WMA7 ((__u32) 0x00000001) |
| 93 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 94 | #define SND_AUDIOPROFILE_WMA8 ((__u32) 0x00000002) |
| 95 | #define SND_AUDIOPROFILE_WMA9 ((__u32) 0x00000004) |
| 96 | #define SND_AUDIOPROFILE_WMA10 ((__u32) 0x00000008) |
| 97 | #define SND_AUDIOMODE_WMA_LEVEL1 ((__u32) 0x00000001) |
| 98 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 99 | #define SND_AUDIOMODE_WMA_LEVEL2 ((__u32) 0x00000002) |
| 100 | #define SND_AUDIOMODE_WMA_LEVEL3 ((__u32) 0x00000004) |
| 101 | #define SND_AUDIOMODE_WMA_LEVEL4 ((__u32) 0x00000008) |
| 102 | #define SND_AUDIOMODE_WMAPRO_LEVELM0 ((__u32) 0x00000010) |
| 103 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 104 | #define SND_AUDIOMODE_WMAPRO_LEVELM1 ((__u32) 0x00000020) |
| 105 | #define SND_AUDIOMODE_WMAPRO_LEVELM2 ((__u32) 0x00000040) |
| 106 | #define SND_AUDIOMODE_WMAPRO_LEVELM3 ((__u32) 0x00000080) |
| 107 | #define SND_AUDIOSTREAMFORMAT_WMA_ASF ((__u32) 0x00000001) |
| 108 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 109 | #define SND_AUDIOSTREAMFORMAT_WMA_NOASF_HDR ((__u32) 0x00000002) |
| 110 | #define SND_AUDIOPROFILE_REALAUDIO ((__u32) 0x00000001) |
| 111 | #define SND_AUDIOMODE_REALAUDIO_G2 ((__u32) 0x00000001) |
| 112 | #define SND_AUDIOMODE_REALAUDIO_8 ((__u32) 0x00000002) |
| 113 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 114 | #define SND_AUDIOMODE_REALAUDIO_10 ((__u32) 0x00000004) |
| 115 | #define SND_AUDIOMODE_REALAUDIO_SURROUND ((__u32) 0x00000008) |
| 116 | #define SND_AUDIOPROFILE_VORBIS ((__u32) 0x00000001) |
| 117 | #define SND_AUDIOMODE_VORBIS ((__u32) 0x00000001) |
| 118 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 119 | #define SND_AUDIOPROFILE_FLAC ((__u32) 0x00000001) |
| 120 | #define SND_AUDIOMODE_FLAC_LEVEL0 ((__u32) 0x00000001) |
| 121 | #define SND_AUDIOMODE_FLAC_LEVEL1 ((__u32) 0x00000002) |
| 122 | #define SND_AUDIOMODE_FLAC_LEVEL2 ((__u32) 0x00000004) |
| 123 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 124 | #define SND_AUDIOMODE_FLAC_LEVEL3 ((__u32) 0x00000008) |
| 125 | #define SND_AUDIOMODE_FLAC_LEVEL4 ((__u32) 0x00000010) |
| 126 | #define SND_AUDIOMODE_FLAC_LEVEL5 ((__u32) 0x00000020) |
| 127 | #define SND_AUDIOMODE_FLAC_LEVEL6 ((__u32) 0x00000040) |
| 128 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 129 | #define SND_AUDIOMODE_FLAC_LEVEL7 ((__u32) 0x00000080) |
| 130 | #define SND_AUDIOMODE_FLAC_LEVEL8 ((__u32) 0x00000100) |
| 131 | #define SND_AUDIOSTREAMFORMAT_FLAC ((__u32) 0x00000001) |
| 132 | #define SND_AUDIOSTREAMFORMAT_FLAC_OGG ((__u32) 0x00000002) |
| 133 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 134 | #define SND_AUDIOPROFILE_IEC61937 ((__u32) 0x00000001) |
| 135 | #define SND_AUDIOPROFILE_IEC61937_SPDIF ((__u32) 0x00000002) |
| 136 | #define SND_AUDIOMODE_IEC_REF_STREAM_HEADER ((__u32) 0x00000000) |
| 137 | #define SND_AUDIOMODE_IEC_LPCM ((__u32) 0x00000001) |
| 138 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 139 | #define SND_AUDIOMODE_IEC_AC3 ((__u32) 0x00000002) |
| 140 | #define SND_AUDIOMODE_IEC_MPEG1 ((__u32) 0x00000004) |
| 141 | #define SND_AUDIOMODE_IEC_MP3 ((__u32) 0x00000008) |
| 142 | #define SND_AUDIOMODE_IEC_MPEG2 ((__u32) 0x00000010) |
| 143 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 144 | #define SND_AUDIOMODE_IEC_AACLC ((__u32) 0x00000020) |
| 145 | #define SND_AUDIOMODE_IEC_DTS ((__u32) 0x00000040) |
| 146 | #define SND_AUDIOMODE_IEC_ATRAC ((__u32) 0x00000080) |
| 147 | #define SND_AUDIOMODE_IEC_SACD ((__u32) 0x00000100) |
| 148 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 149 | #define SND_AUDIOMODE_IEC_EAC3 ((__u32) 0x00000200) |
| 150 | #define SND_AUDIOMODE_IEC_DTS_HD ((__u32) 0x00000400) |
| 151 | #define SND_AUDIOMODE_IEC_MLP ((__u32) 0x00000800) |
| 152 | #define SND_AUDIOMODE_IEC_DST ((__u32) 0x00001000) |
| 153 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 154 | #define SND_AUDIOMODE_IEC_WMAPRO ((__u32) 0x00002000) |
| 155 | #define SND_AUDIOMODE_IEC_REF_CXT ((__u32) 0x00004000) |
| 156 | #define SND_AUDIOMODE_IEC_HE_AAC ((__u32) 0x00008000) |
| 157 | #define SND_AUDIOMODE_IEC_HE_AAC2 ((__u32) 0x00010000) |
| 158 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 159 | #define SND_AUDIOMODE_IEC_MPEG_SURROUND ((__u32) 0x00020000) |
| 160 | #define SND_AUDIOPROFILE_G723_1 ((__u32) 0x00000001) |
| 161 | #define SND_AUDIOMODE_G723_1_ANNEX_A ((__u32) 0x00000001) |
| 162 | #define SND_AUDIOMODE_G723_1_ANNEX_B ((__u32) 0x00000002) |
| 163 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 164 | #define SND_AUDIOMODE_G723_1_ANNEX_C ((__u32) 0x00000004) |
| 165 | #define SND_AUDIOPROFILE_G729 ((__u32) 0x00000001) |
| 166 | #define SND_AUDIOMODE_G729_ANNEX_A ((__u32) 0x00000001) |
| 167 | #define SND_AUDIOMODE_G729_ANNEX_B ((__u32) 0x00000002) |
| 168 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 169 | #define SND_RATECONTROLMODE_CONSTANTBITRATE ((__u32) 0x00000001) |
| 170 | #define SND_RATECONTROLMODE_VARIABLEBITRATE ((__u32) 0x00000002) |
| 171 | struct snd_enc_wma { |
| 172 | __u32 super_block_align; |
| 173 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 174 | }; |
| 175 | struct snd_enc_vorbis { |
| 176 | __s32 quality; |
| 177 | __u32 managed; |
| 178 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 179 | __u32 max_bit_rate; |
| 180 | __u32 min_bit_rate; |
| 181 | __u32 downmix; |
| 182 | }; |
| 183 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 184 | struct snd_enc_real { |
| 185 | __u32 quant_bits; |
| 186 | __u32 start_region; |
| 187 | __u32 num_regions; |
| 188 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 189 | }; |
| 190 | struct snd_enc_flac { |
| 191 | __u32 num; |
| 192 | __u32 gain; |
| 193 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 194 | }; |
| 195 | struct snd_enc_generic { |
| 196 | __u32 bw; |
| 197 | __s32 reserved[15]; |
| 198 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 199 | }; |
| 200 | union snd_codec_options { |
| 201 | struct snd_enc_wma wma; |
| 202 | struct snd_enc_vorbis vorbis; |
| 203 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 204 | struct snd_enc_real real; |
| 205 | struct snd_enc_flac flac; |
| 206 | struct snd_enc_generic generic; |
| 207 | }; |
| 208 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 209 | struct snd_codec_desc { |
| 210 | __u32 max_ch; |
| 211 | __u32 sample_rates; |
| 212 | __u32 bit_rate[MAX_NUM_BITRATES]; |
| 213 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 214 | __u32 num_bitrates; |
| 215 | __u32 rate_control; |
| 216 | __u32 profiles; |
| 217 | __u32 modes; |
| 218 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 219 | __u32 formats; |
| 220 | __u32 min_buffer; |
| 221 | __u32 reserved[15]; |
| 222 | }; |
| 223 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 224 | struct snd_codec { |
| 225 | __u32 id; |
| 226 | __u32 ch_in; |
| 227 | __u32 ch_out; |
| 228 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 229 | __u32 sample_rate; |
| 230 | __u32 bit_rate; |
| 231 | __u32 rate_control; |
| 232 | __u32 profile; |
| 233 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 234 | __u32 level; |
| 235 | __u32 ch_mode; |
| 236 | __u32 format; |
| 237 | __u32 align; |
| 238 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 239 | union snd_codec_options options; |
| 240 | __u32 reserved[3]; |
| 241 | }; |
| 242 | #endif |
| 243 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |