blob: e884e9a271ea92d9a1e4ef6a573b05bd3ee04839 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -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 __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
Christopher Ferris38062f92014-07-09 15:33:25 -070026#define MAX_NUM_SAMPLE_RATES 32
Ben Cheng655a7c02013-10-16 16:09:24 -070027#define SND_AUDIOCODEC_PCM ((__u32) 0x00000001)
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070029#define SND_AUDIOCODEC_MP3 ((__u32) 0x00000002)
Ben Cheng655a7c02013-10-16 16:09:24 -070030#define SND_AUDIOCODEC_AMR ((__u32) 0x00000003)
31#define SND_AUDIOCODEC_AMRWB ((__u32) 0x00000004)
32#define SND_AUDIOCODEC_AMRWBPLUS ((__u32) 0x00000005)
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070034#define SND_AUDIOCODEC_AAC ((__u32) 0x00000006)
Ben Cheng655a7c02013-10-16 16:09:24 -070035#define SND_AUDIOCODEC_WMA ((__u32) 0x00000007)
36#define SND_AUDIOCODEC_REAL ((__u32) 0x00000008)
37#define SND_AUDIOCODEC_VORBIS ((__u32) 0x00000009)
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070039#define SND_AUDIOCODEC_FLAC ((__u32) 0x0000000A)
Ben Cheng655a7c02013-10-16 16:09:24 -070040#define SND_AUDIOCODEC_IEC61937 ((__u32) 0x0000000B)
41#define SND_AUDIOCODEC_G723_1 ((__u32) 0x0000000C)
42#define SND_AUDIOCODEC_G729 ((__u32) 0x0000000D)
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070044#define SND_AUDIOCODEC_MAX SND_AUDIOCODEC_G729
Ben Cheng655a7c02013-10-16 16:09:24 -070045#define SND_AUDIOPROFILE_PCM ((__u32) 0x00000001)
46#define SND_AUDIOCHANMODE_MP3_MONO ((__u32) 0x00000001)
47#define SND_AUDIOCHANMODE_MP3_STEREO ((__u32) 0x00000002)
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070049#define SND_AUDIOCHANMODE_MP3_JOINTSTEREO ((__u32) 0x00000004)
Ben Cheng655a7c02013-10-16 16:09:24 -070050#define SND_AUDIOCHANMODE_MP3_DUAL ((__u32) 0x00000008)
51#define SND_AUDIOPROFILE_AMR ((__u32) 0x00000001)
52#define SND_AUDIOMODE_AMR_DTX_OFF ((__u32) 0x00000001)
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070054#define SND_AUDIOMODE_AMR_VAD1 ((__u32) 0x00000002)
Ben Cheng655a7c02013-10-16 16:09:24 -070055#define SND_AUDIOMODE_AMR_VAD2 ((__u32) 0x00000004)
56#define SND_AUDIOSTREAMFORMAT_UNDEFINED ((__u32) 0x00000000)
57#define SND_AUDIOSTREAMFORMAT_CONFORMANCE ((__u32) 0x00000001)
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070059#define SND_AUDIOSTREAMFORMAT_IF1 ((__u32) 0x00000002)
Ben Cheng655a7c02013-10-16 16:09:24 -070060#define SND_AUDIOSTREAMFORMAT_IF2 ((__u32) 0x00000004)
61#define SND_AUDIOSTREAMFORMAT_FSF ((__u32) 0x00000008)
62#define SND_AUDIOSTREAMFORMAT_RTPPAYLOAD ((__u32) 0x00000010)
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070064#define SND_AUDIOSTREAMFORMAT_ITU ((__u32) 0x00000020)
Ben Cheng655a7c02013-10-16 16:09:24 -070065#define SND_AUDIOPROFILE_AMRWB ((__u32) 0x00000001)
66#define SND_AUDIOMODE_AMRWB_DTX_OFF ((__u32) 0x00000001)
67#define SND_AUDIOMODE_AMRWB_VAD1 ((__u32) 0x00000002)
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070069#define SND_AUDIOMODE_AMRWB_VAD2 ((__u32) 0x00000004)
Ben Cheng655a7c02013-10-16 16:09:24 -070070#define SND_AUDIOPROFILE_AMRWBPLUS ((__u32) 0x00000001)
71#define SND_AUDIOPROFILE_AAC ((__u32) 0x00000001)
72#define SND_AUDIOMODE_AAC_MAIN ((__u32) 0x00000001)
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070074#define SND_AUDIOMODE_AAC_LC ((__u32) 0x00000002)
Ben Cheng655a7c02013-10-16 16:09:24 -070075#define SND_AUDIOMODE_AAC_SSR ((__u32) 0x00000004)
76#define SND_AUDIOMODE_AAC_LTP ((__u32) 0x00000008)
77#define SND_AUDIOMODE_AAC_HE ((__u32) 0x00000010)
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070079#define SND_AUDIOMODE_AAC_SCALABLE ((__u32) 0x00000020)
Ben Cheng655a7c02013-10-16 16:09:24 -070080#define SND_AUDIOMODE_AAC_ERLC ((__u32) 0x00000040)
81#define SND_AUDIOMODE_AAC_LD ((__u32) 0x00000080)
82#define SND_AUDIOMODE_AAC_HE_PS ((__u32) 0x00000100)
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070084#define SND_AUDIOMODE_AAC_HE_MPS ((__u32) 0x00000200)
Ben Cheng655a7c02013-10-16 16:09:24 -070085#define SND_AUDIOSTREAMFORMAT_MP2ADTS ((__u32) 0x00000001)
86#define SND_AUDIOSTREAMFORMAT_MP4ADTS ((__u32) 0x00000002)
87#define SND_AUDIOSTREAMFORMAT_MP4LOAS ((__u32) 0x00000004)
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070089#define SND_AUDIOSTREAMFORMAT_MP4LATM ((__u32) 0x00000008)
Ben Cheng655a7c02013-10-16 16:09:24 -070090#define SND_AUDIOSTREAMFORMAT_ADIF ((__u32) 0x00000010)
91#define SND_AUDIOSTREAMFORMAT_MP4FF ((__u32) 0x00000020)
92#define SND_AUDIOSTREAMFORMAT_RAW ((__u32) 0x00000040)
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070094#define SND_AUDIOPROFILE_WMA7 ((__u32) 0x00000001)
Ben Cheng655a7c02013-10-16 16:09:24 -070095#define SND_AUDIOPROFILE_WMA8 ((__u32) 0x00000002)
96#define SND_AUDIOPROFILE_WMA9 ((__u32) 0x00000004)
97#define SND_AUDIOPROFILE_WMA10 ((__u32) 0x00000008)
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070099#define SND_AUDIOMODE_WMA_LEVEL1 ((__u32) 0x00000001)
Ben Cheng655a7c02013-10-16 16:09:24 -0700100#define SND_AUDIOMODE_WMA_LEVEL2 ((__u32) 0x00000002)
101#define SND_AUDIOMODE_WMA_LEVEL3 ((__u32) 0x00000004)
102#define SND_AUDIOMODE_WMA_LEVEL4 ((__u32) 0x00000008)
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700104#define SND_AUDIOMODE_WMAPRO_LEVELM0 ((__u32) 0x00000010)
Ben Cheng655a7c02013-10-16 16:09:24 -0700105#define SND_AUDIOMODE_WMAPRO_LEVELM1 ((__u32) 0x00000020)
106#define SND_AUDIOMODE_WMAPRO_LEVELM2 ((__u32) 0x00000040)
107#define SND_AUDIOMODE_WMAPRO_LEVELM3 ((__u32) 0x00000080)
Ben Cheng655a7c02013-10-16 16:09:24 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700109#define SND_AUDIOSTREAMFORMAT_WMA_ASF ((__u32) 0x00000001)
Ben Cheng655a7c02013-10-16 16:09:24 -0700110#define SND_AUDIOSTREAMFORMAT_WMA_NOASF_HDR ((__u32) 0x00000002)
111#define SND_AUDIOPROFILE_REALAUDIO ((__u32) 0x00000001)
112#define SND_AUDIOMODE_REALAUDIO_G2 ((__u32) 0x00000001)
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700114#define SND_AUDIOMODE_REALAUDIO_8 ((__u32) 0x00000002)
Ben Cheng655a7c02013-10-16 16:09:24 -0700115#define SND_AUDIOMODE_REALAUDIO_10 ((__u32) 0x00000004)
116#define SND_AUDIOMODE_REALAUDIO_SURROUND ((__u32) 0x00000008)
117#define SND_AUDIOPROFILE_VORBIS ((__u32) 0x00000001)
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700119#define SND_AUDIOMODE_VORBIS ((__u32) 0x00000001)
Ben Cheng655a7c02013-10-16 16:09:24 -0700120#define SND_AUDIOPROFILE_FLAC ((__u32) 0x00000001)
121#define SND_AUDIOMODE_FLAC_LEVEL0 ((__u32) 0x00000001)
122#define SND_AUDIOMODE_FLAC_LEVEL1 ((__u32) 0x00000002)
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700124#define SND_AUDIOMODE_FLAC_LEVEL2 ((__u32) 0x00000004)
Ben Cheng655a7c02013-10-16 16:09:24 -0700125#define SND_AUDIOMODE_FLAC_LEVEL3 ((__u32) 0x00000008)
126#define SND_AUDIOMODE_FLAC_LEVEL4 ((__u32) 0x00000010)
127#define SND_AUDIOMODE_FLAC_LEVEL5 ((__u32) 0x00000020)
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700129#define SND_AUDIOMODE_FLAC_LEVEL6 ((__u32) 0x00000040)
Ben Cheng655a7c02013-10-16 16:09:24 -0700130#define SND_AUDIOMODE_FLAC_LEVEL7 ((__u32) 0x00000080)
131#define SND_AUDIOMODE_FLAC_LEVEL8 ((__u32) 0x00000100)
132#define SND_AUDIOSTREAMFORMAT_FLAC ((__u32) 0x00000001)
Ben Cheng655a7c02013-10-16 16:09:24 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700134#define SND_AUDIOSTREAMFORMAT_FLAC_OGG ((__u32) 0x00000002)
Ben Cheng655a7c02013-10-16 16:09:24 -0700135#define SND_AUDIOPROFILE_IEC61937 ((__u32) 0x00000001)
136#define SND_AUDIOPROFILE_IEC61937_SPDIF ((__u32) 0x00000002)
137#define SND_AUDIOMODE_IEC_REF_STREAM_HEADER ((__u32) 0x00000000)
Ben Cheng655a7c02013-10-16 16:09:24 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700139#define SND_AUDIOMODE_IEC_LPCM ((__u32) 0x00000001)
Ben Cheng655a7c02013-10-16 16:09:24 -0700140#define SND_AUDIOMODE_IEC_AC3 ((__u32) 0x00000002)
141#define SND_AUDIOMODE_IEC_MPEG1 ((__u32) 0x00000004)
142#define SND_AUDIOMODE_IEC_MP3 ((__u32) 0x00000008)
Ben Cheng655a7c02013-10-16 16:09:24 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700144#define SND_AUDIOMODE_IEC_MPEG2 ((__u32) 0x00000010)
Ben Cheng655a7c02013-10-16 16:09:24 -0700145#define SND_AUDIOMODE_IEC_AACLC ((__u32) 0x00000020)
146#define SND_AUDIOMODE_IEC_DTS ((__u32) 0x00000040)
147#define SND_AUDIOMODE_IEC_ATRAC ((__u32) 0x00000080)
Ben Cheng655a7c02013-10-16 16:09:24 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700149#define SND_AUDIOMODE_IEC_SACD ((__u32) 0x00000100)
Ben Cheng655a7c02013-10-16 16:09:24 -0700150#define SND_AUDIOMODE_IEC_EAC3 ((__u32) 0x00000200)
151#define SND_AUDIOMODE_IEC_DTS_HD ((__u32) 0x00000400)
152#define SND_AUDIOMODE_IEC_MLP ((__u32) 0x00000800)
Ben Cheng655a7c02013-10-16 16:09:24 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700154#define SND_AUDIOMODE_IEC_DST ((__u32) 0x00001000)
Ben Cheng655a7c02013-10-16 16:09:24 -0700155#define SND_AUDIOMODE_IEC_WMAPRO ((__u32) 0x00002000)
156#define SND_AUDIOMODE_IEC_REF_CXT ((__u32) 0x00004000)
157#define SND_AUDIOMODE_IEC_HE_AAC ((__u32) 0x00008000)
Ben Cheng655a7c02013-10-16 16:09:24 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700159#define SND_AUDIOMODE_IEC_HE_AAC2 ((__u32) 0x00010000)
Ben Cheng655a7c02013-10-16 16:09:24 -0700160#define SND_AUDIOMODE_IEC_MPEG_SURROUND ((__u32) 0x00020000)
161#define SND_AUDIOPROFILE_G723_1 ((__u32) 0x00000001)
162#define SND_AUDIOMODE_G723_1_ANNEX_A ((__u32) 0x00000001)
Ben Cheng655a7c02013-10-16 16:09:24 -0700163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700164#define SND_AUDIOMODE_G723_1_ANNEX_B ((__u32) 0x00000002)
Ben Cheng655a7c02013-10-16 16:09:24 -0700165#define SND_AUDIOMODE_G723_1_ANNEX_C ((__u32) 0x00000004)
166#define SND_AUDIOPROFILE_G729 ((__u32) 0x00000001)
167#define SND_AUDIOMODE_G729_ANNEX_A ((__u32) 0x00000001)
Ben Cheng655a7c02013-10-16 16:09:24 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700169#define SND_AUDIOMODE_G729_ANNEX_B ((__u32) 0x00000002)
Ben Cheng655a7c02013-10-16 16:09:24 -0700170#define SND_RATECONTROLMODE_CONSTANTBITRATE ((__u32) 0x00000001)
171#define SND_RATECONTROLMODE_VARIABLEBITRATE ((__u32) 0x00000002)
172struct snd_enc_wma {
Ben Cheng655a7c02013-10-16 16:09:24 -0700173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700174 __u32 super_block_align;
Ben Cheng655a7c02013-10-16 16:09:24 -0700175};
176struct snd_enc_vorbis {
177 __s32 quality;
Ben Cheng655a7c02013-10-16 16:09:24 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700179 __u32 managed;
Ben Cheng655a7c02013-10-16 16:09:24 -0700180 __u32 max_bit_rate;
181 __u32 min_bit_rate;
182 __u32 downmix;
Ben Cheng655a7c02013-10-16 16:09:24 -0700183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700184} __attribute__((packed, aligned(4)));
Ben Cheng655a7c02013-10-16 16:09:24 -0700185struct snd_enc_real {
186 __u32 quant_bits;
187 __u32 start_region;
Ben Cheng655a7c02013-10-16 16:09:24 -0700188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700189 __u32 num_regions;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700190} __attribute__((packed, aligned(4)));
Ben Cheng655a7c02013-10-16 16:09:24 -0700191struct snd_enc_flac {
192 __u32 num;
Ben Cheng655a7c02013-10-16 16:09:24 -0700193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700194 __u32 gain;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700195} __attribute__((packed, aligned(4)));
Ben Cheng655a7c02013-10-16 16:09:24 -0700196struct snd_enc_generic {
197 __u32 bw;
Ben Cheng655a7c02013-10-16 16:09:24 -0700198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700199 __s32 reserved[15];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700200} __attribute__((packed, aligned(4)));
Ben Cheng655a7c02013-10-16 16:09:24 -0700201union snd_codec_options {
202 struct snd_enc_wma wma;
Ben Cheng655a7c02013-10-16 16:09:24 -0700203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700204 struct snd_enc_vorbis vorbis;
Ben Cheng655a7c02013-10-16 16:09:24 -0700205 struct snd_enc_real real;
206 struct snd_enc_flac flac;
207 struct snd_enc_generic generic;
Ben Cheng655a7c02013-10-16 16:09:24 -0700208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700209} __attribute__((packed, aligned(4)));
Ben Cheng655a7c02013-10-16 16:09:24 -0700210struct snd_codec_desc {
211 __u32 max_ch;
Christopher Ferris38062f92014-07-09 15:33:25 -0700212 __u32 sample_rates[MAX_NUM_SAMPLE_RATES];
Ben Cheng655a7c02013-10-16 16:09:24 -0700213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700214 __u32 num_sample_rates;
215 __u32 bit_rate[MAX_NUM_BITRATES];
Ben Cheng655a7c02013-10-16 16:09:24 -0700216 __u32 num_bitrates;
217 __u32 rate_control;
Christopher Ferris38062f92014-07-09 15:33:25 -0700218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700219 __u32 profiles;
220 __u32 modes;
Ben Cheng655a7c02013-10-16 16:09:24 -0700221 __u32 formats;
222 __u32 min_buffer;
Christopher Ferris38062f92014-07-09 15:33:25 -0700223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700224 __u32 reserved[15];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700225} __attribute__((packed, aligned(4)));
Ben Cheng655a7c02013-10-16 16:09:24 -0700226struct snd_codec {
227 __u32 id;
Christopher Ferris38062f92014-07-09 15:33:25 -0700228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700229 __u32 ch_in;
230 __u32 ch_out;
Ben Cheng655a7c02013-10-16 16:09:24 -0700231 __u32 sample_rate;
232 __u32 bit_rate;
Christopher Ferris38062f92014-07-09 15:33:25 -0700233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700234 __u32 rate_control;
235 __u32 profile;
Ben Cheng655a7c02013-10-16 16:09:24 -0700236 __u32 level;
237 __u32 ch_mode;
Christopher Ferris38062f92014-07-09 15:33:25 -0700238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700239 __u32 format;
240 __u32 align;
Ben Cheng655a7c02013-10-16 16:09:24 -0700241 union snd_codec_options options;
242 __u32 reserved[3];
Christopher Ferris38062f92014-07-09 15:33:25 -0700243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700244} __attribute__((packed, aligned(4)));
Ben Cheng655a7c02013-10-16 16:09:24 -0700245#endif