blob: 459516c2e27eeae951434855140ecc756a5629c9 [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 _UAPI__LINUX_USB_AUDIO_H
20#define _UAPI__LINUX_USB_AUDIO_H
21#include <linux/types.h>
22#define UAC_VERSION_1 0x00
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define UAC_VERSION_2 0x20
25#define USB_SUBCLASS_AUDIOCONTROL 0x01
26#define USB_SUBCLASS_AUDIOSTREAMING 0x02
27#define USB_SUBCLASS_MIDISTREAMING 0x03
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define UAC_HEADER 0x01
30#define UAC_INPUT_TERMINAL 0x02
31#define UAC_OUTPUT_TERMINAL 0x03
32#define UAC_MIXER_UNIT 0x04
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define UAC_SELECTOR_UNIT 0x05
35#define UAC_FEATURE_UNIT 0x06
36#define UAC1_PROCESSING_UNIT 0x07
37#define UAC1_EXTENSION_UNIT 0x08
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define UAC_AS_GENERAL 0x01
40#define UAC_FORMAT_TYPE 0x02
41#define UAC_FORMAT_SPECIFIC 0x03
42#define UAC_PROCESS_UNDEFINED 0x00
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define UAC_PROCESS_UP_DOWNMIX 0x01
45#define UAC_PROCESS_DOLBY_PROLOGIC 0x02
46#define UAC_PROCESS_STEREO_EXTENDER 0x03
47#define UAC_PROCESS_REVERB 0x04
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define UAC_PROCESS_CHORUS 0x05
50#define UAC_PROCESS_DYN_RANGE_COMP 0x06
51#define UAC_EP_GENERAL 0x01
52#define UAC_SET_ 0x00
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define UAC_GET_ 0x80
55#define UAC__CUR 0x1
56#define UAC__MIN 0x2
57#define UAC__MAX 0x3
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define UAC__RES 0x4
60#define UAC__MEM 0x5
61#define UAC_SET_CUR (UAC_SET_ | UAC__CUR)
62#define UAC_GET_CUR (UAC_GET_ | UAC__CUR)
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define UAC_SET_MIN (UAC_SET_ | UAC__MIN)
65#define UAC_GET_MIN (UAC_GET_ | UAC__MIN)
66#define UAC_SET_MAX (UAC_SET_ | UAC__MAX)
67#define UAC_GET_MAX (UAC_GET_ | UAC__MAX)
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define UAC_SET_RES (UAC_SET_ | UAC__RES)
70#define UAC_GET_RES (UAC_GET_ | UAC__RES)
71#define UAC_SET_MEM (UAC_SET_ | UAC__MEM)
72#define UAC_GET_MEM (UAC_GET_ | UAC__MEM)
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define UAC_GET_STAT 0xff
75#define UAC_TERM_COPY_PROTECT 0x01
76#define UAC_FU_MUTE 0x01
77#define UAC_FU_VOLUME 0x02
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define UAC_FU_BASS 0x03
80#define UAC_FU_MID 0x04
81#define UAC_FU_TREBLE 0x05
82#define UAC_FU_GRAPHIC_EQUALIZER 0x06
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define UAC_FU_AUTOMATIC_GAIN 0x07
85#define UAC_FU_DELAY 0x08
86#define UAC_FU_BASS_BOOST 0x09
87#define UAC_FU_LOUDNESS 0x0a
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#define UAC_CONTROL_BIT(CS) (1 << ((CS) - 1))
90#define UAC_UD_ENABLE 0x01
91#define UAC_UD_MODE_SELECT 0x02
92#define UAC_DP_ENABLE 0x01
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94#define UAC_DP_MODE_SELECT 0x02
95#define UAC_3D_ENABLE 0x01
96#define UAC_3D_SPACE 0x02
97#define UAC_REVERB_ENABLE 0x01
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99#define UAC_REVERB_LEVEL 0x02
100#define UAC_REVERB_TIME 0x03
101#define UAC_REVERB_FEEDBACK 0x04
102#define UAC_CHORUS_ENABLE 0x01
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104#define UAC_CHORUS_LEVEL 0x02
105#define UAC_CHORUS_RATE 0x03
106#define UAC_CHORUS_DEPTH 0x04
107#define UAC_DCR_ENABLE 0x01
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109#define UAC_DCR_RATE 0x02
110#define UAC_DCR_MAXAMPL 0x03
111#define UAC_DCR_THRESHOLD 0x04
112#define UAC_DCR_ATTACK_TIME 0x05
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114#define UAC_DCR_RELEASE_TIME 0x06
115#define UAC_XU_ENABLE 0x01
116#define UAC_MS_HEADER 0x01
117#define UAC_MIDI_IN_JACK 0x02
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119#define UAC_MIDI_OUT_JACK 0x03
120#define UAC_MS_GENERAL 0x01
121#define UAC_TERMINAL_UNDEFINED 0x100
122#define UAC_TERMINAL_STREAMING 0x101
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124#define UAC_TERMINAL_VENDOR_SPEC 0x1FF
125struct uac1_ac_header_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800126 __u8 bLength;
127 __u8 bDescriptorType;
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800129 __u8 bDescriptorSubtype;
130 __le16 bcdADC;
131 __le16 wTotalLength;
132 __u8 bInCollection;
Ben Cheng655a7c02013-10-16 16:09:24 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800134 __u8 baInterfaceNr[];
135} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700136#define UAC_DT_AC_HEADER_SIZE(n) (8 + (n))
Tao Baod7db5942015-01-28 10:07:51 -0800137#define DECLARE_UAC_AC_HEADER_DESCRIPTOR(n) struct uac1_ac_header_descriptor_ ##n { __u8 bLength; __u8 bDescriptorType; __u8 bDescriptorSubtype; __le16 bcdADC; __le16 wTotalLength; __u8 bInCollection; __u8 baInterfaceNr[n]; \
138} __attribute__((packed))
Ben Cheng655a7c02013-10-16 16:09:24 -0700139/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
140struct uac_input_terminal_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800141 __u8 bLength;
142 __u8 bDescriptorType;
143 __u8 bDescriptorSubtype;
Ben Cheng655a7c02013-10-16 16:09:24 -0700144/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800145 __u8 bTerminalID;
146 __le16 wTerminalType;
147 __u8 bAssocTerminal;
148 __u8 bNrChannels;
Ben Cheng655a7c02013-10-16 16:09:24 -0700149/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800150 __le16 wChannelConfig;
151 __u8 iChannelNames;
152 __u8 iTerminal;
153} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700154/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
155#define UAC_DT_INPUT_TERMINAL_SIZE 12
156#define UAC_INPUT_TERMINAL_UNDEFINED 0x200
157#define UAC_INPUT_TERMINAL_MICROPHONE 0x201
158#define UAC_INPUT_TERMINAL_DESKTOP_MICROPHONE 0x202
159/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
160#define UAC_INPUT_TERMINAL_PERSONAL_MICROPHONE 0x203
161#define UAC_INPUT_TERMINAL_OMNI_DIR_MICROPHONE 0x204
162#define UAC_INPUT_TERMINAL_MICROPHONE_ARRAY 0x205
163#define UAC_INPUT_TERMINAL_PROC_MICROPHONE_ARRAY 0x206
164/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
165#define UAC_TERMINAL_CS_COPY_PROTECT_CONTROL 0x01
166struct uac1_output_terminal_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800167 __u8 bLength;
168 __u8 bDescriptorType;
Ben Cheng655a7c02013-10-16 16:09:24 -0700169/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800170 __u8 bDescriptorSubtype;
171 __u8 bTerminalID;
172 __le16 wTerminalType;
173 __u8 bAssocTerminal;
Ben Cheng655a7c02013-10-16 16:09:24 -0700174/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800175 __u8 bSourceID;
176 __u8 iTerminal;
177} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700178#define UAC_DT_OUTPUT_TERMINAL_SIZE 9
179/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
180#define UAC_OUTPUT_TERMINAL_UNDEFINED 0x300
181#define UAC_OUTPUT_TERMINAL_SPEAKER 0x301
182#define UAC_OUTPUT_TERMINAL_HEADPHONES 0x302
183#define UAC_OUTPUT_TERMINAL_HEAD_MOUNTED_DISPLAY_AUDIO 0x303
184/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
185#define UAC_OUTPUT_TERMINAL_DESKTOP_SPEAKER 0x304
186#define UAC_OUTPUT_TERMINAL_ROOM_SPEAKER 0x305
187#define UAC_OUTPUT_TERMINAL_COMMUNICATION_SPEAKER 0x306
188#define UAC_OUTPUT_TERMINAL_LOW_FREQ_EFFECTS_SPEAKER 0x307
189/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
190#define UAC_DT_FEATURE_UNIT_SIZE(ch) (7 + ((ch) + 1) * 2)
Tao Baod7db5942015-01-28 10:07:51 -0800191#define DECLARE_UAC_FEATURE_UNIT_DESCRIPTOR(ch) struct uac_feature_unit_descriptor_ ##ch { __u8 bLength; __u8 bDescriptorType; __u8 bDescriptorSubtype; __u8 bUnitID; __u8 bSourceID; __u8 bControlSize; __le16 bmaControls[ch + 1]; __u8 iFeature; \
192} __attribute__((packed))
Ben Cheng655a7c02013-10-16 16:09:24 -0700193struct uac_mixer_unit_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800194 __u8 bLength;
Ben Cheng655a7c02013-10-16 16:09:24 -0700195/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800196 __u8 bDescriptorType;
197 __u8 bDescriptorSubtype;
198 __u8 bUnitID;
199 __u8 bNrInPins;
Ben Cheng655a7c02013-10-16 16:09:24 -0700200/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800201 __u8 baSourceID[];
202} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700203struct uac_selector_unit_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800204 __u8 bLength;
Ben Cheng655a7c02013-10-16 16:09:24 -0700205/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800206 __u8 bDescriptorType;
207 __u8 bDescriptorSubtype;
208 __u8 bUintID;
209 __u8 bNrInPins;
Ben Cheng655a7c02013-10-16 16:09:24 -0700210/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800211 __u8 baSourceID[];
212} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700213struct uac_feature_unit_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800214 __u8 bLength;
Ben Cheng655a7c02013-10-16 16:09:24 -0700215/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800216 __u8 bDescriptorType;
217 __u8 bDescriptorSubtype;
218 __u8 bUnitID;
219 __u8 bSourceID;
Ben Cheng655a7c02013-10-16 16:09:24 -0700220/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800221 __u8 bControlSize;
222 __u8 bmaControls[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700223} __attribute__((packed));
224struct uac_processing_unit_descriptor {
225/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800226 __u8 bLength;
227 __u8 bDescriptorType;
228 __u8 bDescriptorSubtype;
229 __u8 bUnitID;
Ben Cheng655a7c02013-10-16 16:09:24 -0700230/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800231 __u16 wProcessType;
232 __u8 bNrInPins;
233 __u8 baSourceID[];
234} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700235/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
236struct uac1_as_header_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800237 __u8 bLength;
238 __u8 bDescriptorType;
239 __u8 bDescriptorSubtype;
Ben Cheng655a7c02013-10-16 16:09:24 -0700240/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800241 __u8 bTerminalLink;
242 __u8 bDelay;
243 __le16 wFormatTag;
244} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700245/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
246#define UAC_DT_AS_HEADER_SIZE 7
247#define UAC_FORMAT_TYPE_I_UNDEFINED 0x0
248#define UAC_FORMAT_TYPE_I_PCM 0x1
249#define UAC_FORMAT_TYPE_I_PCM8 0x2
250/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
251#define UAC_FORMAT_TYPE_I_IEEE_FLOAT 0x3
252#define UAC_FORMAT_TYPE_I_ALAW 0x4
253#define UAC_FORMAT_TYPE_I_MULAW 0x5
254struct uac_format_type_i_continuous_descriptor {
255/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800256 __u8 bLength;
257 __u8 bDescriptorType;
258 __u8 bDescriptorSubtype;
259 __u8 bFormatType;
Ben Cheng655a7c02013-10-16 16:09:24 -0700260/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800261 __u8 bNrChannels;
262 __u8 bSubframeSize;
263 __u8 bBitResolution;
264 __u8 bSamFreqType;
Ben Cheng655a7c02013-10-16 16:09:24 -0700265/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800266 __u8 tLowerSamFreq[3];
267 __u8 tUpperSamFreq[3];
268} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700269#define UAC_FORMAT_TYPE_I_CONTINUOUS_DESC_SIZE 14
270/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
271struct uac_format_type_i_discrete_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800272 __u8 bLength;
273 __u8 bDescriptorType;
274 __u8 bDescriptorSubtype;
Ben Cheng655a7c02013-10-16 16:09:24 -0700275/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800276 __u8 bFormatType;
277 __u8 bNrChannels;
278 __u8 bSubframeSize;
279 __u8 bBitResolution;
Ben Cheng655a7c02013-10-16 16:09:24 -0700280/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800281 __u8 bSamFreqType;
282 __u8 tSamFreq[][3];
283} __attribute__((packed));
284#define DECLARE_UAC_FORMAT_TYPE_I_DISCRETE_DESC(n) struct uac_format_type_i_discrete_descriptor_ ##n { __u8 bLength; __u8 bDescriptorType; __u8 bDescriptorSubtype; __u8 bFormatType; __u8 bNrChannels; __u8 bSubframeSize; __u8 bBitResolution; __u8 bSamFreqType; __u8 tSamFreq[n][3]; \
285} __attribute__((packed))
Ben Cheng655a7c02013-10-16 16:09:24 -0700286/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
287#define UAC_FORMAT_TYPE_I_DISCRETE_DESC_SIZE(n) (8 + (n * 3))
288struct uac_format_type_i_ext_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800289 __u8 bLength;
290 __u8 bDescriptorType;
Ben Cheng655a7c02013-10-16 16:09:24 -0700291/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800292 __u8 bDescriptorSubtype;
293 __u8 bFormatType;
294 __u8 bSubslotSize;
295 __u8 bBitResolution;
Ben Cheng655a7c02013-10-16 16:09:24 -0700296/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800297 __u8 bHeaderLength;
298 __u8 bControlSize;
299 __u8 bSideBandProtocol;
Ben Cheng655a7c02013-10-16 16:09:24 -0700300} __attribute__((packed));
301/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
302#define UAC_FORMAT_TYPE_II_MPEG 0x1001
303#define UAC_FORMAT_TYPE_II_AC3 0x1002
304struct uac_format_type_ii_discrete_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800305 __u8 bLength;
Ben Cheng655a7c02013-10-16 16:09:24 -0700306/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800307 __u8 bDescriptorType;
308 __u8 bDescriptorSubtype;
309 __u8 bFormatType;
310 __le16 wMaxBitRate;
Ben Cheng655a7c02013-10-16 16:09:24 -0700311/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800312 __le16 wSamplesPerFrame;
313 __u8 bSamFreqType;
314 __u8 tSamFreq[][3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700315} __attribute__((packed));
316/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
317struct uac_format_type_ii_ext_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800318 __u8 bLength;
319 __u8 bDescriptorType;
320 __u8 bDescriptorSubtype;
Ben Cheng655a7c02013-10-16 16:09:24 -0700321/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800322 __u8 bFormatType;
323 __u16 wMaxBitRate;
324 __u16 wSamplesPerFrame;
325 __u8 bHeaderLength;
Ben Cheng655a7c02013-10-16 16:09:24 -0700326/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800327 __u8 bSideBandProtocol;
Ben Cheng655a7c02013-10-16 16:09:24 -0700328} __attribute__((packed));
329#define UAC_FORMAT_TYPE_III_IEC1937_AC3 0x2001
330#define UAC_FORMAT_TYPE_III_IEC1937_MPEG1_LAYER1 0x2002
331/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
332#define UAC_FORMAT_TYPE_III_IEC1937_MPEG2_NOEXT 0x2003
333#define UAC_FORMAT_TYPE_III_IEC1937_MPEG2_EXT 0x2004
334#define UAC_FORMAT_TYPE_III_IEC1937_MPEG2_LAYER1_LS 0x2005
335#define UAC_FORMAT_TYPE_III_IEC1937_MPEG2_LAYER23_LS 0x2006
336/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
337#define UAC_FORMAT_TYPE_UNDEFINED 0x0
338#define UAC_FORMAT_TYPE_I 0x1
339#define UAC_FORMAT_TYPE_II 0x2
340#define UAC_FORMAT_TYPE_III 0x3
341/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
342#define UAC_EXT_FORMAT_TYPE_I 0x81
343#define UAC_EXT_FORMAT_TYPE_II 0x82
344#define UAC_EXT_FORMAT_TYPE_III 0x83
345struct uac_iso_endpoint_descriptor {
346/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800347 __u8 bLength;
348 __u8 bDescriptorType;
349 __u8 bDescriptorSubtype;
350 __u8 bmAttributes;
Ben Cheng655a7c02013-10-16 16:09:24 -0700351/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800352 __u8 bLockDelayUnits;
353 __le16 wLockDelay;
Ben Cheng655a7c02013-10-16 16:09:24 -0700354} __attribute__((packed));
355#define UAC_ISO_ENDPOINT_DESC_SIZE 7
356/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
357#define UAC_EP_CS_ATTR_SAMPLE_RATE 0x01
358#define UAC_EP_CS_ATTR_PITCH_CONTROL 0x02
359#define UAC_EP_CS_ATTR_FILL_MAX 0x80
360#define UAC1_STATUS_TYPE_ORIG_MASK 0x0f
361/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
362#define UAC1_STATUS_TYPE_ORIG_AUDIO_CONTROL_IF 0x0
363#define UAC1_STATUS_TYPE_ORIG_AUDIO_STREAM_IF 0x1
364#define UAC1_STATUS_TYPE_ORIG_AUDIO_STREAM_EP 0x2
365#define UAC1_STATUS_TYPE_IRQ_PENDING (1 << 7)
366/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
367#define UAC1_STATUS_TYPE_MEM_CHANGED (1 << 6)
368struct uac1_status_word {
Tao Baod7db5942015-01-28 10:07:51 -0800369 __u8 bStatusType;
370 __u8 bOriginator;
Ben Cheng655a7c02013-10-16 16:09:24 -0700371/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
372} __attribute__((packed));
373#endif