blob: ebb4e68be3f6b8c1bc2d6666dbc975b771efaa01 [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__SOUND_ASOUND_H
20#define _UAPI__SOUND_ASOUND_H
21#include <linux/types.h>
22#define SNDRV_PROTOCOL_VERSION(major, minor, subminor) (((major)<<16)|((minor)<<8)|(subminor))
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define SNDRV_PROTOCOL_MAJOR(version) (((version)>>16)&0xffff)
25#define SNDRV_PROTOCOL_MINOR(version) (((version)>>8)&0xff)
26#define SNDRV_PROTOCOL_MICRO(version) ((version)&0xff)
27#define SNDRV_PROTOCOL_INCOMPATIBLE(kversion, uversion) (SNDRV_PROTOCOL_MAJOR(kversion) != SNDRV_PROTOCOL_MAJOR(uversion) || (SNDRV_PROTOCOL_MAJOR(kversion) == SNDRV_PROTOCOL_MAJOR(uversion) && SNDRV_PROTOCOL_MINOR(kversion) != SNDRV_PROTOCOL_MINOR(uversion)))
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29struct snd_aes_iec958 {
30 unsigned char status[24];
31 unsigned char subcode[147];
32 unsigned char pad;
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 unsigned char dig_subframe[4];
35};
36struct snd_cea_861_aud_if {
37 unsigned char db1_ct_cc;
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 unsigned char db2_sf_ss;
40 unsigned char db3;
41 unsigned char db4_ca;
42 unsigned char db5_dminh_lsv;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44};
45#define SNDRV_HWDEP_VERSION SNDRV_PROTOCOL_VERSION(1, 0, 1)
46enum {
47 SNDRV_HWDEP_IFACE_OPL2 = 0,
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 SNDRV_HWDEP_IFACE_OPL3,
50 SNDRV_HWDEP_IFACE_OPL4,
51 SNDRV_HWDEP_IFACE_SB16CSP,
52 SNDRV_HWDEP_IFACE_EMU10K1,
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 SNDRV_HWDEP_IFACE_YSS225,
55 SNDRV_HWDEP_IFACE_ICS2115,
56 SNDRV_HWDEP_IFACE_SSCAPE,
57 SNDRV_HWDEP_IFACE_VX,
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 SNDRV_HWDEP_IFACE_MIXART,
60 SNDRV_HWDEP_IFACE_USX2Y,
61 SNDRV_HWDEP_IFACE_EMUX_WAVETABLE,
62 SNDRV_HWDEP_IFACE_BLUETOOTH,
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 SNDRV_HWDEP_IFACE_USX2Y_PCM,
65 SNDRV_HWDEP_IFACE_PCXHR,
66 SNDRV_HWDEP_IFACE_SB_RC,
67 SNDRV_HWDEP_IFACE_HDA,
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 SNDRV_HWDEP_IFACE_USB_STREAM,
Christopher Ferris38062f92014-07-09 15:33:25 -070070 SNDRV_HWDEP_IFACE_FW_DICE,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070071 SNDRV_HWDEP_IFACE_FW_FIREWORKS,
72 SNDRV_HWDEP_IFACE_FW_BEBOB,
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070074 SNDRV_HWDEP_IFACE_LAST = SNDRV_HWDEP_IFACE_FW_BEBOB
75};
Christopher Ferris38062f92014-07-09 15:33:25 -070076struct snd_hwdep_info {
Ben Cheng655a7c02013-10-16 16:09:24 -070077 unsigned int device;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070079 int card;
80 unsigned char id[64];
Christopher Ferris38062f92014-07-09 15:33:25 -070081 unsigned char name[80];
Ben Cheng655a7c02013-10-16 16:09:24 -070082 int iface;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070084 unsigned char reserved[64];
85};
Christopher Ferris38062f92014-07-09 15:33:25 -070086struct snd_hwdep_dsp_status {
Ben Cheng655a7c02013-10-16 16:09:24 -070087 unsigned int version;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070089 unsigned char id[32];
90 unsigned int num_dsps;
Christopher Ferris38062f92014-07-09 15:33:25 -070091 unsigned int dsp_loaded;
Ben Cheng655a7c02013-10-16 16:09:24 -070092 unsigned int chip_ready;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070094 unsigned char reserved[16];
95};
Christopher Ferris38062f92014-07-09 15:33:25 -070096struct snd_hwdep_dsp_image {
Ben Cheng655a7c02013-10-16 16:09:24 -070097 unsigned int index;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070099 unsigned char name[64];
100 unsigned char __user *image;
Christopher Ferris38062f92014-07-09 15:33:25 -0700101 size_t length;
Ben Cheng655a7c02013-10-16 16:09:24 -0700102 unsigned long driver_data;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700104};
105#define SNDRV_HWDEP_IOCTL_PVERSION _IOR ('H', 0x00, int)
Christopher Ferris38062f92014-07-09 15:33:25 -0700106#define SNDRV_HWDEP_IOCTL_INFO _IOR ('H', 0x01, struct snd_hwdep_info)
Ben Cheng655a7c02013-10-16 16:09:24 -0700107#define SNDRV_HWDEP_IOCTL_DSP_STATUS _IOR('H', 0x02, struct snd_hwdep_dsp_status)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700109#define SNDRV_HWDEP_IOCTL_DSP_LOAD _IOW('H', 0x03, struct snd_hwdep_dsp_image)
110#define SNDRV_PCM_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 11)
Christopher Ferris38062f92014-07-09 15:33:25 -0700111typedef unsigned long snd_pcm_uframes_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700112typedef signed long snd_pcm_sframes_t;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700114enum {
115 SNDRV_PCM_CLASS_GENERIC = 0,
Christopher Ferris38062f92014-07-09 15:33:25 -0700116 SNDRV_PCM_CLASS_MULTI,
Ben Cheng655a7c02013-10-16 16:09:24 -0700117 SNDRV_PCM_CLASS_MODEM,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700119 SNDRV_PCM_CLASS_DIGITIZER,
120 SNDRV_PCM_CLASS_LAST = SNDRV_PCM_CLASS_DIGITIZER,
Christopher Ferris38062f92014-07-09 15:33:25 -0700121};
Ben Cheng655a7c02013-10-16 16:09:24 -0700122enum {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700124 SNDRV_PCM_SUBCLASS_GENERIC_MIX = 0,
125 SNDRV_PCM_SUBCLASS_MULTI_MIX,
Christopher Ferris38062f92014-07-09 15:33:25 -0700126 SNDRV_PCM_SUBCLASS_LAST = SNDRV_PCM_SUBCLASS_MULTI_MIX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700127};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700129enum {
130 SNDRV_PCM_STREAM_PLAYBACK = 0,
Christopher Ferris38062f92014-07-09 15:33:25 -0700131 SNDRV_PCM_STREAM_CAPTURE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700132 SNDRV_PCM_STREAM_LAST = SNDRV_PCM_STREAM_CAPTURE,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700134};
135typedef int __bitwise snd_pcm_access_t;
Christopher Ferris38062f92014-07-09 15:33:25 -0700136#define SNDRV_PCM_ACCESS_MMAP_INTERLEAVED ((__force snd_pcm_access_t) 0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700137#define SNDRV_PCM_ACCESS_MMAP_NONINTERLEAVED ((__force snd_pcm_access_t) 1)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700139#define SNDRV_PCM_ACCESS_MMAP_COMPLEX ((__force snd_pcm_access_t) 2)
140#define SNDRV_PCM_ACCESS_RW_INTERLEAVED ((__force snd_pcm_access_t) 3)
Christopher Ferris38062f92014-07-09 15:33:25 -0700141#define SNDRV_PCM_ACCESS_RW_NONINTERLEAVED ((__force snd_pcm_access_t) 4)
Ben Cheng655a7c02013-10-16 16:09:24 -0700142#define SNDRV_PCM_ACCESS_LAST SNDRV_PCM_ACCESS_RW_NONINTERLEAVED
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700144typedef int __bitwise snd_pcm_format_t;
145#define SNDRV_PCM_FORMAT_S8 ((__force snd_pcm_format_t) 0)
Christopher Ferris38062f92014-07-09 15:33:25 -0700146#define SNDRV_PCM_FORMAT_U8 ((__force snd_pcm_format_t) 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700147#define SNDRV_PCM_FORMAT_S16_LE ((__force snd_pcm_format_t) 2)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700149#define SNDRV_PCM_FORMAT_S16_BE ((__force snd_pcm_format_t) 3)
150#define SNDRV_PCM_FORMAT_U16_LE ((__force snd_pcm_format_t) 4)
Christopher Ferris38062f92014-07-09 15:33:25 -0700151#define SNDRV_PCM_FORMAT_U16_BE ((__force snd_pcm_format_t) 5)
Ben Cheng655a7c02013-10-16 16:09:24 -0700152#define SNDRV_PCM_FORMAT_S24_LE ((__force snd_pcm_format_t) 6)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700154#define SNDRV_PCM_FORMAT_S24_BE ((__force snd_pcm_format_t) 7)
155#define SNDRV_PCM_FORMAT_U24_LE ((__force snd_pcm_format_t) 8)
Christopher Ferris38062f92014-07-09 15:33:25 -0700156#define SNDRV_PCM_FORMAT_U24_BE ((__force snd_pcm_format_t) 9)
Ben Cheng655a7c02013-10-16 16:09:24 -0700157#define SNDRV_PCM_FORMAT_S32_LE ((__force snd_pcm_format_t) 10)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700159#define SNDRV_PCM_FORMAT_S32_BE ((__force snd_pcm_format_t) 11)
160#define SNDRV_PCM_FORMAT_U32_LE ((__force snd_pcm_format_t) 12)
Christopher Ferris38062f92014-07-09 15:33:25 -0700161#define SNDRV_PCM_FORMAT_U32_BE ((__force snd_pcm_format_t) 13)
Ben Cheng655a7c02013-10-16 16:09:24 -0700162#define SNDRV_PCM_FORMAT_FLOAT_LE ((__force snd_pcm_format_t) 14)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700164#define SNDRV_PCM_FORMAT_FLOAT_BE ((__force snd_pcm_format_t) 15)
165#define SNDRV_PCM_FORMAT_FLOAT64_LE ((__force snd_pcm_format_t) 16)
Christopher Ferris38062f92014-07-09 15:33:25 -0700166#define SNDRV_PCM_FORMAT_FLOAT64_BE ((__force snd_pcm_format_t) 17)
Ben Cheng655a7c02013-10-16 16:09:24 -0700167#define SNDRV_PCM_FORMAT_IEC958_SUBFRAME_LE ((__force snd_pcm_format_t) 18)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700169#define SNDRV_PCM_FORMAT_IEC958_SUBFRAME_BE ((__force snd_pcm_format_t) 19)
170#define SNDRV_PCM_FORMAT_MU_LAW ((__force snd_pcm_format_t) 20)
Christopher Ferris38062f92014-07-09 15:33:25 -0700171#define SNDRV_PCM_FORMAT_A_LAW ((__force snd_pcm_format_t) 21)
Ben Cheng655a7c02013-10-16 16:09:24 -0700172#define SNDRV_PCM_FORMAT_IMA_ADPCM ((__force snd_pcm_format_t) 22)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700174#define SNDRV_PCM_FORMAT_MPEG ((__force snd_pcm_format_t) 23)
175#define SNDRV_PCM_FORMAT_GSM ((__force snd_pcm_format_t) 24)
Christopher Ferris38062f92014-07-09 15:33:25 -0700176#define SNDRV_PCM_FORMAT_SPECIAL ((__force snd_pcm_format_t) 31)
Ben Cheng655a7c02013-10-16 16:09:24 -0700177#define SNDRV_PCM_FORMAT_S24_3LE ((__force snd_pcm_format_t) 32)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700179#define SNDRV_PCM_FORMAT_S24_3BE ((__force snd_pcm_format_t) 33)
180#define SNDRV_PCM_FORMAT_U24_3LE ((__force snd_pcm_format_t) 34)
Christopher Ferris38062f92014-07-09 15:33:25 -0700181#define SNDRV_PCM_FORMAT_U24_3BE ((__force snd_pcm_format_t) 35)
Ben Cheng655a7c02013-10-16 16:09:24 -0700182#define SNDRV_PCM_FORMAT_S20_3LE ((__force snd_pcm_format_t) 36)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700184#define SNDRV_PCM_FORMAT_S20_3BE ((__force snd_pcm_format_t) 37)
185#define SNDRV_PCM_FORMAT_U20_3LE ((__force snd_pcm_format_t) 38)
Christopher Ferris38062f92014-07-09 15:33:25 -0700186#define SNDRV_PCM_FORMAT_U20_3BE ((__force snd_pcm_format_t) 39)
Ben Cheng655a7c02013-10-16 16:09:24 -0700187#define SNDRV_PCM_FORMAT_S18_3LE ((__force snd_pcm_format_t) 40)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700189#define SNDRV_PCM_FORMAT_S18_3BE ((__force snd_pcm_format_t) 41)
190#define SNDRV_PCM_FORMAT_U18_3LE ((__force snd_pcm_format_t) 42)
Christopher Ferris38062f92014-07-09 15:33:25 -0700191#define SNDRV_PCM_FORMAT_U18_3BE ((__force snd_pcm_format_t) 43)
Ben Cheng655a7c02013-10-16 16:09:24 -0700192#define SNDRV_PCM_FORMAT_G723_24 ((__force snd_pcm_format_t) 44)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700194#define SNDRV_PCM_FORMAT_G723_24_1B ((__force snd_pcm_format_t) 45)
195#define SNDRV_PCM_FORMAT_G723_40 ((__force snd_pcm_format_t) 46)
Christopher Ferris38062f92014-07-09 15:33:25 -0700196#define SNDRV_PCM_FORMAT_G723_40_1B ((__force snd_pcm_format_t) 47)
Ben Cheng655a7c02013-10-16 16:09:24 -0700197#define SNDRV_PCM_FORMAT_DSD_U8 ((__force snd_pcm_format_t) 48)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700199#define SNDRV_PCM_FORMAT_DSD_U16_LE ((__force snd_pcm_format_t) 49)
200#define SNDRV_PCM_FORMAT_LAST SNDRV_PCM_FORMAT_DSD_U16_LE
Christopher Ferris38062f92014-07-09 15:33:25 -0700201#ifdef SNDRV_LITTLE_ENDIAN
Ben Cheng655a7c02013-10-16 16:09:24 -0700202#define SNDRV_PCM_FORMAT_S16 SNDRV_PCM_FORMAT_S16_LE
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700204#define SNDRV_PCM_FORMAT_U16 SNDRV_PCM_FORMAT_U16_LE
205#define SNDRV_PCM_FORMAT_S24 SNDRV_PCM_FORMAT_S24_LE
Christopher Ferris38062f92014-07-09 15:33:25 -0700206#define SNDRV_PCM_FORMAT_U24 SNDRV_PCM_FORMAT_U24_LE
Ben Cheng655a7c02013-10-16 16:09:24 -0700207#define SNDRV_PCM_FORMAT_S32 SNDRV_PCM_FORMAT_S32_LE
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700209#define SNDRV_PCM_FORMAT_U32 SNDRV_PCM_FORMAT_U32_LE
210#define SNDRV_PCM_FORMAT_FLOAT SNDRV_PCM_FORMAT_FLOAT_LE
Christopher Ferris38062f92014-07-09 15:33:25 -0700211#define SNDRV_PCM_FORMAT_FLOAT64 SNDRV_PCM_FORMAT_FLOAT64_LE
Ben Cheng655a7c02013-10-16 16:09:24 -0700212#define SNDRV_PCM_FORMAT_IEC958_SUBFRAME SNDRV_PCM_FORMAT_IEC958_SUBFRAME_LE
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700214#endif
215#ifdef SNDRV_BIG_ENDIAN
Christopher Ferris38062f92014-07-09 15:33:25 -0700216#define SNDRV_PCM_FORMAT_S16 SNDRV_PCM_FORMAT_S16_BE
Ben Cheng655a7c02013-10-16 16:09:24 -0700217#define SNDRV_PCM_FORMAT_U16 SNDRV_PCM_FORMAT_U16_BE
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700219#define SNDRV_PCM_FORMAT_S24 SNDRV_PCM_FORMAT_S24_BE
220#define SNDRV_PCM_FORMAT_U24 SNDRV_PCM_FORMAT_U24_BE
Christopher Ferris38062f92014-07-09 15:33:25 -0700221#define SNDRV_PCM_FORMAT_S32 SNDRV_PCM_FORMAT_S32_BE
Ben Cheng655a7c02013-10-16 16:09:24 -0700222#define SNDRV_PCM_FORMAT_U32 SNDRV_PCM_FORMAT_U32_BE
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700224#define SNDRV_PCM_FORMAT_FLOAT SNDRV_PCM_FORMAT_FLOAT_BE
225#define SNDRV_PCM_FORMAT_FLOAT64 SNDRV_PCM_FORMAT_FLOAT64_BE
Christopher Ferris38062f92014-07-09 15:33:25 -0700226#define SNDRV_PCM_FORMAT_IEC958_SUBFRAME SNDRV_PCM_FORMAT_IEC958_SUBFRAME_BE
Ben Cheng655a7c02013-10-16 16:09:24 -0700227#endif
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700229typedef int __bitwise snd_pcm_subformat_t;
230#define SNDRV_PCM_SUBFORMAT_STD ((__force snd_pcm_subformat_t) 0)
Christopher Ferris38062f92014-07-09 15:33:25 -0700231#define SNDRV_PCM_SUBFORMAT_LAST SNDRV_PCM_SUBFORMAT_STD
Ben Cheng655a7c02013-10-16 16:09:24 -0700232#define SNDRV_PCM_INFO_MMAP 0x00000001
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700234#define SNDRV_PCM_INFO_MMAP_VALID 0x00000002
235#define SNDRV_PCM_INFO_DOUBLE 0x00000004
Christopher Ferris38062f92014-07-09 15:33:25 -0700236#define SNDRV_PCM_INFO_BATCH 0x00000010
Ben Cheng655a7c02013-10-16 16:09:24 -0700237#define SNDRV_PCM_INFO_INTERLEAVED 0x00000100
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700239#define SNDRV_PCM_INFO_NONINTERLEAVED 0x00000200
240#define SNDRV_PCM_INFO_COMPLEX 0x00000400
Christopher Ferris38062f92014-07-09 15:33:25 -0700241#define SNDRV_PCM_INFO_BLOCK_TRANSFER 0x00010000
Ben Cheng655a7c02013-10-16 16:09:24 -0700242#define SNDRV_PCM_INFO_OVERRANGE 0x00020000
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700244#define SNDRV_PCM_INFO_RESUME 0x00040000
245#define SNDRV_PCM_INFO_PAUSE 0x00080000
Christopher Ferris38062f92014-07-09 15:33:25 -0700246#define SNDRV_PCM_INFO_HALF_DUPLEX 0x00100000
Ben Cheng655a7c02013-10-16 16:09:24 -0700247#define SNDRV_PCM_INFO_JOINT_DUPLEX 0x00200000
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700249#define SNDRV_PCM_INFO_SYNC_START 0x00400000
250#define SNDRV_PCM_INFO_NO_PERIOD_WAKEUP 0x00800000
Christopher Ferris38062f92014-07-09 15:33:25 -0700251#define SNDRV_PCM_INFO_HAS_WALL_CLOCK 0x01000000
Ben Cheng655a7c02013-10-16 16:09:24 -0700252#define SNDRV_PCM_INFO_FIFO_IN_FRAMES 0x80000000
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700254typedef int __bitwise snd_pcm_state_t;
255#define SNDRV_PCM_STATE_OPEN ((__force snd_pcm_state_t) 0)
Christopher Ferris38062f92014-07-09 15:33:25 -0700256#define SNDRV_PCM_STATE_SETUP ((__force snd_pcm_state_t) 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700257#define SNDRV_PCM_STATE_PREPARED ((__force snd_pcm_state_t) 2)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700259#define SNDRV_PCM_STATE_RUNNING ((__force snd_pcm_state_t) 3)
260#define SNDRV_PCM_STATE_XRUN ((__force snd_pcm_state_t) 4)
Christopher Ferris38062f92014-07-09 15:33:25 -0700261#define SNDRV_PCM_STATE_DRAINING ((__force snd_pcm_state_t) 5)
Ben Cheng655a7c02013-10-16 16:09:24 -0700262#define SNDRV_PCM_STATE_PAUSED ((__force snd_pcm_state_t) 6)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700264#define SNDRV_PCM_STATE_SUSPENDED ((__force snd_pcm_state_t) 7)
265#define SNDRV_PCM_STATE_DISCONNECTED ((__force snd_pcm_state_t) 8)
Christopher Ferris38062f92014-07-09 15:33:25 -0700266#define SNDRV_PCM_STATE_LAST SNDRV_PCM_STATE_DISCONNECTED
Ben Cheng655a7c02013-10-16 16:09:24 -0700267enum {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700269 SNDRV_PCM_MMAP_OFFSET_DATA = 0x00000000,
270 SNDRV_PCM_MMAP_OFFSET_STATUS = 0x80000000,
Christopher Ferris38062f92014-07-09 15:33:25 -0700271 SNDRV_PCM_MMAP_OFFSET_CONTROL = 0x81000000,
Ben Cheng655a7c02013-10-16 16:09:24 -0700272};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700274union snd_pcm_sync_id {
275 unsigned char id[16];
Christopher Ferris38062f92014-07-09 15:33:25 -0700276 unsigned short id16[8];
Ben Cheng655a7c02013-10-16 16:09:24 -0700277 unsigned int id32[4];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700279};
280struct snd_pcm_info {
Christopher Ferris38062f92014-07-09 15:33:25 -0700281 unsigned int device;
Ben Cheng655a7c02013-10-16 16:09:24 -0700282 unsigned int subdevice;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700284 int stream;
285 int card;
Christopher Ferris38062f92014-07-09 15:33:25 -0700286 unsigned char id[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700287 unsigned char name[80];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700289 unsigned char subname[32];
290 int dev_class;
Christopher Ferris38062f92014-07-09 15:33:25 -0700291 int dev_subclass;
Ben Cheng655a7c02013-10-16 16:09:24 -0700292 unsigned int subdevices_count;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700294 unsigned int subdevices_avail;
295 union snd_pcm_sync_id sync;
Christopher Ferris38062f92014-07-09 15:33:25 -0700296 unsigned char reserved[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700297};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700299typedef int snd_pcm_hw_param_t;
300#define SNDRV_PCM_HW_PARAM_ACCESS 0
Christopher Ferris38062f92014-07-09 15:33:25 -0700301#define SNDRV_PCM_HW_PARAM_FORMAT 1
Ben Cheng655a7c02013-10-16 16:09:24 -0700302#define SNDRV_PCM_HW_PARAM_SUBFORMAT 2
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700304#define SNDRV_PCM_HW_PARAM_FIRST_MASK SNDRV_PCM_HW_PARAM_ACCESS
305#define SNDRV_PCM_HW_PARAM_LAST_MASK SNDRV_PCM_HW_PARAM_SUBFORMAT
Christopher Ferris38062f92014-07-09 15:33:25 -0700306#define SNDRV_PCM_HW_PARAM_SAMPLE_BITS 8
Ben Cheng655a7c02013-10-16 16:09:24 -0700307#define SNDRV_PCM_HW_PARAM_FRAME_BITS 9
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700309#define SNDRV_PCM_HW_PARAM_CHANNELS 10
310#define SNDRV_PCM_HW_PARAM_RATE 11
Christopher Ferris38062f92014-07-09 15:33:25 -0700311#define SNDRV_PCM_HW_PARAM_PERIOD_TIME 12
Ben Cheng655a7c02013-10-16 16:09:24 -0700312#define SNDRV_PCM_HW_PARAM_PERIOD_SIZE 13
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700314#define SNDRV_PCM_HW_PARAM_PERIOD_BYTES 14
315#define SNDRV_PCM_HW_PARAM_PERIODS 15
Christopher Ferris38062f92014-07-09 15:33:25 -0700316#define SNDRV_PCM_HW_PARAM_BUFFER_TIME 16
Ben Cheng655a7c02013-10-16 16:09:24 -0700317#define SNDRV_PCM_HW_PARAM_BUFFER_SIZE 17
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700319#define SNDRV_PCM_HW_PARAM_BUFFER_BYTES 18
320#define SNDRV_PCM_HW_PARAM_TICK_TIME 19
Christopher Ferris38062f92014-07-09 15:33:25 -0700321#define SNDRV_PCM_HW_PARAM_FIRST_INTERVAL SNDRV_PCM_HW_PARAM_SAMPLE_BITS
Ben Cheng655a7c02013-10-16 16:09:24 -0700322#define SNDRV_PCM_HW_PARAM_LAST_INTERVAL SNDRV_PCM_HW_PARAM_TICK_TIME
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700324#define SNDRV_PCM_HW_PARAMS_NORESAMPLE (1<<0)
325#define SNDRV_PCM_HW_PARAMS_EXPORT_BUFFER (1<<1)
Christopher Ferris38062f92014-07-09 15:33:25 -0700326#define SNDRV_PCM_HW_PARAMS_NO_PERIOD_WAKEUP (1<<2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700327struct snd_interval {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700329 unsigned int min, max;
330 unsigned int openmin:1,
Christopher Ferris38062f92014-07-09 15:33:25 -0700331 openmax:1,
Ben Cheng655a7c02013-10-16 16:09:24 -0700332 integer:1,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700334 empty:1;
335};
Christopher Ferris38062f92014-07-09 15:33:25 -0700336#define SNDRV_MASK_MAX 256
Ben Cheng655a7c02013-10-16 16:09:24 -0700337struct snd_mask {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700339 __u32 bits[(SNDRV_MASK_MAX+31)/32];
340};
Christopher Ferris38062f92014-07-09 15:33:25 -0700341struct snd_pcm_hw_params {
Ben Cheng655a7c02013-10-16 16:09:24 -0700342 unsigned int flags;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700344 struct snd_mask masks[SNDRV_PCM_HW_PARAM_LAST_MASK -
345 SNDRV_PCM_HW_PARAM_FIRST_MASK + 1];
Christopher Ferris38062f92014-07-09 15:33:25 -0700346 struct snd_mask mres[5];
Ben Cheng655a7c02013-10-16 16:09:24 -0700347 struct snd_interval intervals[SNDRV_PCM_HW_PARAM_LAST_INTERVAL -
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700349 SNDRV_PCM_HW_PARAM_FIRST_INTERVAL + 1];
350 struct snd_interval ires[9];
Christopher Ferris38062f92014-07-09 15:33:25 -0700351 unsigned int rmask;
Ben Cheng655a7c02013-10-16 16:09:24 -0700352 unsigned int cmask;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700354 unsigned int info;
355 unsigned int msbits;
Christopher Ferris38062f92014-07-09 15:33:25 -0700356 unsigned int rate_num;
Ben Cheng655a7c02013-10-16 16:09:24 -0700357 unsigned int rate_den;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700359 snd_pcm_uframes_t fifo_size;
360 unsigned char reserved[64];
Christopher Ferris38062f92014-07-09 15:33:25 -0700361};
Ben Cheng655a7c02013-10-16 16:09:24 -0700362enum {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700364 SNDRV_PCM_TSTAMP_NONE = 0,
365 SNDRV_PCM_TSTAMP_ENABLE,
Christopher Ferris38062f92014-07-09 15:33:25 -0700366 SNDRV_PCM_TSTAMP_LAST = SNDRV_PCM_TSTAMP_ENABLE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700367};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700369struct snd_pcm_sw_params {
370 int tstamp_mode;
Christopher Ferris38062f92014-07-09 15:33:25 -0700371 unsigned int period_step;
Ben Cheng655a7c02013-10-16 16:09:24 -0700372 unsigned int sleep_min;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700374 snd_pcm_uframes_t avail_min;
375 snd_pcm_uframes_t xfer_align;
Christopher Ferris38062f92014-07-09 15:33:25 -0700376 snd_pcm_uframes_t start_threshold;
Ben Cheng655a7c02013-10-16 16:09:24 -0700377 snd_pcm_uframes_t stop_threshold;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700379 snd_pcm_uframes_t silence_threshold;
380 snd_pcm_uframes_t silence_size;
Christopher Ferris38062f92014-07-09 15:33:25 -0700381 snd_pcm_uframes_t boundary;
Ben Cheng655a7c02013-10-16 16:09:24 -0700382 unsigned char reserved[64];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700384};
385struct snd_pcm_channel_info {
Christopher Ferris38062f92014-07-09 15:33:25 -0700386 unsigned int channel;
Ben Cheng655a7c02013-10-16 16:09:24 -0700387 __kernel_off_t offset;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700389 unsigned int first;
390 unsigned int step;
Christopher Ferris38062f92014-07-09 15:33:25 -0700391};
Ben Cheng655a7c02013-10-16 16:09:24 -0700392struct snd_pcm_status {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700394 snd_pcm_state_t state;
395 struct timespec trigger_tstamp;
Christopher Ferris38062f92014-07-09 15:33:25 -0700396 struct timespec tstamp;
Ben Cheng655a7c02013-10-16 16:09:24 -0700397 snd_pcm_uframes_t appl_ptr;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700399 snd_pcm_uframes_t hw_ptr;
400 snd_pcm_sframes_t delay;
Christopher Ferris38062f92014-07-09 15:33:25 -0700401 snd_pcm_uframes_t avail;
Ben Cheng655a7c02013-10-16 16:09:24 -0700402 snd_pcm_uframes_t avail_max;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700404 snd_pcm_uframes_t overrange;
405 snd_pcm_state_t suspended_state;
Christopher Ferris38062f92014-07-09 15:33:25 -0700406 __u32 reserved_alignment;
Ben Cheng655a7c02013-10-16 16:09:24 -0700407 struct timespec audio_tstamp;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700409 unsigned char reserved[56-sizeof(struct timespec)];
410};
Christopher Ferris38062f92014-07-09 15:33:25 -0700411struct snd_pcm_mmap_status {
Ben Cheng655a7c02013-10-16 16:09:24 -0700412 snd_pcm_state_t state;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700414 int pad1;
415 snd_pcm_uframes_t hw_ptr;
Christopher Ferris38062f92014-07-09 15:33:25 -0700416 struct timespec tstamp;
Ben Cheng655a7c02013-10-16 16:09:24 -0700417 snd_pcm_state_t suspended_state;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700419 struct timespec audio_tstamp;
420};
Christopher Ferris38062f92014-07-09 15:33:25 -0700421struct snd_pcm_mmap_control {
Ben Cheng655a7c02013-10-16 16:09:24 -0700422 snd_pcm_uframes_t appl_ptr;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700424 snd_pcm_uframes_t avail_min;
425};
Christopher Ferris38062f92014-07-09 15:33:25 -0700426#define SNDRV_PCM_SYNC_PTR_HWSYNC (1<<0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700427#define SNDRV_PCM_SYNC_PTR_APPL (1<<1)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700429#define SNDRV_PCM_SYNC_PTR_AVAIL_MIN (1<<2)
430struct snd_pcm_sync_ptr {
Christopher Ferris38062f92014-07-09 15:33:25 -0700431 unsigned int flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700432 union {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700434 struct snd_pcm_mmap_status status;
435 unsigned char reserved[64];
Christopher Ferris38062f92014-07-09 15:33:25 -0700436 } s;
Ben Cheng655a7c02013-10-16 16:09:24 -0700437 union {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700439 struct snd_pcm_mmap_control control;
440 unsigned char reserved[64];
Christopher Ferris38062f92014-07-09 15:33:25 -0700441 } c;
Ben Cheng655a7c02013-10-16 16:09:24 -0700442};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700444struct snd_xferi {
445 snd_pcm_sframes_t result;
Christopher Ferris38062f92014-07-09 15:33:25 -0700446 void __user *buf;
Ben Cheng655a7c02013-10-16 16:09:24 -0700447 snd_pcm_uframes_t frames;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700449};
450struct snd_xfern {
Christopher Ferris38062f92014-07-09 15:33:25 -0700451 snd_pcm_sframes_t result;
Ben Cheng655a7c02013-10-16 16:09:24 -0700452 void __user * __user *bufs;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700454 snd_pcm_uframes_t frames;
455};
Christopher Ferris38062f92014-07-09 15:33:25 -0700456enum {
Ben Cheng655a7c02013-10-16 16:09:24 -0700457 SNDRV_PCM_TSTAMP_TYPE_GETTIMEOFDAY = 0,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700459 SNDRV_PCM_TSTAMP_TYPE_MONOTONIC,
460 SNDRV_PCM_TSTAMP_TYPE_LAST = SNDRV_PCM_TSTAMP_TYPE_MONOTONIC,
Christopher Ferris38062f92014-07-09 15:33:25 -0700461};
Ben Cheng655a7c02013-10-16 16:09:24 -0700462enum {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700464 SNDRV_CHMAP_UNKNOWN = 0,
465 SNDRV_CHMAP_NA,
Christopher Ferris38062f92014-07-09 15:33:25 -0700466 SNDRV_CHMAP_MONO,
Ben Cheng655a7c02013-10-16 16:09:24 -0700467 SNDRV_CHMAP_FL,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700469 SNDRV_CHMAP_FR,
470 SNDRV_CHMAP_RL,
Christopher Ferris38062f92014-07-09 15:33:25 -0700471 SNDRV_CHMAP_RR,
Ben Cheng655a7c02013-10-16 16:09:24 -0700472 SNDRV_CHMAP_FC,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700474 SNDRV_CHMAP_LFE,
475 SNDRV_CHMAP_SL,
Christopher Ferris38062f92014-07-09 15:33:25 -0700476 SNDRV_CHMAP_SR,
Ben Cheng655a7c02013-10-16 16:09:24 -0700477 SNDRV_CHMAP_RC,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700479 SNDRV_CHMAP_FLC,
480 SNDRV_CHMAP_FRC,
Christopher Ferris38062f92014-07-09 15:33:25 -0700481 SNDRV_CHMAP_RLC,
Ben Cheng655a7c02013-10-16 16:09:24 -0700482 SNDRV_CHMAP_RRC,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700484 SNDRV_CHMAP_FLW,
485 SNDRV_CHMAP_FRW,
Christopher Ferris38062f92014-07-09 15:33:25 -0700486 SNDRV_CHMAP_FLH,
Ben Cheng655a7c02013-10-16 16:09:24 -0700487 SNDRV_CHMAP_FCH,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700489 SNDRV_CHMAP_FRH,
490 SNDRV_CHMAP_TC,
Christopher Ferris38062f92014-07-09 15:33:25 -0700491 SNDRV_CHMAP_TFL,
Ben Cheng655a7c02013-10-16 16:09:24 -0700492 SNDRV_CHMAP_TFR,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700494 SNDRV_CHMAP_TFC,
495 SNDRV_CHMAP_TRL,
Christopher Ferris38062f92014-07-09 15:33:25 -0700496 SNDRV_CHMAP_TRR,
Ben Cheng655a7c02013-10-16 16:09:24 -0700497 SNDRV_CHMAP_TRC,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700499 SNDRV_CHMAP_TFLC,
500 SNDRV_CHMAP_TFRC,
Christopher Ferris38062f92014-07-09 15:33:25 -0700501 SNDRV_CHMAP_TSL,
Ben Cheng655a7c02013-10-16 16:09:24 -0700502 SNDRV_CHMAP_TSR,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700503/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700504 SNDRV_CHMAP_LLFE,
505 SNDRV_CHMAP_RLFE,
Christopher Ferris38062f92014-07-09 15:33:25 -0700506 SNDRV_CHMAP_BC,
Ben Cheng655a7c02013-10-16 16:09:24 -0700507 SNDRV_CHMAP_BLC,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700508/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700509 SNDRV_CHMAP_BRC,
510 SNDRV_CHMAP_LAST = SNDRV_CHMAP_BRC,
Christopher Ferris38062f92014-07-09 15:33:25 -0700511};
Ben Cheng655a7c02013-10-16 16:09:24 -0700512#define SNDRV_CHMAP_POSITION_MASK 0xffff
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700513/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700514#define SNDRV_CHMAP_PHASE_INVERSE (0x01 << 16)
515#define SNDRV_CHMAP_DRIVER_SPEC (0x02 << 16)
Christopher Ferris38062f92014-07-09 15:33:25 -0700516#define SNDRV_PCM_IOCTL_PVERSION _IOR('A', 0x00, int)
Ben Cheng655a7c02013-10-16 16:09:24 -0700517#define SNDRV_PCM_IOCTL_INFO _IOR('A', 0x01, struct snd_pcm_info)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700518/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700519#define SNDRV_PCM_IOCTL_TSTAMP _IOW('A', 0x02, int)
520#define SNDRV_PCM_IOCTL_TTSTAMP _IOW('A', 0x03, int)
Christopher Ferris38062f92014-07-09 15:33:25 -0700521#define SNDRV_PCM_IOCTL_HW_REFINE _IOWR('A', 0x10, struct snd_pcm_hw_params)
Ben Cheng655a7c02013-10-16 16:09:24 -0700522#define SNDRV_PCM_IOCTL_HW_PARAMS _IOWR('A', 0x11, struct snd_pcm_hw_params)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700523/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700524#define SNDRV_PCM_IOCTL_HW_FREE _IO('A', 0x12)
525#define SNDRV_PCM_IOCTL_SW_PARAMS _IOWR('A', 0x13, struct snd_pcm_sw_params)
Christopher Ferris38062f92014-07-09 15:33:25 -0700526#define SNDRV_PCM_IOCTL_STATUS _IOR('A', 0x20, struct snd_pcm_status)
Ben Cheng655a7c02013-10-16 16:09:24 -0700527#define SNDRV_PCM_IOCTL_DELAY _IOR('A', 0x21, snd_pcm_sframes_t)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700528/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700529#define SNDRV_PCM_IOCTL_HWSYNC _IO('A', 0x22)
530#define SNDRV_PCM_IOCTL_SYNC_PTR _IOWR('A', 0x23, struct snd_pcm_sync_ptr)
Christopher Ferris38062f92014-07-09 15:33:25 -0700531#define SNDRV_PCM_IOCTL_CHANNEL_INFO _IOR('A', 0x32, struct snd_pcm_channel_info)
Ben Cheng655a7c02013-10-16 16:09:24 -0700532#define SNDRV_PCM_IOCTL_PREPARE _IO('A', 0x40)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700533/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700534#define SNDRV_PCM_IOCTL_RESET _IO('A', 0x41)
535#define SNDRV_PCM_IOCTL_START _IO('A', 0x42)
Christopher Ferris38062f92014-07-09 15:33:25 -0700536#define SNDRV_PCM_IOCTL_DROP _IO('A', 0x43)
Ben Cheng655a7c02013-10-16 16:09:24 -0700537#define SNDRV_PCM_IOCTL_DRAIN _IO('A', 0x44)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700538/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700539#define SNDRV_PCM_IOCTL_PAUSE _IOW('A', 0x45, int)
540#define SNDRV_PCM_IOCTL_REWIND _IOW('A', 0x46, snd_pcm_uframes_t)
Christopher Ferris38062f92014-07-09 15:33:25 -0700541#define SNDRV_PCM_IOCTL_RESUME _IO('A', 0x47)
Ben Cheng655a7c02013-10-16 16:09:24 -0700542#define SNDRV_PCM_IOCTL_XRUN _IO('A', 0x48)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700543/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700544#define SNDRV_PCM_IOCTL_FORWARD _IOW('A', 0x49, snd_pcm_uframes_t)
545#define SNDRV_PCM_IOCTL_WRITEI_FRAMES _IOW('A', 0x50, struct snd_xferi)
Christopher Ferris38062f92014-07-09 15:33:25 -0700546#define SNDRV_PCM_IOCTL_READI_FRAMES _IOR('A', 0x51, struct snd_xferi)
Ben Cheng655a7c02013-10-16 16:09:24 -0700547#define SNDRV_PCM_IOCTL_WRITEN_FRAMES _IOW('A', 0x52, struct snd_xfern)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700548/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700549#define SNDRV_PCM_IOCTL_READN_FRAMES _IOR('A', 0x53, struct snd_xfern)
550#define SNDRV_PCM_IOCTL_LINK _IOW('A', 0x60, int)
Christopher Ferris38062f92014-07-09 15:33:25 -0700551#define SNDRV_PCM_IOCTL_UNLINK _IO('A', 0x61)
Ben Cheng655a7c02013-10-16 16:09:24 -0700552#define SNDRV_RAWMIDI_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 0)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700553/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700554enum {
555 SNDRV_RAWMIDI_STREAM_OUTPUT = 0,
Christopher Ferris38062f92014-07-09 15:33:25 -0700556 SNDRV_RAWMIDI_STREAM_INPUT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700557 SNDRV_RAWMIDI_STREAM_LAST = SNDRV_RAWMIDI_STREAM_INPUT,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700558/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700559};
560#define SNDRV_RAWMIDI_INFO_OUTPUT 0x00000001
Christopher Ferris38062f92014-07-09 15:33:25 -0700561#define SNDRV_RAWMIDI_INFO_INPUT 0x00000002
Ben Cheng655a7c02013-10-16 16:09:24 -0700562#define SNDRV_RAWMIDI_INFO_DUPLEX 0x00000004
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700563/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700564struct snd_rawmidi_info {
565 unsigned int device;
Christopher Ferris38062f92014-07-09 15:33:25 -0700566 unsigned int subdevice;
Ben Cheng655a7c02013-10-16 16:09:24 -0700567 int stream;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700568/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700569 int card;
570 unsigned int flags;
Christopher Ferris38062f92014-07-09 15:33:25 -0700571 unsigned char id[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700572 unsigned char name[80];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700573/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700574 unsigned char subname[32];
575 unsigned int subdevices_count;
Christopher Ferris38062f92014-07-09 15:33:25 -0700576 unsigned int subdevices_avail;
Ben Cheng655a7c02013-10-16 16:09:24 -0700577 unsigned char reserved[64];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700578/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700579};
580struct snd_rawmidi_params {
Christopher Ferris38062f92014-07-09 15:33:25 -0700581 int stream;
Ben Cheng655a7c02013-10-16 16:09:24 -0700582 size_t buffer_size;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700583/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700584 size_t avail_min;
585 unsigned int no_active_sensing: 1;
Christopher Ferris38062f92014-07-09 15:33:25 -0700586 unsigned char reserved[16];
Ben Cheng655a7c02013-10-16 16:09:24 -0700587};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700588/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700589struct snd_rawmidi_status {
590 int stream;
Christopher Ferris38062f92014-07-09 15:33:25 -0700591 struct timespec tstamp;
Ben Cheng655a7c02013-10-16 16:09:24 -0700592 size_t avail;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700593/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700594 size_t xruns;
595 unsigned char reserved[16];
Christopher Ferris38062f92014-07-09 15:33:25 -0700596};
Ben Cheng655a7c02013-10-16 16:09:24 -0700597#define SNDRV_RAWMIDI_IOCTL_PVERSION _IOR('W', 0x00, int)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700598/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700599#define SNDRV_RAWMIDI_IOCTL_INFO _IOR('W', 0x01, struct snd_rawmidi_info)
600#define SNDRV_RAWMIDI_IOCTL_PARAMS _IOWR('W', 0x10, struct snd_rawmidi_params)
Christopher Ferris38062f92014-07-09 15:33:25 -0700601#define SNDRV_RAWMIDI_IOCTL_STATUS _IOWR('W', 0x20, struct snd_rawmidi_status)
Ben Cheng655a7c02013-10-16 16:09:24 -0700602#define SNDRV_RAWMIDI_IOCTL_DROP _IOW('W', 0x30, int)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700603/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700604#define SNDRV_RAWMIDI_IOCTL_DRAIN _IOW('W', 0x31, int)
605#define SNDRV_TIMER_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 6)
Christopher Ferris38062f92014-07-09 15:33:25 -0700606enum {
Ben Cheng655a7c02013-10-16 16:09:24 -0700607 SNDRV_TIMER_CLASS_NONE = -1,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700608/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700609 SNDRV_TIMER_CLASS_SLAVE = 0,
610 SNDRV_TIMER_CLASS_GLOBAL,
Christopher Ferris38062f92014-07-09 15:33:25 -0700611 SNDRV_TIMER_CLASS_CARD,
Ben Cheng655a7c02013-10-16 16:09:24 -0700612 SNDRV_TIMER_CLASS_PCM,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700613/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700614 SNDRV_TIMER_CLASS_LAST = SNDRV_TIMER_CLASS_PCM,
615};
Christopher Ferris38062f92014-07-09 15:33:25 -0700616enum {
Ben Cheng655a7c02013-10-16 16:09:24 -0700617 SNDRV_TIMER_SCLASS_NONE = 0,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700618/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700619 SNDRV_TIMER_SCLASS_APPLICATION,
620 SNDRV_TIMER_SCLASS_SEQUENCER,
Christopher Ferris38062f92014-07-09 15:33:25 -0700621 SNDRV_TIMER_SCLASS_OSS_SEQUENCER,
Ben Cheng655a7c02013-10-16 16:09:24 -0700622 SNDRV_TIMER_SCLASS_LAST = SNDRV_TIMER_SCLASS_OSS_SEQUENCER,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700623/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700624};
625#define SNDRV_TIMER_GLOBAL_SYSTEM 0
Christopher Ferris38062f92014-07-09 15:33:25 -0700626#define SNDRV_TIMER_GLOBAL_RTC 1
Ben Cheng655a7c02013-10-16 16:09:24 -0700627#define SNDRV_TIMER_GLOBAL_HPET 2
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700628/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700629#define SNDRV_TIMER_GLOBAL_HRTIMER 3
630#define SNDRV_TIMER_FLG_SLAVE (1<<0)
Christopher Ferris38062f92014-07-09 15:33:25 -0700631struct snd_timer_id {
Ben Cheng655a7c02013-10-16 16:09:24 -0700632 int dev_class;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700633/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700634 int dev_sclass;
635 int card;
Christopher Ferris38062f92014-07-09 15:33:25 -0700636 int device;
Ben Cheng655a7c02013-10-16 16:09:24 -0700637 int subdevice;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700638/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700639};
640struct snd_timer_ginfo {
Christopher Ferris38062f92014-07-09 15:33:25 -0700641 struct snd_timer_id tid;
Ben Cheng655a7c02013-10-16 16:09:24 -0700642 unsigned int flags;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700643/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700644 int card;
645 unsigned char id[64];
Christopher Ferris38062f92014-07-09 15:33:25 -0700646 unsigned char name[80];
Ben Cheng655a7c02013-10-16 16:09:24 -0700647 unsigned long reserved0;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700648/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700649 unsigned long resolution;
650 unsigned long resolution_min;
Christopher Ferris38062f92014-07-09 15:33:25 -0700651 unsigned long resolution_max;
Ben Cheng655a7c02013-10-16 16:09:24 -0700652 unsigned int clients;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700653/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700654 unsigned char reserved[32];
655};
Christopher Ferris38062f92014-07-09 15:33:25 -0700656struct snd_timer_gparams {
Ben Cheng655a7c02013-10-16 16:09:24 -0700657 struct snd_timer_id tid;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700658/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700659 unsigned long period_num;
660 unsigned long period_den;
Christopher Ferris38062f92014-07-09 15:33:25 -0700661 unsigned char reserved[32];
Ben Cheng655a7c02013-10-16 16:09:24 -0700662};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700663/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700664struct snd_timer_gstatus {
665 struct snd_timer_id tid;
Christopher Ferris38062f92014-07-09 15:33:25 -0700666 unsigned long resolution;
Ben Cheng655a7c02013-10-16 16:09:24 -0700667 unsigned long resolution_num;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700668/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700669 unsigned long resolution_den;
670 unsigned char reserved[32];
Christopher Ferris38062f92014-07-09 15:33:25 -0700671};
Ben Cheng655a7c02013-10-16 16:09:24 -0700672struct snd_timer_select {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700673/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700674 struct snd_timer_id id;
675 unsigned char reserved[32];
Christopher Ferris38062f92014-07-09 15:33:25 -0700676};
Ben Cheng655a7c02013-10-16 16:09:24 -0700677struct snd_timer_info {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700678/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700679 unsigned int flags;
680 int card;
Christopher Ferris38062f92014-07-09 15:33:25 -0700681 unsigned char id[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700682 unsigned char name[80];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700683/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700684 unsigned long reserved0;
685 unsigned long resolution;
Christopher Ferris38062f92014-07-09 15:33:25 -0700686 unsigned char reserved[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700687};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700688/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700689#define SNDRV_TIMER_PSFLG_AUTO (1<<0)
690#define SNDRV_TIMER_PSFLG_EXCLUSIVE (1<<1)
Christopher Ferris38062f92014-07-09 15:33:25 -0700691#define SNDRV_TIMER_PSFLG_EARLY_EVENT (1<<2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700692struct snd_timer_params {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700693/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700694 unsigned int flags;
695 unsigned int ticks;
Christopher Ferris38062f92014-07-09 15:33:25 -0700696 unsigned int queue_size;
Ben Cheng655a7c02013-10-16 16:09:24 -0700697 unsigned int reserved0;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700698/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700699 unsigned int filter;
700 unsigned char reserved[60];
Christopher Ferris38062f92014-07-09 15:33:25 -0700701};
Ben Cheng655a7c02013-10-16 16:09:24 -0700702struct snd_timer_status {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700703/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700704 struct timespec tstamp;
705 unsigned int resolution;
Christopher Ferris38062f92014-07-09 15:33:25 -0700706 unsigned int lost;
Ben Cheng655a7c02013-10-16 16:09:24 -0700707 unsigned int overrun;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700708/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700709 unsigned int queue;
710 unsigned char reserved[64];
Christopher Ferris38062f92014-07-09 15:33:25 -0700711};
Ben Cheng655a7c02013-10-16 16:09:24 -0700712#define SNDRV_TIMER_IOCTL_PVERSION _IOR('T', 0x00, int)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700713/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700714#define SNDRV_TIMER_IOCTL_NEXT_DEVICE _IOWR('T', 0x01, struct snd_timer_id)
715#define SNDRV_TIMER_IOCTL_TREAD _IOW('T', 0x02, int)
Christopher Ferris38062f92014-07-09 15:33:25 -0700716#define SNDRV_TIMER_IOCTL_GINFO _IOWR('T', 0x03, struct snd_timer_ginfo)
Ben Cheng655a7c02013-10-16 16:09:24 -0700717#define SNDRV_TIMER_IOCTL_GPARAMS _IOW('T', 0x04, struct snd_timer_gparams)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700718/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700719#define SNDRV_TIMER_IOCTL_GSTATUS _IOWR('T', 0x05, struct snd_timer_gstatus)
720#define SNDRV_TIMER_IOCTL_SELECT _IOW('T', 0x10, struct snd_timer_select)
Christopher Ferris38062f92014-07-09 15:33:25 -0700721#define SNDRV_TIMER_IOCTL_INFO _IOR('T', 0x11, struct snd_timer_info)
Ben Cheng655a7c02013-10-16 16:09:24 -0700722#define SNDRV_TIMER_IOCTL_PARAMS _IOW('T', 0x12, struct snd_timer_params)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700723/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700724#define SNDRV_TIMER_IOCTL_STATUS _IOR('T', 0x14, struct snd_timer_status)
725#define SNDRV_TIMER_IOCTL_START _IO('T', 0xa0)
Christopher Ferris38062f92014-07-09 15:33:25 -0700726#define SNDRV_TIMER_IOCTL_STOP _IO('T', 0xa1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700727#define SNDRV_TIMER_IOCTL_CONTINUE _IO('T', 0xa2)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700728/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700729#define SNDRV_TIMER_IOCTL_PAUSE _IO('T', 0xa3)
730struct snd_timer_read {
Christopher Ferris38062f92014-07-09 15:33:25 -0700731 unsigned int resolution;
Ben Cheng655a7c02013-10-16 16:09:24 -0700732 unsigned int ticks;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700733/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700734};
735enum {
Christopher Ferris38062f92014-07-09 15:33:25 -0700736 SNDRV_TIMER_EVENT_RESOLUTION = 0,
Ben Cheng655a7c02013-10-16 16:09:24 -0700737 SNDRV_TIMER_EVENT_TICK,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700738/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700739 SNDRV_TIMER_EVENT_START,
740 SNDRV_TIMER_EVENT_STOP,
Christopher Ferris38062f92014-07-09 15:33:25 -0700741 SNDRV_TIMER_EVENT_CONTINUE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700742 SNDRV_TIMER_EVENT_PAUSE,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700743/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700744 SNDRV_TIMER_EVENT_EARLY,
745 SNDRV_TIMER_EVENT_SUSPEND,
Christopher Ferris38062f92014-07-09 15:33:25 -0700746 SNDRV_TIMER_EVENT_RESUME,
Ben Cheng655a7c02013-10-16 16:09:24 -0700747 SNDRV_TIMER_EVENT_MSTART = SNDRV_TIMER_EVENT_START + 10,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700748/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700749 SNDRV_TIMER_EVENT_MSTOP = SNDRV_TIMER_EVENT_STOP + 10,
750 SNDRV_TIMER_EVENT_MCONTINUE = SNDRV_TIMER_EVENT_CONTINUE + 10,
Christopher Ferris38062f92014-07-09 15:33:25 -0700751 SNDRV_TIMER_EVENT_MPAUSE = SNDRV_TIMER_EVENT_PAUSE + 10,
Ben Cheng655a7c02013-10-16 16:09:24 -0700752 SNDRV_TIMER_EVENT_MSUSPEND = SNDRV_TIMER_EVENT_SUSPEND + 10,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700753/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700754 SNDRV_TIMER_EVENT_MRESUME = SNDRV_TIMER_EVENT_RESUME + 10,
755};
Christopher Ferris38062f92014-07-09 15:33:25 -0700756struct snd_timer_tread {
Ben Cheng655a7c02013-10-16 16:09:24 -0700757 int event;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700758/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700759 struct timespec tstamp;
760 unsigned int val;
Christopher Ferris38062f92014-07-09 15:33:25 -0700761};
Ben Cheng655a7c02013-10-16 16:09:24 -0700762#define SNDRV_CTL_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 7)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700763/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700764struct snd_ctl_card_info {
765 int card;
Christopher Ferris38062f92014-07-09 15:33:25 -0700766 int pad;
Ben Cheng655a7c02013-10-16 16:09:24 -0700767 unsigned char id[16];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700768/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700769 unsigned char driver[16];
770 unsigned char name[32];
Christopher Ferris38062f92014-07-09 15:33:25 -0700771 unsigned char longname[80];
Ben Cheng655a7c02013-10-16 16:09:24 -0700772 unsigned char reserved_[16];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700773/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700774 unsigned char mixername[80];
775 unsigned char components[128];
Christopher Ferris38062f92014-07-09 15:33:25 -0700776};
Ben Cheng655a7c02013-10-16 16:09:24 -0700777typedef int __bitwise snd_ctl_elem_type_t;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700778/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700779#define SNDRV_CTL_ELEM_TYPE_NONE ((__force snd_ctl_elem_type_t) 0)
780#define SNDRV_CTL_ELEM_TYPE_BOOLEAN ((__force snd_ctl_elem_type_t) 1)
Christopher Ferris38062f92014-07-09 15:33:25 -0700781#define SNDRV_CTL_ELEM_TYPE_INTEGER ((__force snd_ctl_elem_type_t) 2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700782#define SNDRV_CTL_ELEM_TYPE_ENUMERATED ((__force snd_ctl_elem_type_t) 3)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700783/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700784#define SNDRV_CTL_ELEM_TYPE_BYTES ((__force snd_ctl_elem_type_t) 4)
785#define SNDRV_CTL_ELEM_TYPE_IEC958 ((__force snd_ctl_elem_type_t) 5)
Christopher Ferris38062f92014-07-09 15:33:25 -0700786#define SNDRV_CTL_ELEM_TYPE_INTEGER64 ((__force snd_ctl_elem_type_t) 6)
Ben Cheng655a7c02013-10-16 16:09:24 -0700787#define SNDRV_CTL_ELEM_TYPE_LAST SNDRV_CTL_ELEM_TYPE_INTEGER64
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700788/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700789typedef int __bitwise snd_ctl_elem_iface_t;
790#define SNDRV_CTL_ELEM_IFACE_CARD ((__force snd_ctl_elem_iface_t) 0)
Christopher Ferris38062f92014-07-09 15:33:25 -0700791#define SNDRV_CTL_ELEM_IFACE_HWDEP ((__force snd_ctl_elem_iface_t) 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700792#define SNDRV_CTL_ELEM_IFACE_MIXER ((__force snd_ctl_elem_iface_t) 2)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700793/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700794#define SNDRV_CTL_ELEM_IFACE_PCM ((__force snd_ctl_elem_iface_t) 3)
795#define SNDRV_CTL_ELEM_IFACE_RAWMIDI ((__force snd_ctl_elem_iface_t) 4)
Christopher Ferris38062f92014-07-09 15:33:25 -0700796#define SNDRV_CTL_ELEM_IFACE_TIMER ((__force snd_ctl_elem_iface_t) 5)
Ben Cheng655a7c02013-10-16 16:09:24 -0700797#define SNDRV_CTL_ELEM_IFACE_SEQUENCER ((__force snd_ctl_elem_iface_t) 6)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700798/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700799#define SNDRV_CTL_ELEM_IFACE_LAST SNDRV_CTL_ELEM_IFACE_SEQUENCER
800#define SNDRV_CTL_ELEM_ACCESS_READ (1<<0)
Christopher Ferris38062f92014-07-09 15:33:25 -0700801#define SNDRV_CTL_ELEM_ACCESS_WRITE (1<<1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700802#define SNDRV_CTL_ELEM_ACCESS_READWRITE (SNDRV_CTL_ELEM_ACCESS_READ|SNDRV_CTL_ELEM_ACCESS_WRITE)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700803/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700804#define SNDRV_CTL_ELEM_ACCESS_VOLATILE (1<<2)
805#define SNDRV_CTL_ELEM_ACCESS_TIMESTAMP (1<<3)
Christopher Ferris38062f92014-07-09 15:33:25 -0700806#define SNDRV_CTL_ELEM_ACCESS_TLV_READ (1<<4)
Ben Cheng655a7c02013-10-16 16:09:24 -0700807#define SNDRV_CTL_ELEM_ACCESS_TLV_WRITE (1<<5)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700808/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700809#define SNDRV_CTL_ELEM_ACCESS_TLV_READWRITE (SNDRV_CTL_ELEM_ACCESS_TLV_READ|SNDRV_CTL_ELEM_ACCESS_TLV_WRITE)
810#define SNDRV_CTL_ELEM_ACCESS_TLV_COMMAND (1<<6)
Christopher Ferris38062f92014-07-09 15:33:25 -0700811#define SNDRV_CTL_ELEM_ACCESS_INACTIVE (1<<8)
Ben Cheng655a7c02013-10-16 16:09:24 -0700812#define SNDRV_CTL_ELEM_ACCESS_LOCK (1<<9)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700813/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700814#define SNDRV_CTL_ELEM_ACCESS_OWNER (1<<10)
815#define SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK (1<<28)
Christopher Ferris38062f92014-07-09 15:33:25 -0700816#define SNDRV_CTL_ELEM_ACCESS_USER (1<<29)
Ben Cheng655a7c02013-10-16 16:09:24 -0700817#define SNDRV_CTL_POWER_D0 0x0000
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700818/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700819#define SNDRV_CTL_POWER_D1 0x0100
820#define SNDRV_CTL_POWER_D2 0x0200
Christopher Ferris38062f92014-07-09 15:33:25 -0700821#define SNDRV_CTL_POWER_D3 0x0300
Ben Cheng655a7c02013-10-16 16:09:24 -0700822#define SNDRV_CTL_POWER_D3hot (SNDRV_CTL_POWER_D3|0x0000)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700823/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700824#define SNDRV_CTL_POWER_D3cold (SNDRV_CTL_POWER_D3|0x0001)
Christopher Ferris38062f92014-07-09 15:33:25 -0700825#define SNDRV_CTL_ELEM_ID_NAME_MAXLEN 44
Ben Cheng655a7c02013-10-16 16:09:24 -0700826struct snd_ctl_elem_id {
Ben Cheng655a7c02013-10-16 16:09:24 -0700827 unsigned int numid;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700828/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700829 snd_ctl_elem_iface_t iface;
830 unsigned int device;
831 unsigned int subdevice;
Ben Cheng655a7c02013-10-16 16:09:24 -0700832 unsigned char name[44];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700833/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700834 unsigned int index;
835};
836struct snd_ctl_elem_list {
Ben Cheng655a7c02013-10-16 16:09:24 -0700837 unsigned int offset;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700838/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700839 unsigned int space;
840 unsigned int used;
841 unsigned int count;
Ben Cheng655a7c02013-10-16 16:09:24 -0700842 struct snd_ctl_elem_id __user *pids;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700843/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700844 unsigned char reserved[50];
845};
846struct snd_ctl_elem_info {
Ben Cheng655a7c02013-10-16 16:09:24 -0700847 struct snd_ctl_elem_id id;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700848/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700849 snd_ctl_elem_type_t type;
850 unsigned int access;
851 unsigned int count;
Ben Cheng655a7c02013-10-16 16:09:24 -0700852 __kernel_pid_t owner;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700853/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700854 union {
855 struct {
856 long min;
Ben Cheng655a7c02013-10-16 16:09:24 -0700857 long max;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700858/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700859 long step;
860 } integer;
861 struct {
Ben Cheng655a7c02013-10-16 16:09:24 -0700862 long long min;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700863/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700864 long long max;
865 long long step;
866 } integer64;
Ben Cheng655a7c02013-10-16 16:09:24 -0700867 struct {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700868/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700869 unsigned int items;
870 unsigned int item;
871 char name[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700872 __u64 names_ptr;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700873/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700874 unsigned int names_length;
875 } enumerated;
876 unsigned char reserved[128];
Ben Cheng655a7c02013-10-16 16:09:24 -0700877 } value;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700878/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700879 union {
880 unsigned short d[4];
881 unsigned short *d_ptr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700882 } dimen;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700883/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700884 unsigned char reserved[64-4*sizeof(unsigned short)];
885};
886struct snd_ctl_elem_value {
Ben Cheng655a7c02013-10-16 16:09:24 -0700887 struct snd_ctl_elem_id id;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700888/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700889 unsigned int indirect: 1;
890 union {
891 union {
Ben Cheng655a7c02013-10-16 16:09:24 -0700892 long value[128];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700893/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700894 long *value_ptr;
895 } integer;
896 union {
Ben Cheng655a7c02013-10-16 16:09:24 -0700897 long long value[64];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700898/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700899 long long *value_ptr;
900 } integer64;
901 union {
Ben Cheng655a7c02013-10-16 16:09:24 -0700902 unsigned int item[128];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700903/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700904 unsigned int *item_ptr;
905 } enumerated;
906 union {
Ben Cheng655a7c02013-10-16 16:09:24 -0700907 unsigned char data[512];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700908/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700909 unsigned char *data_ptr;
910 } bytes;
911 struct snd_aes_iec958 iec958;
Ben Cheng655a7c02013-10-16 16:09:24 -0700912 } value;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700913/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700914 struct timespec tstamp;
915 unsigned char reserved[128-sizeof(struct timespec)];
916};
Ben Cheng655a7c02013-10-16 16:09:24 -0700917struct snd_ctl_tlv {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700918/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700919 unsigned int numid;
920 unsigned int length;
921 unsigned int tlv[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700922};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700923/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700924#define SNDRV_CTL_IOCTL_PVERSION _IOR('U', 0x00, int)
925#define SNDRV_CTL_IOCTL_CARD_INFO _IOR('U', 0x01, struct snd_ctl_card_info)
926#define SNDRV_CTL_IOCTL_ELEM_LIST _IOWR('U', 0x10, struct snd_ctl_elem_list)
Ben Cheng655a7c02013-10-16 16:09:24 -0700927#define SNDRV_CTL_IOCTL_ELEM_INFO _IOWR('U', 0x11, struct snd_ctl_elem_info)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700928/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700929#define SNDRV_CTL_IOCTL_ELEM_READ _IOWR('U', 0x12, struct snd_ctl_elem_value)
930#define SNDRV_CTL_IOCTL_ELEM_WRITE _IOWR('U', 0x13, struct snd_ctl_elem_value)
931#define SNDRV_CTL_IOCTL_ELEM_LOCK _IOW('U', 0x14, struct snd_ctl_elem_id)
Ben Cheng655a7c02013-10-16 16:09:24 -0700932#define SNDRV_CTL_IOCTL_ELEM_UNLOCK _IOW('U', 0x15, struct snd_ctl_elem_id)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700933/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700934#define SNDRV_CTL_IOCTL_SUBSCRIBE_EVENTS _IOWR('U', 0x16, int)
935#define SNDRV_CTL_IOCTL_ELEM_ADD _IOWR('U', 0x17, struct snd_ctl_elem_info)
936#define SNDRV_CTL_IOCTL_ELEM_REPLACE _IOWR('U', 0x18, struct snd_ctl_elem_info)
Ben Cheng655a7c02013-10-16 16:09:24 -0700937#define SNDRV_CTL_IOCTL_ELEM_REMOVE _IOWR('U', 0x19, struct snd_ctl_elem_id)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700938/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700939#define SNDRV_CTL_IOCTL_TLV_READ _IOWR('U', 0x1a, struct snd_ctl_tlv)
940#define SNDRV_CTL_IOCTL_TLV_WRITE _IOWR('U', 0x1b, struct snd_ctl_tlv)
941#define SNDRV_CTL_IOCTL_TLV_COMMAND _IOWR('U', 0x1c, struct snd_ctl_tlv)
Ben Cheng655a7c02013-10-16 16:09:24 -0700942#define SNDRV_CTL_IOCTL_HWDEP_NEXT_DEVICE _IOWR('U', 0x20, int)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700943/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700944#define SNDRV_CTL_IOCTL_HWDEP_INFO _IOR('U', 0x21, struct snd_hwdep_info)
945#define SNDRV_CTL_IOCTL_PCM_NEXT_DEVICE _IOR('U', 0x30, int)
946#define SNDRV_CTL_IOCTL_PCM_INFO _IOWR('U', 0x31, struct snd_pcm_info)
Ben Cheng655a7c02013-10-16 16:09:24 -0700947#define SNDRV_CTL_IOCTL_PCM_PREFER_SUBDEVICE _IOW('U', 0x32, int)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700948/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700949#define SNDRV_CTL_IOCTL_RAWMIDI_NEXT_DEVICE _IOWR('U', 0x40, int)
950#define SNDRV_CTL_IOCTL_RAWMIDI_INFO _IOWR('U', 0x41, struct snd_rawmidi_info)
951#define SNDRV_CTL_IOCTL_RAWMIDI_PREFER_SUBDEVICE _IOW('U', 0x42, int)
Ben Cheng655a7c02013-10-16 16:09:24 -0700952#define SNDRV_CTL_IOCTL_POWER _IOWR('U', 0xd0, int)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700953/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700954#define SNDRV_CTL_IOCTL_POWER_STATE _IOR('U', 0xd1, int)
955enum sndrv_ctl_event_type {
956 SNDRV_CTL_EVENT_ELEM = 0,
Ben Cheng655a7c02013-10-16 16:09:24 -0700957 SNDRV_CTL_EVENT_LAST = SNDRV_CTL_EVENT_ELEM,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700958/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700959};
960#define SNDRV_CTL_EVENT_MASK_VALUE (1<<0)
961#define SNDRV_CTL_EVENT_MASK_INFO (1<<1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700962#define SNDRV_CTL_EVENT_MASK_ADD (1<<2)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700963/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700964#define SNDRV_CTL_EVENT_MASK_TLV (1<<3)
965#define SNDRV_CTL_EVENT_MASK_REMOVE (~0U)
966struct snd_ctl_event {
Ben Cheng655a7c02013-10-16 16:09:24 -0700967 int type;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700968/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700969 union {
970 struct {
971 unsigned int mask;
Ben Cheng655a7c02013-10-16 16:09:24 -0700972 struct snd_ctl_elem_id id;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700973/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700974 } elem;
975 unsigned char data8[60];
976 } data;
Ben Cheng655a7c02013-10-16 16:09:24 -0700977};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700978/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700979#define SNDRV_CTL_NAME_NONE ""
980#define SNDRV_CTL_NAME_PLAYBACK "Playback "
981#define SNDRV_CTL_NAME_CAPTURE "Capture "
Ben Cheng655a7c02013-10-16 16:09:24 -0700982#define SNDRV_CTL_NAME_IEC958_NONE ""
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700983/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700984#define SNDRV_CTL_NAME_IEC958_SWITCH "Switch"
985#define SNDRV_CTL_NAME_IEC958_VOLUME "Volume"
986#define SNDRV_CTL_NAME_IEC958_DEFAULT "Default"
Ben Cheng655a7c02013-10-16 16:09:24 -0700987#define SNDRV_CTL_NAME_IEC958_MASK "Mask"
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700988/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700989#define SNDRV_CTL_NAME_IEC958_CON_MASK "Con Mask"
990#define SNDRV_CTL_NAME_IEC958_PRO_MASK "Pro Mask"
991#define SNDRV_CTL_NAME_IEC958_PCM_STREAM "PCM Stream"
Ben Cheng655a7c02013-10-16 16:09:24 -0700992#define SNDRV_CTL_NAME_IEC958(expl,direction,what) "IEC958 " expl SNDRV_CTL_NAME_##direction SNDRV_CTL_NAME_IEC958_##what
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700993/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700994#endif