blob: ee35eaf7746e9ebf34bd2c0058ea6cfe377b1c27 [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
Christopher Ferris106b3a82016-08-24 12:15:38 -070021#ifdef __linux__
Ben Cheng655a7c02013-10-16 16:09:24 -070022#include <linux/types.h>
Christopher Ferris106b3a82016-08-24 12:15:38 -070023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#else
25#include <sys/ioctl.h>
26#endif
Christopher Ferris05d08e92016-02-04 13:16:38 -080027#include <stdlib.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080029#define SNDRV_PROTOCOL_VERSION(major,minor,subminor) (((major) << 16) | ((minor) << 8) | (subminor))
Tao Baod7db5942015-01-28 10:07:51 -080030#define SNDRV_PROTOCOL_MAJOR(version) (((version) >> 16) & 0xffff)
31#define SNDRV_PROTOCOL_MINOR(version) (((version) >> 8) & 0xff)
32#define SNDRV_PROTOCOL_MICRO(version) ((version) & 0xff)
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080034#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)))
Ben Cheng655a7c02013-10-16 16:09:24 -070035struct snd_aes_iec958 {
Tao Baod7db5942015-01-28 10:07:51 -080036 unsigned char status[24];
37 unsigned char subcode[147];
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080039 unsigned char pad;
Tao Baod7db5942015-01-28 10:07:51 -080040 unsigned char dig_subframe[4];
Ben Cheng655a7c02013-10-16 16:09:24 -070041};
42struct snd_cea_861_aud_if {
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080044 unsigned char db1_ct_cc;
Tao Baod7db5942015-01-28 10:07:51 -080045 unsigned char db2_sf_ss;
46 unsigned char db3;
47 unsigned char db4_ca;
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080049 unsigned char db5_dminh_lsv;
Ben Cheng655a7c02013-10-16 16:09:24 -070050};
51#define SNDRV_HWDEP_VERSION SNDRV_PROTOCOL_VERSION(1, 0, 1)
52enum {
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080054 SNDRV_HWDEP_IFACE_OPL2 = 0,
Tao Baod7db5942015-01-28 10:07:51 -080055 SNDRV_HWDEP_IFACE_OPL3,
56 SNDRV_HWDEP_IFACE_OPL4,
57 SNDRV_HWDEP_IFACE_SB16CSP,
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080059 SNDRV_HWDEP_IFACE_EMU10K1,
Tao Baod7db5942015-01-28 10:07:51 -080060 SNDRV_HWDEP_IFACE_YSS225,
61 SNDRV_HWDEP_IFACE_ICS2115,
62 SNDRV_HWDEP_IFACE_SSCAPE,
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080064 SNDRV_HWDEP_IFACE_VX,
Tao Baod7db5942015-01-28 10:07:51 -080065 SNDRV_HWDEP_IFACE_MIXART,
66 SNDRV_HWDEP_IFACE_USX2Y,
67 SNDRV_HWDEP_IFACE_EMUX_WAVETABLE,
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080069 SNDRV_HWDEP_IFACE_BLUETOOTH,
Tao Baod7db5942015-01-28 10:07:51 -080070 SNDRV_HWDEP_IFACE_USX2Y_PCM,
71 SNDRV_HWDEP_IFACE_PCXHR,
72 SNDRV_HWDEP_IFACE_SB_RC,
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080074 SNDRV_HWDEP_IFACE_HDA,
Tao Baod7db5942015-01-28 10:07:51 -080075 SNDRV_HWDEP_IFACE_USB_STREAM,
76 SNDRV_HWDEP_IFACE_FW_DICE,
77 SNDRV_HWDEP_IFACE_FW_FIREWORKS,
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080079 SNDRV_HWDEP_IFACE_FW_BEBOB,
80 SNDRV_HWDEP_IFACE_FW_OXFW,
81 SNDRV_HWDEP_IFACE_FW_DIGI00X,
82 SNDRV_HWDEP_IFACE_FW_TASCAM,
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080084 SNDRV_HWDEP_IFACE_LINE6,
85 SNDRV_HWDEP_IFACE_LAST = SNDRV_HWDEP_IFACE_LINE6
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070086};
Christopher Ferris38062f92014-07-09 15:33:25 -070087struct snd_hwdep_info {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080089 unsigned int device;
Tao Baod7db5942015-01-28 10:07:51 -080090 int card;
91 unsigned char id[64];
92 unsigned char name[80];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080094 int iface;
Tao Baod7db5942015-01-28 10:07:51 -080095 unsigned char reserved[64];
Ben Cheng655a7c02013-10-16 16:09:24 -070096};
Christopher Ferris38062f92014-07-09 15:33:25 -070097struct snd_hwdep_dsp_status {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080099 unsigned int version;
Tao Baod7db5942015-01-28 10:07:51 -0800100 unsigned char id[32];
101 unsigned int num_dsps;
102 unsigned int dsp_loaded;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800104 unsigned int chip_ready;
Tao Baod7db5942015-01-28 10:07:51 -0800105 unsigned char reserved[16];
Ben Cheng655a7c02013-10-16 16:09:24 -0700106};
Christopher Ferris38062f92014-07-09 15:33:25 -0700107struct snd_hwdep_dsp_image {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800109 unsigned int index;
Tao Baod7db5942015-01-28 10:07:51 -0800110 unsigned char name[64];
111 unsigned char __user * image;
112 size_t length;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800114 unsigned long driver_data;
Ben Cheng655a7c02013-10-16 16:09:24 -0700115};
Tao Baod7db5942015-01-28 10:07:51 -0800116#define SNDRV_HWDEP_IOCTL_PVERSION _IOR('H', 0x00, int)
117#define SNDRV_HWDEP_IOCTL_INFO _IOR('H', 0x01, struct snd_hwdep_info)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800119#define SNDRV_HWDEP_IOCTL_DSP_STATUS _IOR('H', 0x02, struct snd_hwdep_dsp_status)
Ben Cheng655a7c02013-10-16 16:09:24 -0700120#define SNDRV_HWDEP_IOCTL_DSP_LOAD _IOW('H', 0x03, struct snd_hwdep_dsp_image)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800121#define SNDRV_PCM_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 13)
Christopher Ferris38062f92014-07-09 15:33:25 -0700122typedef unsigned long snd_pcm_uframes_t;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800124typedef signed long snd_pcm_sframes_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700125enum {
Tao Baod7db5942015-01-28 10:07:51 -0800126 SNDRV_PCM_CLASS_GENERIC = 0,
127 SNDRV_PCM_CLASS_MULTI,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800129 SNDRV_PCM_CLASS_MODEM,
Tao Baod7db5942015-01-28 10:07:51 -0800130 SNDRV_PCM_CLASS_DIGITIZER,
131 SNDRV_PCM_CLASS_LAST = SNDRV_PCM_CLASS_DIGITIZER,
Christopher Ferris38062f92014-07-09 15:33:25 -0700132};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800134enum {
Tao Baod7db5942015-01-28 10:07:51 -0800135 SNDRV_PCM_SUBCLASS_GENERIC_MIX = 0,
136 SNDRV_PCM_SUBCLASS_MULTI_MIX,
137 SNDRV_PCM_SUBCLASS_LAST = SNDRV_PCM_SUBCLASS_MULTI_MIX,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800139};
Ben Cheng655a7c02013-10-16 16:09:24 -0700140enum {
Tao Baod7db5942015-01-28 10:07:51 -0800141 SNDRV_PCM_STREAM_PLAYBACK = 0,
142 SNDRV_PCM_STREAM_CAPTURE,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800144 SNDRV_PCM_STREAM_LAST = SNDRV_PCM_STREAM_CAPTURE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700145};
146typedef int __bitwise snd_pcm_access_t;
Christopher Ferris38062f92014-07-09 15:33:25 -0700147#define SNDRV_PCM_ACCESS_MMAP_INTERLEAVED ((__force snd_pcm_access_t) 0)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800149#define SNDRV_PCM_ACCESS_MMAP_NONINTERLEAVED ((__force snd_pcm_access_t) 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700150#define SNDRV_PCM_ACCESS_MMAP_COMPLEX ((__force snd_pcm_access_t) 2)
151#define SNDRV_PCM_ACCESS_RW_INTERLEAVED ((__force snd_pcm_access_t) 3)
Christopher Ferris38062f92014-07-09 15:33:25 -0700152#define SNDRV_PCM_ACCESS_RW_NONINTERLEAVED ((__force snd_pcm_access_t) 4)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800154#define SNDRV_PCM_ACCESS_LAST SNDRV_PCM_ACCESS_RW_NONINTERLEAVED
Ben Cheng655a7c02013-10-16 16:09:24 -0700155typedef int __bitwise snd_pcm_format_t;
156#define SNDRV_PCM_FORMAT_S8 ((__force snd_pcm_format_t) 0)
Christopher Ferris38062f92014-07-09 15:33:25 -0700157#define SNDRV_PCM_FORMAT_U8 ((__force snd_pcm_format_t) 1)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800159#define SNDRV_PCM_FORMAT_S16_LE ((__force snd_pcm_format_t) 2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700160#define SNDRV_PCM_FORMAT_S16_BE ((__force snd_pcm_format_t) 3)
161#define SNDRV_PCM_FORMAT_U16_LE ((__force snd_pcm_format_t) 4)
Christopher Ferris38062f92014-07-09 15:33:25 -0700162#define SNDRV_PCM_FORMAT_U16_BE ((__force snd_pcm_format_t) 5)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800164#define SNDRV_PCM_FORMAT_S24_LE ((__force snd_pcm_format_t) 6)
Ben Cheng655a7c02013-10-16 16:09:24 -0700165#define SNDRV_PCM_FORMAT_S24_BE ((__force snd_pcm_format_t) 7)
166#define SNDRV_PCM_FORMAT_U24_LE ((__force snd_pcm_format_t) 8)
Christopher Ferris38062f92014-07-09 15:33:25 -0700167#define SNDRV_PCM_FORMAT_U24_BE ((__force snd_pcm_format_t) 9)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800169#define SNDRV_PCM_FORMAT_S32_LE ((__force snd_pcm_format_t) 10)
Ben Cheng655a7c02013-10-16 16:09:24 -0700170#define SNDRV_PCM_FORMAT_S32_BE ((__force snd_pcm_format_t) 11)
171#define SNDRV_PCM_FORMAT_U32_LE ((__force snd_pcm_format_t) 12)
Christopher Ferris38062f92014-07-09 15:33:25 -0700172#define SNDRV_PCM_FORMAT_U32_BE ((__force snd_pcm_format_t) 13)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800174#define SNDRV_PCM_FORMAT_FLOAT_LE ((__force snd_pcm_format_t) 14)
Ben Cheng655a7c02013-10-16 16:09:24 -0700175#define SNDRV_PCM_FORMAT_FLOAT_BE ((__force snd_pcm_format_t) 15)
176#define SNDRV_PCM_FORMAT_FLOAT64_LE ((__force snd_pcm_format_t) 16)
Christopher Ferris38062f92014-07-09 15:33:25 -0700177#define SNDRV_PCM_FORMAT_FLOAT64_BE ((__force snd_pcm_format_t) 17)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800179#define SNDRV_PCM_FORMAT_IEC958_SUBFRAME_LE ((__force snd_pcm_format_t) 18)
Ben Cheng655a7c02013-10-16 16:09:24 -0700180#define SNDRV_PCM_FORMAT_IEC958_SUBFRAME_BE ((__force snd_pcm_format_t) 19)
181#define SNDRV_PCM_FORMAT_MU_LAW ((__force snd_pcm_format_t) 20)
Christopher Ferris38062f92014-07-09 15:33:25 -0700182#define SNDRV_PCM_FORMAT_A_LAW ((__force snd_pcm_format_t) 21)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800184#define SNDRV_PCM_FORMAT_IMA_ADPCM ((__force snd_pcm_format_t) 22)
Ben Cheng655a7c02013-10-16 16:09:24 -0700185#define SNDRV_PCM_FORMAT_MPEG ((__force snd_pcm_format_t) 23)
186#define SNDRV_PCM_FORMAT_GSM ((__force snd_pcm_format_t) 24)
Christopher Ferris38062f92014-07-09 15:33:25 -0700187#define SNDRV_PCM_FORMAT_SPECIAL ((__force snd_pcm_format_t) 31)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800189#define SNDRV_PCM_FORMAT_S24_3LE ((__force snd_pcm_format_t) 32)
Ben Cheng655a7c02013-10-16 16:09:24 -0700190#define SNDRV_PCM_FORMAT_S24_3BE ((__force snd_pcm_format_t) 33)
191#define SNDRV_PCM_FORMAT_U24_3LE ((__force snd_pcm_format_t) 34)
Christopher Ferris38062f92014-07-09 15:33:25 -0700192#define SNDRV_PCM_FORMAT_U24_3BE ((__force snd_pcm_format_t) 35)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800194#define SNDRV_PCM_FORMAT_S20_3LE ((__force snd_pcm_format_t) 36)
Ben Cheng655a7c02013-10-16 16:09:24 -0700195#define SNDRV_PCM_FORMAT_S20_3BE ((__force snd_pcm_format_t) 37)
196#define SNDRV_PCM_FORMAT_U20_3LE ((__force snd_pcm_format_t) 38)
Christopher Ferris38062f92014-07-09 15:33:25 -0700197#define SNDRV_PCM_FORMAT_U20_3BE ((__force snd_pcm_format_t) 39)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800199#define SNDRV_PCM_FORMAT_S18_3LE ((__force snd_pcm_format_t) 40)
Ben Cheng655a7c02013-10-16 16:09:24 -0700200#define SNDRV_PCM_FORMAT_S18_3BE ((__force snd_pcm_format_t) 41)
201#define SNDRV_PCM_FORMAT_U18_3LE ((__force snd_pcm_format_t) 42)
Christopher Ferris38062f92014-07-09 15:33:25 -0700202#define SNDRV_PCM_FORMAT_U18_3BE ((__force snd_pcm_format_t) 43)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800204#define SNDRV_PCM_FORMAT_G723_24 ((__force snd_pcm_format_t) 44)
Ben Cheng655a7c02013-10-16 16:09:24 -0700205#define SNDRV_PCM_FORMAT_G723_24_1B ((__force snd_pcm_format_t) 45)
206#define SNDRV_PCM_FORMAT_G723_40 ((__force snd_pcm_format_t) 46)
Christopher Ferris38062f92014-07-09 15:33:25 -0700207#define SNDRV_PCM_FORMAT_G723_40_1B ((__force snd_pcm_format_t) 47)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800209#define SNDRV_PCM_FORMAT_DSD_U8 ((__force snd_pcm_format_t) 48)
Ben Cheng655a7c02013-10-16 16:09:24 -0700210#define SNDRV_PCM_FORMAT_DSD_U16_LE ((__force snd_pcm_format_t) 49)
Christopher Ferris82d75042015-01-26 10:57:07 -0800211#define SNDRV_PCM_FORMAT_DSD_U32_LE ((__force snd_pcm_format_t) 50)
212#define SNDRV_PCM_FORMAT_DSD_U16_BE ((__force snd_pcm_format_t) 51)
Christopher Ferris82d75042015-01-26 10:57:07 -0800213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800214#define SNDRV_PCM_FORMAT_DSD_U32_BE ((__force snd_pcm_format_t) 52)
Christopher Ferris82d75042015-01-26 10:57:07 -0800215#define SNDRV_PCM_FORMAT_LAST SNDRV_PCM_FORMAT_DSD_U32_BE
Christopher Ferris38062f92014-07-09 15:33:25 -0700216#ifdef SNDRV_LITTLE_ENDIAN
Ben Cheng655a7c02013-10-16 16:09:24 -0700217#define SNDRV_PCM_FORMAT_S16 SNDRV_PCM_FORMAT_S16_LE
Christopher Ferris82d75042015-01-26 10:57:07 -0800218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800219#define SNDRV_PCM_FORMAT_U16 SNDRV_PCM_FORMAT_U16_LE
Ben Cheng655a7c02013-10-16 16:09:24 -0700220#define SNDRV_PCM_FORMAT_S24 SNDRV_PCM_FORMAT_S24_LE
Christopher Ferris38062f92014-07-09 15:33:25 -0700221#define SNDRV_PCM_FORMAT_U24 SNDRV_PCM_FORMAT_U24_LE
Ben Cheng655a7c02013-10-16 16:09:24 -0700222#define SNDRV_PCM_FORMAT_S32 SNDRV_PCM_FORMAT_S32_LE
Christopher Ferris82d75042015-01-26 10:57:07 -0800223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800224#define SNDRV_PCM_FORMAT_U32 SNDRV_PCM_FORMAT_U32_LE
Ben Cheng655a7c02013-10-16 16:09:24 -0700225#define SNDRV_PCM_FORMAT_FLOAT SNDRV_PCM_FORMAT_FLOAT_LE
Christopher Ferris38062f92014-07-09 15:33:25 -0700226#define SNDRV_PCM_FORMAT_FLOAT64 SNDRV_PCM_FORMAT_FLOAT64_LE
Ben Cheng655a7c02013-10-16 16:09:24 -0700227#define SNDRV_PCM_FORMAT_IEC958_SUBFRAME SNDRV_PCM_FORMAT_IEC958_SUBFRAME_LE
Christopher Ferris82d75042015-01-26 10:57:07 -0800228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800229#endif
Ben Cheng655a7c02013-10-16 16:09:24 -0700230#ifdef SNDRV_BIG_ENDIAN
Christopher Ferris38062f92014-07-09 15:33:25 -0700231#define SNDRV_PCM_FORMAT_S16 SNDRV_PCM_FORMAT_S16_BE
Ben Cheng655a7c02013-10-16 16:09:24 -0700232#define SNDRV_PCM_FORMAT_U16 SNDRV_PCM_FORMAT_U16_BE
Christopher Ferris82d75042015-01-26 10:57:07 -0800233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800234#define SNDRV_PCM_FORMAT_S24 SNDRV_PCM_FORMAT_S24_BE
Ben Cheng655a7c02013-10-16 16:09:24 -0700235#define SNDRV_PCM_FORMAT_U24 SNDRV_PCM_FORMAT_U24_BE
Christopher Ferris38062f92014-07-09 15:33:25 -0700236#define SNDRV_PCM_FORMAT_S32 SNDRV_PCM_FORMAT_S32_BE
Ben Cheng655a7c02013-10-16 16:09:24 -0700237#define SNDRV_PCM_FORMAT_U32 SNDRV_PCM_FORMAT_U32_BE
Christopher Ferris82d75042015-01-26 10:57:07 -0800238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800239#define SNDRV_PCM_FORMAT_FLOAT SNDRV_PCM_FORMAT_FLOAT_BE
Ben Cheng655a7c02013-10-16 16:09:24 -0700240#define SNDRV_PCM_FORMAT_FLOAT64 SNDRV_PCM_FORMAT_FLOAT64_BE
Christopher Ferris38062f92014-07-09 15:33:25 -0700241#define SNDRV_PCM_FORMAT_IEC958_SUBFRAME SNDRV_PCM_FORMAT_IEC958_SUBFRAME_BE
Ben Cheng655a7c02013-10-16 16:09:24 -0700242#endif
Christopher Ferris82d75042015-01-26 10:57:07 -0800243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800244typedef int __bitwise snd_pcm_subformat_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700245#define SNDRV_PCM_SUBFORMAT_STD ((__force snd_pcm_subformat_t) 0)
Christopher Ferris38062f92014-07-09 15:33:25 -0700246#define SNDRV_PCM_SUBFORMAT_LAST SNDRV_PCM_SUBFORMAT_STD
Ben Cheng655a7c02013-10-16 16:09:24 -0700247#define SNDRV_PCM_INFO_MMAP 0x00000001
Christopher Ferris82d75042015-01-26 10:57:07 -0800248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800249#define SNDRV_PCM_INFO_MMAP_VALID 0x00000002
Ben Cheng655a7c02013-10-16 16:09:24 -0700250#define SNDRV_PCM_INFO_DOUBLE 0x00000004
Christopher Ferris38062f92014-07-09 15:33:25 -0700251#define SNDRV_PCM_INFO_BATCH 0x00000010
Ben Cheng655a7c02013-10-16 16:09:24 -0700252#define SNDRV_PCM_INFO_INTERLEAVED 0x00000100
Christopher Ferris82d75042015-01-26 10:57:07 -0800253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800254#define SNDRV_PCM_INFO_NONINTERLEAVED 0x00000200
Ben Cheng655a7c02013-10-16 16:09:24 -0700255#define SNDRV_PCM_INFO_COMPLEX 0x00000400
Christopher Ferris38062f92014-07-09 15:33:25 -0700256#define SNDRV_PCM_INFO_BLOCK_TRANSFER 0x00010000
Ben Cheng655a7c02013-10-16 16:09:24 -0700257#define SNDRV_PCM_INFO_OVERRANGE 0x00020000
Christopher Ferris82d75042015-01-26 10:57:07 -0800258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800259#define SNDRV_PCM_INFO_RESUME 0x00040000
Ben Cheng655a7c02013-10-16 16:09:24 -0700260#define SNDRV_PCM_INFO_PAUSE 0x00080000
Christopher Ferris38062f92014-07-09 15:33:25 -0700261#define SNDRV_PCM_INFO_HALF_DUPLEX 0x00100000
Ben Cheng655a7c02013-10-16 16:09:24 -0700262#define SNDRV_PCM_INFO_JOINT_DUPLEX 0x00200000
Christopher Ferris82d75042015-01-26 10:57:07 -0800263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800264#define SNDRV_PCM_INFO_SYNC_START 0x00400000
Ben Cheng655a7c02013-10-16 16:09:24 -0700265#define SNDRV_PCM_INFO_NO_PERIOD_WAKEUP 0x00800000
Christopher Ferris38062f92014-07-09 15:33:25 -0700266#define SNDRV_PCM_INFO_HAS_WALL_CLOCK 0x01000000
Christopher Ferris05d08e92016-02-04 13:16:38 -0800267#define SNDRV_PCM_INFO_HAS_LINK_ATIME 0x01000000
Christopher Ferris82d75042015-01-26 10:57:07 -0800268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800269#define SNDRV_PCM_INFO_HAS_LINK_ABSOLUTE_ATIME 0x02000000
Christopher Ferris05d08e92016-02-04 13:16:38 -0800270#define SNDRV_PCM_INFO_HAS_LINK_ESTIMATED_ATIME 0x04000000
271#define SNDRV_PCM_INFO_HAS_LINK_SYNCHRONIZED_ATIME 0x08000000
272#define SNDRV_PCM_INFO_DRAIN_TRIGGER 0x40000000
Christopher Ferris05d08e92016-02-04 13:16:38 -0800273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800274#define SNDRV_PCM_INFO_FIFO_IN_FRAMES 0x80000000
Christopher Ferris05d08e92016-02-04 13:16:38 -0800275typedef int __bitwise snd_pcm_state_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700276#define SNDRV_PCM_STATE_OPEN ((__force snd_pcm_state_t) 0)
Christopher Ferris38062f92014-07-09 15:33:25 -0700277#define SNDRV_PCM_STATE_SETUP ((__force snd_pcm_state_t) 1)
Christopher Ferris82d75042015-01-26 10:57:07 -0800278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800279#define SNDRV_PCM_STATE_PREPARED ((__force snd_pcm_state_t) 2)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800280#define SNDRV_PCM_STATE_RUNNING ((__force snd_pcm_state_t) 3)
Ben Cheng655a7c02013-10-16 16:09:24 -0700281#define SNDRV_PCM_STATE_XRUN ((__force snd_pcm_state_t) 4)
Christopher Ferris38062f92014-07-09 15:33:25 -0700282#define SNDRV_PCM_STATE_DRAINING ((__force snd_pcm_state_t) 5)
Christopher Ferris82d75042015-01-26 10:57:07 -0800283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800284#define SNDRV_PCM_STATE_PAUSED ((__force snd_pcm_state_t) 6)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800285#define SNDRV_PCM_STATE_SUSPENDED ((__force snd_pcm_state_t) 7)
Ben Cheng655a7c02013-10-16 16:09:24 -0700286#define SNDRV_PCM_STATE_DISCONNECTED ((__force snd_pcm_state_t) 8)
Christopher Ferris38062f92014-07-09 15:33:25 -0700287#define SNDRV_PCM_STATE_LAST SNDRV_PCM_STATE_DISCONNECTED
Christopher Ferris82d75042015-01-26 10:57:07 -0800288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800289enum {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800290 SNDRV_PCM_MMAP_OFFSET_DATA = 0x00000000,
Tao Baod7db5942015-01-28 10:07:51 -0800291 SNDRV_PCM_MMAP_OFFSET_STATUS = 0x80000000,
292 SNDRV_PCM_MMAP_OFFSET_CONTROL = 0x81000000,
Christopher Ferris82d75042015-01-26 10:57:07 -0800293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800294};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800295union snd_pcm_sync_id {
Tao Baod7db5942015-01-28 10:07:51 -0800296 unsigned char id[16];
297 unsigned short id16[8];
Christopher Ferris82d75042015-01-26 10:57:07 -0800298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800299 unsigned int id32[4];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800300};
Ben Cheng655a7c02013-10-16 16:09:24 -0700301struct snd_pcm_info {
Tao Baod7db5942015-01-28 10:07:51 -0800302 unsigned int device;
Christopher Ferris82d75042015-01-26 10:57:07 -0800303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800304 unsigned int subdevice;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800305 int stream;
Tao Baod7db5942015-01-28 10:07:51 -0800306 int card;
307 unsigned char id[64];
Christopher Ferris82d75042015-01-26 10:57:07 -0800308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800309 unsigned char name[80];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800310 unsigned char subname[32];
Tao Baod7db5942015-01-28 10:07:51 -0800311 int dev_class;
312 int dev_subclass;
Christopher Ferris82d75042015-01-26 10:57:07 -0800313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800314 unsigned int subdevices_count;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800315 unsigned int subdevices_avail;
Tao Baod7db5942015-01-28 10:07:51 -0800316 union snd_pcm_sync_id sync;
317 unsigned char reserved[64];
Christopher Ferris82d75042015-01-26 10:57:07 -0800318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800319};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800320typedef int snd_pcm_hw_param_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700321#define SNDRV_PCM_HW_PARAM_ACCESS 0
Christopher Ferris38062f92014-07-09 15:33:25 -0700322#define SNDRV_PCM_HW_PARAM_FORMAT 1
Christopher Ferris82d75042015-01-26 10:57:07 -0800323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800324#define SNDRV_PCM_HW_PARAM_SUBFORMAT 2
Christopher Ferris05d08e92016-02-04 13:16:38 -0800325#define SNDRV_PCM_HW_PARAM_FIRST_MASK SNDRV_PCM_HW_PARAM_ACCESS
Ben Cheng655a7c02013-10-16 16:09:24 -0700326#define SNDRV_PCM_HW_PARAM_LAST_MASK SNDRV_PCM_HW_PARAM_SUBFORMAT
Christopher Ferris38062f92014-07-09 15:33:25 -0700327#define SNDRV_PCM_HW_PARAM_SAMPLE_BITS 8
Christopher Ferris82d75042015-01-26 10:57:07 -0800328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800329#define SNDRV_PCM_HW_PARAM_FRAME_BITS 9
Christopher Ferris05d08e92016-02-04 13:16:38 -0800330#define SNDRV_PCM_HW_PARAM_CHANNELS 10
Ben Cheng655a7c02013-10-16 16:09:24 -0700331#define SNDRV_PCM_HW_PARAM_RATE 11
Christopher Ferris38062f92014-07-09 15:33:25 -0700332#define SNDRV_PCM_HW_PARAM_PERIOD_TIME 12
Christopher Ferris82d75042015-01-26 10:57:07 -0800333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800334#define SNDRV_PCM_HW_PARAM_PERIOD_SIZE 13
Christopher Ferris05d08e92016-02-04 13:16:38 -0800335#define SNDRV_PCM_HW_PARAM_PERIOD_BYTES 14
Ben Cheng655a7c02013-10-16 16:09:24 -0700336#define SNDRV_PCM_HW_PARAM_PERIODS 15
Christopher Ferris38062f92014-07-09 15:33:25 -0700337#define SNDRV_PCM_HW_PARAM_BUFFER_TIME 16
Christopher Ferris82d75042015-01-26 10:57:07 -0800338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800339#define SNDRV_PCM_HW_PARAM_BUFFER_SIZE 17
Christopher Ferris05d08e92016-02-04 13:16:38 -0800340#define SNDRV_PCM_HW_PARAM_BUFFER_BYTES 18
Ben Cheng655a7c02013-10-16 16:09:24 -0700341#define SNDRV_PCM_HW_PARAM_TICK_TIME 19
Christopher Ferris38062f92014-07-09 15:33:25 -0700342#define SNDRV_PCM_HW_PARAM_FIRST_INTERVAL SNDRV_PCM_HW_PARAM_SAMPLE_BITS
Christopher Ferris82d75042015-01-26 10:57:07 -0800343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800344#define SNDRV_PCM_HW_PARAM_LAST_INTERVAL SNDRV_PCM_HW_PARAM_TICK_TIME
Christopher Ferris05d08e92016-02-04 13:16:38 -0800345#define SNDRV_PCM_HW_PARAMS_NORESAMPLE (1 << 0)
Tao Baod7db5942015-01-28 10:07:51 -0800346#define SNDRV_PCM_HW_PARAMS_EXPORT_BUFFER (1 << 1)
347#define SNDRV_PCM_HW_PARAMS_NO_PERIOD_WAKEUP (1 << 2)
Christopher Ferris82d75042015-01-26 10:57:07 -0800348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800349struct snd_interval {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800350 unsigned int min, max;
Tao Baod7db5942015-01-28 10:07:51 -0800351 unsigned int openmin : 1, openmax : 1, integer : 1, empty : 1;
Ben Cheng655a7c02013-10-16 16:09:24 -0700352};
Christopher Ferris82d75042015-01-26 10:57:07 -0800353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800354#define SNDRV_MASK_MAX 256
Christopher Ferris05d08e92016-02-04 13:16:38 -0800355struct snd_mask {
Tao Baod7db5942015-01-28 10:07:51 -0800356 __u32 bits[(SNDRV_MASK_MAX + 31) / 32];
Ben Cheng655a7c02013-10-16 16:09:24 -0700357};
Christopher Ferris82d75042015-01-26 10:57:07 -0800358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800359struct snd_pcm_hw_params {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800360 unsigned int flags;
Tao Baod7db5942015-01-28 10:07:51 -0800361 struct snd_mask masks[SNDRV_PCM_HW_PARAM_LAST_MASK - SNDRV_PCM_HW_PARAM_FIRST_MASK + 1];
362 struct snd_mask mres[5];
Christopher Ferris82d75042015-01-26 10:57:07 -0800363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800364 struct snd_interval intervals[SNDRV_PCM_HW_PARAM_LAST_INTERVAL - SNDRV_PCM_HW_PARAM_FIRST_INTERVAL + 1];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800365 struct snd_interval ires[9];
Tao Baod7db5942015-01-28 10:07:51 -0800366 unsigned int rmask;
367 unsigned int cmask;
Christopher Ferris82d75042015-01-26 10:57:07 -0800368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800369 unsigned int info;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800370 unsigned int msbits;
Tao Baod7db5942015-01-28 10:07:51 -0800371 unsigned int rate_num;
372 unsigned int rate_den;
Christopher Ferris82d75042015-01-26 10:57:07 -0800373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800374 snd_pcm_uframes_t fifo_size;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800375 unsigned char reserved[64];
Christopher Ferris38062f92014-07-09 15:33:25 -0700376};
Ben Cheng655a7c02013-10-16 16:09:24 -0700377enum {
Christopher Ferris82d75042015-01-26 10:57:07 -0800378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800379 SNDRV_PCM_TSTAMP_NONE = 0,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800380 SNDRV_PCM_TSTAMP_ENABLE,
Tao Baod7db5942015-01-28 10:07:51 -0800381 SNDRV_PCM_TSTAMP_LAST = SNDRV_PCM_TSTAMP_ENABLE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700382};
Christopher Ferris82d75042015-01-26 10:57:07 -0800383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800384struct snd_pcm_sw_params {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800385 int tstamp_mode;
Tao Baod7db5942015-01-28 10:07:51 -0800386 unsigned int period_step;
387 unsigned int sleep_min;
Christopher Ferris82d75042015-01-26 10:57:07 -0800388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800389 snd_pcm_uframes_t avail_min;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800390 snd_pcm_uframes_t xfer_align;
Tao Baod7db5942015-01-28 10:07:51 -0800391 snd_pcm_uframes_t start_threshold;
392 snd_pcm_uframes_t stop_threshold;
Christopher Ferris82d75042015-01-26 10:57:07 -0800393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800394 snd_pcm_uframes_t silence_threshold;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800395 snd_pcm_uframes_t silence_size;
Tao Baod7db5942015-01-28 10:07:51 -0800396 snd_pcm_uframes_t boundary;
397 unsigned int proto;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800399 unsigned int tstamp_type;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800400 unsigned char reserved[56];
Ben Cheng655a7c02013-10-16 16:09:24 -0700401};
402struct snd_pcm_channel_info {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800404 unsigned int channel;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800405 __kernel_off_t offset;
Tao Baod7db5942015-01-28 10:07:51 -0800406 unsigned int first;
407 unsigned int step;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800409};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800410enum {
411 SNDRV_PCM_AUDIO_TSTAMP_TYPE_COMPAT = 0,
412 SNDRV_PCM_AUDIO_TSTAMP_TYPE_DEFAULT = 1,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800414 SNDRV_PCM_AUDIO_TSTAMP_TYPE_LINK = 2,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800415 SNDRV_PCM_AUDIO_TSTAMP_TYPE_LINK_ABSOLUTE = 3,
416 SNDRV_PCM_AUDIO_TSTAMP_TYPE_LINK_ESTIMATED = 4,
417 SNDRV_PCM_AUDIO_TSTAMP_TYPE_LINK_SYNCHRONIZED = 5,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800419 SNDRV_PCM_AUDIO_TSTAMP_TYPE_LAST = SNDRV_PCM_AUDIO_TSTAMP_TYPE_LINK_SYNCHRONIZED
Christopher Ferris05d08e92016-02-04 13:16:38 -0800420};
421struct snd_pcm_status {
Tao Baod7db5942015-01-28 10:07:51 -0800422 snd_pcm_state_t state;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800424 struct timespec trigger_tstamp;
Tao Baod7db5942015-01-28 10:07:51 -0800425 struct timespec tstamp;
426 snd_pcm_uframes_t appl_ptr;
Tao Baod7db5942015-01-28 10:07:51 -0800427 snd_pcm_uframes_t hw_ptr;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800429 snd_pcm_sframes_t delay;
Tao Baod7db5942015-01-28 10:07:51 -0800430 snd_pcm_uframes_t avail;
431 snd_pcm_uframes_t avail_max;
Tao Baod7db5942015-01-28 10:07:51 -0800432 snd_pcm_uframes_t overrange;
Tao Baod7db5942015-01-28 10:07:51 -0800433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800434 snd_pcm_state_t suspended_state;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800435 __u32 audio_tstamp_data;
436 struct timespec audio_tstamp;
437 struct timespec driver_tstamp;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800439 __u32 audio_tstamp_accuracy;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800440 unsigned char reserved[52 - 2 * sizeof(struct timespec)];
Ben Cheng655a7c02013-10-16 16:09:24 -0700441};
Christopher Ferris38062f92014-07-09 15:33:25 -0700442struct snd_pcm_mmap_status {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800444 snd_pcm_state_t state;
Tao Baod7db5942015-01-28 10:07:51 -0800445 int pad1;
446 snd_pcm_uframes_t hw_ptr;
447 struct timespec tstamp;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800449 snd_pcm_state_t suspended_state;
Tao Baod7db5942015-01-28 10:07:51 -0800450 struct timespec audio_tstamp;
Ben Cheng655a7c02013-10-16 16:09:24 -0700451};
Christopher Ferris38062f92014-07-09 15:33:25 -0700452struct snd_pcm_mmap_control {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800454 snd_pcm_uframes_t appl_ptr;
Tao Baod7db5942015-01-28 10:07:51 -0800455 snd_pcm_uframes_t avail_min;
Ben Cheng655a7c02013-10-16 16:09:24 -0700456};
Tao Baod7db5942015-01-28 10:07:51 -0800457#define SNDRV_PCM_SYNC_PTR_HWSYNC (1 << 0)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800459#define SNDRV_PCM_SYNC_PTR_APPL (1 << 1)
Tao Baod7db5942015-01-28 10:07:51 -0800460#define SNDRV_PCM_SYNC_PTR_AVAIL_MIN (1 << 2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700461struct snd_pcm_sync_ptr {
Tao Baod7db5942015-01-28 10:07:51 -0800462 unsigned int flags;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800464 union {
Tao Baod7db5942015-01-28 10:07:51 -0800465 struct snd_pcm_mmap_status status;
466 unsigned char reserved[64];
467 } s;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800469 union {
Tao Baod7db5942015-01-28 10:07:51 -0800470 struct snd_pcm_mmap_control control;
471 unsigned char reserved[64];
472 } c;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800474};
Tao Baod7db5942015-01-28 10:07:51 -0800475struct snd_xferi {
476 snd_pcm_sframes_t result;
477 void __user * buf;
Tao Baod7db5942015-01-28 10:07:51 -0800478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800479 snd_pcm_uframes_t frames;
Ben Cheng655a7c02013-10-16 16:09:24 -0700480};
481struct snd_xfern {
Tao Baod7db5942015-01-28 10:07:51 -0800482 snd_pcm_sframes_t result;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800484 void __user * __user * bufs;
Tao Baod7db5942015-01-28 10:07:51 -0800485 snd_pcm_uframes_t frames;
Ben Cheng655a7c02013-10-16 16:09:24 -0700486};
Christopher Ferris38062f92014-07-09 15:33:25 -0700487enum {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800489 SNDRV_PCM_TSTAMP_TYPE_GETTIMEOFDAY = 0,
Tao Baod7db5942015-01-28 10:07:51 -0800490 SNDRV_PCM_TSTAMP_TYPE_MONOTONIC,
491 SNDRV_PCM_TSTAMP_TYPE_MONOTONIC_RAW,
492 SNDRV_PCM_TSTAMP_TYPE_LAST = SNDRV_PCM_TSTAMP_TYPE_MONOTONIC_RAW,
Tao Baod7db5942015-01-28 10:07:51 -0800493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800494};
Ben Cheng655a7c02013-10-16 16:09:24 -0700495enum {
Tao Baod7db5942015-01-28 10:07:51 -0800496 SNDRV_CHMAP_UNKNOWN = 0,
497 SNDRV_CHMAP_NA,
Christopher Ferris82d75042015-01-26 10:57:07 -0800498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800499 SNDRV_CHMAP_MONO,
Tao Baod7db5942015-01-28 10:07:51 -0800500 SNDRV_CHMAP_FL,
501 SNDRV_CHMAP_FR,
502 SNDRV_CHMAP_RL,
Christopher Ferris82d75042015-01-26 10:57:07 -0800503/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800504 SNDRV_CHMAP_RR,
Tao Baod7db5942015-01-28 10:07:51 -0800505 SNDRV_CHMAP_FC,
506 SNDRV_CHMAP_LFE,
507 SNDRV_CHMAP_SL,
Christopher Ferris82d75042015-01-26 10:57:07 -0800508/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800509 SNDRV_CHMAP_SR,
Tao Baod7db5942015-01-28 10:07:51 -0800510 SNDRV_CHMAP_RC,
511 SNDRV_CHMAP_FLC,
512 SNDRV_CHMAP_FRC,
Christopher Ferris82d75042015-01-26 10:57:07 -0800513/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800514 SNDRV_CHMAP_RLC,
Tao Baod7db5942015-01-28 10:07:51 -0800515 SNDRV_CHMAP_RRC,
516 SNDRV_CHMAP_FLW,
517 SNDRV_CHMAP_FRW,
Christopher Ferris82d75042015-01-26 10:57:07 -0800518/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800519 SNDRV_CHMAP_FLH,
Tao Baod7db5942015-01-28 10:07:51 -0800520 SNDRV_CHMAP_FCH,
521 SNDRV_CHMAP_FRH,
522 SNDRV_CHMAP_TC,
Christopher Ferris82d75042015-01-26 10:57:07 -0800523/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800524 SNDRV_CHMAP_TFL,
Tao Baod7db5942015-01-28 10:07:51 -0800525 SNDRV_CHMAP_TFR,
526 SNDRV_CHMAP_TFC,
527 SNDRV_CHMAP_TRL,
Christopher Ferris82d75042015-01-26 10:57:07 -0800528/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800529 SNDRV_CHMAP_TRR,
Tao Baod7db5942015-01-28 10:07:51 -0800530 SNDRV_CHMAP_TRC,
531 SNDRV_CHMAP_TFLC,
532 SNDRV_CHMAP_TFRC,
Christopher Ferris82d75042015-01-26 10:57:07 -0800533/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800534 SNDRV_CHMAP_TSL,
Tao Baod7db5942015-01-28 10:07:51 -0800535 SNDRV_CHMAP_TSR,
536 SNDRV_CHMAP_LLFE,
537 SNDRV_CHMAP_RLFE,
Christopher Ferris82d75042015-01-26 10:57:07 -0800538/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800539 SNDRV_CHMAP_BC,
Tao Baod7db5942015-01-28 10:07:51 -0800540 SNDRV_CHMAP_BLC,
541 SNDRV_CHMAP_BRC,
542 SNDRV_CHMAP_LAST = SNDRV_CHMAP_BRC,
Tao Baod7db5942015-01-28 10:07:51 -0800543/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800544};
Ben Cheng655a7c02013-10-16 16:09:24 -0700545#define SNDRV_CHMAP_POSITION_MASK 0xffff
546#define SNDRV_CHMAP_PHASE_INVERSE (0x01 << 16)
547#define SNDRV_CHMAP_DRIVER_SPEC (0x02 << 16)
Tao Baod7db5942015-01-28 10:07:51 -0800548/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800549#define SNDRV_PCM_IOCTL_PVERSION _IOR('A', 0x00, int)
Ben Cheng655a7c02013-10-16 16:09:24 -0700550#define SNDRV_PCM_IOCTL_INFO _IOR('A', 0x01, struct snd_pcm_info)
551#define SNDRV_PCM_IOCTL_TSTAMP _IOW('A', 0x02, int)
552#define SNDRV_PCM_IOCTL_TTSTAMP _IOW('A', 0x03, int)
Tao Baod7db5942015-01-28 10:07:51 -0800553/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800554#define SNDRV_PCM_IOCTL_HW_REFINE _IOWR('A', 0x10, struct snd_pcm_hw_params)
Ben Cheng655a7c02013-10-16 16:09:24 -0700555#define SNDRV_PCM_IOCTL_HW_PARAMS _IOWR('A', 0x11, struct snd_pcm_hw_params)
556#define SNDRV_PCM_IOCTL_HW_FREE _IO('A', 0x12)
557#define SNDRV_PCM_IOCTL_SW_PARAMS _IOWR('A', 0x13, struct snd_pcm_sw_params)
Tao Baod7db5942015-01-28 10:07:51 -0800558/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800559#define SNDRV_PCM_IOCTL_STATUS _IOR('A', 0x20, struct snd_pcm_status)
Ben Cheng655a7c02013-10-16 16:09:24 -0700560#define SNDRV_PCM_IOCTL_DELAY _IOR('A', 0x21, snd_pcm_sframes_t)
561#define SNDRV_PCM_IOCTL_HWSYNC _IO('A', 0x22)
562#define SNDRV_PCM_IOCTL_SYNC_PTR _IOWR('A', 0x23, struct snd_pcm_sync_ptr)
Tao Baod7db5942015-01-28 10:07:51 -0800563/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800564#define SNDRV_PCM_IOCTL_STATUS_EXT _IOWR('A', 0x24, struct snd_pcm_status)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800565#define SNDRV_PCM_IOCTL_CHANNEL_INFO _IOR('A', 0x32, struct snd_pcm_channel_info)
Ben Cheng655a7c02013-10-16 16:09:24 -0700566#define SNDRV_PCM_IOCTL_PREPARE _IO('A', 0x40)
567#define SNDRV_PCM_IOCTL_RESET _IO('A', 0x41)
Tao Baod7db5942015-01-28 10:07:51 -0800568/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800569#define SNDRV_PCM_IOCTL_START _IO('A', 0x42)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800570#define SNDRV_PCM_IOCTL_DROP _IO('A', 0x43)
Ben Cheng655a7c02013-10-16 16:09:24 -0700571#define SNDRV_PCM_IOCTL_DRAIN _IO('A', 0x44)
572#define SNDRV_PCM_IOCTL_PAUSE _IOW('A', 0x45, int)
Tao Baod7db5942015-01-28 10:07:51 -0800573/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800574#define SNDRV_PCM_IOCTL_REWIND _IOW('A', 0x46, snd_pcm_uframes_t)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800575#define SNDRV_PCM_IOCTL_RESUME _IO('A', 0x47)
Ben Cheng655a7c02013-10-16 16:09:24 -0700576#define SNDRV_PCM_IOCTL_XRUN _IO('A', 0x48)
577#define SNDRV_PCM_IOCTL_FORWARD _IOW('A', 0x49, snd_pcm_uframes_t)
Tao Baod7db5942015-01-28 10:07:51 -0800578/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800579#define SNDRV_PCM_IOCTL_WRITEI_FRAMES _IOW('A', 0x50, struct snd_xferi)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800580#define SNDRV_PCM_IOCTL_READI_FRAMES _IOR('A', 0x51, struct snd_xferi)
Ben Cheng655a7c02013-10-16 16:09:24 -0700581#define SNDRV_PCM_IOCTL_WRITEN_FRAMES _IOW('A', 0x52, struct snd_xfern)
582#define SNDRV_PCM_IOCTL_READN_FRAMES _IOR('A', 0x53, struct snd_xfern)
Tao Baod7db5942015-01-28 10:07:51 -0800583/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800584#define SNDRV_PCM_IOCTL_LINK _IOW('A', 0x60, int)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800585#define SNDRV_PCM_IOCTL_UNLINK _IO('A', 0x61)
Ben Cheng655a7c02013-10-16 16:09:24 -0700586#define SNDRV_RAWMIDI_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 0)
587enum {
Christopher Ferris82d75042015-01-26 10:57:07 -0800588/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800589 SNDRV_RAWMIDI_STREAM_OUTPUT = 0,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800590 SNDRV_RAWMIDI_STREAM_INPUT,
Tao Baod7db5942015-01-28 10:07:51 -0800591 SNDRV_RAWMIDI_STREAM_LAST = SNDRV_RAWMIDI_STREAM_INPUT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700592};
Tao Baod7db5942015-01-28 10:07:51 -0800593/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800594#define SNDRV_RAWMIDI_INFO_OUTPUT 0x00000001
Christopher Ferris05d08e92016-02-04 13:16:38 -0800595#define SNDRV_RAWMIDI_INFO_INPUT 0x00000002
Ben Cheng655a7c02013-10-16 16:09:24 -0700596#define SNDRV_RAWMIDI_INFO_DUPLEX 0x00000004
597struct snd_rawmidi_info {
Christopher Ferris82d75042015-01-26 10:57:07 -0800598/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800599 unsigned int device;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800600 unsigned int subdevice;
Tao Baod7db5942015-01-28 10:07:51 -0800601 int stream;
602 int card;
Christopher Ferris82d75042015-01-26 10:57:07 -0800603/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800604 unsigned int flags;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800605 unsigned char id[64];
Tao Baod7db5942015-01-28 10:07:51 -0800606 unsigned char name[80];
607 unsigned char subname[32];
Christopher Ferris82d75042015-01-26 10:57:07 -0800608/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800609 unsigned int subdevices_count;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800610 unsigned int subdevices_avail;
Tao Baod7db5942015-01-28 10:07:51 -0800611 unsigned char reserved[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700612};
Christopher Ferris82d75042015-01-26 10:57:07 -0800613/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800614struct snd_rawmidi_params {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800615 int stream;
Tao Baod7db5942015-01-28 10:07:51 -0800616 size_t buffer_size;
617 size_t avail_min;
Christopher Ferris82d75042015-01-26 10:57:07 -0800618/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800619 unsigned int no_active_sensing : 1;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800620 unsigned char reserved[16];
Ben Cheng655a7c02013-10-16 16:09:24 -0700621};
622struct snd_rawmidi_status {
Christopher Ferris82d75042015-01-26 10:57:07 -0800623/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800624 int stream;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800625 struct timespec tstamp;
Tao Baod7db5942015-01-28 10:07:51 -0800626 size_t avail;
627 size_t xruns;
Tao Baod7db5942015-01-28 10:07:51 -0800628/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800629 unsigned char reserved[16];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800630};
Ben Cheng655a7c02013-10-16 16:09:24 -0700631#define SNDRV_RAWMIDI_IOCTL_PVERSION _IOR('W', 0x00, int)
632#define SNDRV_RAWMIDI_IOCTL_INFO _IOR('W', 0x01, struct snd_rawmidi_info)
Tao Baod7db5942015-01-28 10:07:51 -0800633/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800634#define SNDRV_RAWMIDI_IOCTL_PARAMS _IOWR('W', 0x10, struct snd_rawmidi_params)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800635#define SNDRV_RAWMIDI_IOCTL_STATUS _IOWR('W', 0x20, struct snd_rawmidi_status)
Ben Cheng655a7c02013-10-16 16:09:24 -0700636#define SNDRV_RAWMIDI_IOCTL_DROP _IOW('W', 0x30, int)
637#define SNDRV_RAWMIDI_IOCTL_DRAIN _IOW('W', 0x31, int)
Christopher Ferris82d75042015-01-26 10:57:07 -0800638/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800639#define SNDRV_TIMER_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 6)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800640enum {
Tao Baod7db5942015-01-28 10:07:51 -0800641 SNDRV_TIMER_CLASS_NONE = - 1,
642 SNDRV_TIMER_CLASS_SLAVE = 0,
Tao Baod7db5942015-01-28 10:07:51 -0800643/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800644 SNDRV_TIMER_CLASS_GLOBAL,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800645 SNDRV_TIMER_CLASS_CARD,
Tao Baod7db5942015-01-28 10:07:51 -0800646 SNDRV_TIMER_CLASS_PCM,
647 SNDRV_TIMER_CLASS_LAST = SNDRV_TIMER_CLASS_PCM,
Christopher Ferris82d75042015-01-26 10:57:07 -0800648/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800649};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800650enum {
Tao Baod7db5942015-01-28 10:07:51 -0800651 SNDRV_TIMER_SCLASS_NONE = 0,
652 SNDRV_TIMER_SCLASS_APPLICATION,
Tao Baod7db5942015-01-28 10:07:51 -0800653/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800654 SNDRV_TIMER_SCLASS_SEQUENCER,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800655 SNDRV_TIMER_SCLASS_OSS_SEQUENCER,
Tao Baod7db5942015-01-28 10:07:51 -0800656 SNDRV_TIMER_SCLASS_LAST = SNDRV_TIMER_SCLASS_OSS_SEQUENCER,
Ben Cheng655a7c02013-10-16 16:09:24 -0700657};
Tao Baod7db5942015-01-28 10:07:51 -0800658/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800659#define SNDRV_TIMER_GLOBAL_SYSTEM 0
Christopher Ferris05d08e92016-02-04 13:16:38 -0800660#define SNDRV_TIMER_GLOBAL_RTC 1
Ben Cheng655a7c02013-10-16 16:09:24 -0700661#define SNDRV_TIMER_GLOBAL_HPET 2
662#define SNDRV_TIMER_GLOBAL_HRTIMER 3
Christopher Ferris82d75042015-01-26 10:57:07 -0800663/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800664#define SNDRV_TIMER_FLG_SLAVE (1 << 0)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800665struct snd_timer_id {
Tao Baod7db5942015-01-28 10:07:51 -0800666 int dev_class;
667 int dev_sclass;
Tao Baod7db5942015-01-28 10:07:51 -0800668/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800669 int card;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800670 int device;
Tao Baod7db5942015-01-28 10:07:51 -0800671 int subdevice;
Ben Cheng655a7c02013-10-16 16:09:24 -0700672};
Christopher Ferris82d75042015-01-26 10:57:07 -0800673/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800674struct snd_timer_ginfo {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800675 struct snd_timer_id tid;
Tao Baod7db5942015-01-28 10:07:51 -0800676 unsigned int flags;
677 int card;
Christopher Ferris82d75042015-01-26 10:57:07 -0800678/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800679 unsigned char id[64];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800680 unsigned char name[80];
Tao Baod7db5942015-01-28 10:07:51 -0800681 unsigned long reserved0;
682 unsigned long resolution;
Christopher Ferris82d75042015-01-26 10:57:07 -0800683/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800684 unsigned long resolution_min;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800685 unsigned long resolution_max;
Tao Baod7db5942015-01-28 10:07:51 -0800686 unsigned int clients;
687 unsigned char reserved[32];
Christopher Ferris82d75042015-01-26 10:57:07 -0800688/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800689};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800690struct snd_timer_gparams {
Tao Baod7db5942015-01-28 10:07:51 -0800691 struct snd_timer_id tid;
692 unsigned long period_num;
Tao Baod7db5942015-01-28 10:07:51 -0800693/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800694 unsigned long period_den;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800695 unsigned char reserved[32];
Ben Cheng655a7c02013-10-16 16:09:24 -0700696};
697struct snd_timer_gstatus {
Christopher Ferris82d75042015-01-26 10:57:07 -0800698/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800699 struct snd_timer_id tid;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800700 unsigned long resolution;
Tao Baod7db5942015-01-28 10:07:51 -0800701 unsigned long resolution_num;
702 unsigned long resolution_den;
Tao Baod7db5942015-01-28 10:07:51 -0800703/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800704 unsigned char reserved[32];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800705};
Ben Cheng655a7c02013-10-16 16:09:24 -0700706struct snd_timer_select {
Tao Baod7db5942015-01-28 10:07:51 -0800707 struct snd_timer_id id;
Tao Baod7db5942015-01-28 10:07:51 -0800708/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800709 unsigned char reserved[32];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800710};
Ben Cheng655a7c02013-10-16 16:09:24 -0700711struct snd_timer_info {
Tao Baod7db5942015-01-28 10:07:51 -0800712 unsigned int flags;
Christopher Ferris82d75042015-01-26 10:57:07 -0800713/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800714 int card;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800715 unsigned char id[64];
Tao Baod7db5942015-01-28 10:07:51 -0800716 unsigned char name[80];
717 unsigned long reserved0;
Christopher Ferris82d75042015-01-26 10:57:07 -0800718/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800719 unsigned long resolution;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800720 unsigned char reserved[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700721};
Tao Baod7db5942015-01-28 10:07:51 -0800722#define SNDRV_TIMER_PSFLG_AUTO (1 << 0)
Christopher Ferris82d75042015-01-26 10:57:07 -0800723/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800724#define SNDRV_TIMER_PSFLG_EXCLUSIVE (1 << 1)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800725#define SNDRV_TIMER_PSFLG_EARLY_EVENT (1 << 2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700726struct snd_timer_params {
Tao Baod7db5942015-01-28 10:07:51 -0800727 unsigned int flags;
Christopher Ferris82d75042015-01-26 10:57:07 -0800728/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800729 unsigned int ticks;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800730 unsigned int queue_size;
Tao Baod7db5942015-01-28 10:07:51 -0800731 unsigned int reserved0;
732 unsigned int filter;
Tao Baod7db5942015-01-28 10:07:51 -0800733/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800734 unsigned char reserved[60];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800735};
Ben Cheng655a7c02013-10-16 16:09:24 -0700736struct snd_timer_status {
Tao Baod7db5942015-01-28 10:07:51 -0800737 struct timespec tstamp;
Christopher Ferris82d75042015-01-26 10:57:07 -0800738/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800739 unsigned int resolution;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800740 unsigned int lost;
Tao Baod7db5942015-01-28 10:07:51 -0800741 unsigned int overrun;
742 unsigned int queue;
Tao Baod7db5942015-01-28 10:07:51 -0800743/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800744 unsigned char reserved[64];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800745};
Ben Cheng655a7c02013-10-16 16:09:24 -0700746#define SNDRV_TIMER_IOCTL_PVERSION _IOR('T', 0x00, int)
747#define SNDRV_TIMER_IOCTL_NEXT_DEVICE _IOWR('T', 0x01, struct snd_timer_id)
Tao Baod7db5942015-01-28 10:07:51 -0800748/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800749#define SNDRV_TIMER_IOCTL_TREAD _IOW('T', 0x02, int)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800750#define SNDRV_TIMER_IOCTL_GINFO _IOWR('T', 0x03, struct snd_timer_ginfo)
Ben Cheng655a7c02013-10-16 16:09:24 -0700751#define SNDRV_TIMER_IOCTL_GPARAMS _IOW('T', 0x04, struct snd_timer_gparams)
752#define SNDRV_TIMER_IOCTL_GSTATUS _IOWR('T', 0x05, struct snd_timer_gstatus)
Tao Baod7db5942015-01-28 10:07:51 -0800753/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800754#define SNDRV_TIMER_IOCTL_SELECT _IOW('T', 0x10, struct snd_timer_select)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800755#define SNDRV_TIMER_IOCTL_INFO _IOR('T', 0x11, struct snd_timer_info)
Ben Cheng655a7c02013-10-16 16:09:24 -0700756#define SNDRV_TIMER_IOCTL_PARAMS _IOW('T', 0x12, struct snd_timer_params)
757#define SNDRV_TIMER_IOCTL_STATUS _IOR('T', 0x14, struct snd_timer_status)
Tao Baod7db5942015-01-28 10:07:51 -0800758/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800759#define SNDRV_TIMER_IOCTL_START _IO('T', 0xa0)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800760#define SNDRV_TIMER_IOCTL_STOP _IO('T', 0xa1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700761#define SNDRV_TIMER_IOCTL_CONTINUE _IO('T', 0xa2)
762#define SNDRV_TIMER_IOCTL_PAUSE _IO('T', 0xa3)
Christopher Ferris82d75042015-01-26 10:57:07 -0800763/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800764struct snd_timer_read {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800765 unsigned int resolution;
Tao Baod7db5942015-01-28 10:07:51 -0800766 unsigned int ticks;
Ben Cheng655a7c02013-10-16 16:09:24 -0700767};
Christopher Ferris82d75042015-01-26 10:57:07 -0800768/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800769enum {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800770 SNDRV_TIMER_EVENT_RESOLUTION = 0,
Tao Baod7db5942015-01-28 10:07:51 -0800771 SNDRV_TIMER_EVENT_TICK,
772 SNDRV_TIMER_EVENT_START,
Christopher Ferris82d75042015-01-26 10:57:07 -0800773/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800774 SNDRV_TIMER_EVENT_STOP,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800775 SNDRV_TIMER_EVENT_CONTINUE,
Tao Baod7db5942015-01-28 10:07:51 -0800776 SNDRV_TIMER_EVENT_PAUSE,
777 SNDRV_TIMER_EVENT_EARLY,
Christopher Ferris82d75042015-01-26 10:57:07 -0800778/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800779 SNDRV_TIMER_EVENT_SUSPEND,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800780 SNDRV_TIMER_EVENT_RESUME,
Tao Baod7db5942015-01-28 10:07:51 -0800781 SNDRV_TIMER_EVENT_MSTART = SNDRV_TIMER_EVENT_START + 10,
782 SNDRV_TIMER_EVENT_MSTOP = SNDRV_TIMER_EVENT_STOP + 10,
Christopher Ferris82d75042015-01-26 10:57:07 -0800783/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800784 SNDRV_TIMER_EVENT_MCONTINUE = SNDRV_TIMER_EVENT_CONTINUE + 10,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800785 SNDRV_TIMER_EVENT_MPAUSE = SNDRV_TIMER_EVENT_PAUSE + 10,
Tao Baod7db5942015-01-28 10:07:51 -0800786 SNDRV_TIMER_EVENT_MSUSPEND = SNDRV_TIMER_EVENT_SUSPEND + 10,
787 SNDRV_TIMER_EVENT_MRESUME = SNDRV_TIMER_EVENT_RESUME + 10,
Christopher Ferris82d75042015-01-26 10:57:07 -0800788/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800789};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800790struct snd_timer_tread {
Tao Baod7db5942015-01-28 10:07:51 -0800791 int event;
792 struct timespec tstamp;
Tao Baod7db5942015-01-28 10:07:51 -0800793/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800794 unsigned int val;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800795};
Ben Cheng655a7c02013-10-16 16:09:24 -0700796#define SNDRV_CTL_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 7)
797struct snd_ctl_card_info {
Christopher Ferris82d75042015-01-26 10:57:07 -0800798/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800799 int card;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800800 int pad;
Tao Baod7db5942015-01-28 10:07:51 -0800801 unsigned char id[16];
802 unsigned char driver[16];
Christopher Ferris82d75042015-01-26 10:57:07 -0800803/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800804 unsigned char name[32];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800805 unsigned char longname[80];
Tao Baod7db5942015-01-28 10:07:51 -0800806 unsigned char reserved_[16];
807 unsigned char mixername[80];
Tao Baod7db5942015-01-28 10:07:51 -0800808/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800809 unsigned char components[128];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800810};
Ben Cheng655a7c02013-10-16 16:09:24 -0700811typedef int __bitwise snd_ctl_elem_type_t;
812#define SNDRV_CTL_ELEM_TYPE_NONE ((__force snd_ctl_elem_type_t) 0)
Tao Baod7db5942015-01-28 10:07:51 -0800813/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800814#define SNDRV_CTL_ELEM_TYPE_BOOLEAN ((__force snd_ctl_elem_type_t) 1)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800815#define SNDRV_CTL_ELEM_TYPE_INTEGER ((__force snd_ctl_elem_type_t) 2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700816#define SNDRV_CTL_ELEM_TYPE_ENUMERATED ((__force snd_ctl_elem_type_t) 3)
817#define SNDRV_CTL_ELEM_TYPE_BYTES ((__force snd_ctl_elem_type_t) 4)
Tao Baod7db5942015-01-28 10:07:51 -0800818/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800819#define SNDRV_CTL_ELEM_TYPE_IEC958 ((__force snd_ctl_elem_type_t) 5)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800820#define SNDRV_CTL_ELEM_TYPE_INTEGER64 ((__force snd_ctl_elem_type_t) 6)
Ben Cheng655a7c02013-10-16 16:09:24 -0700821#define SNDRV_CTL_ELEM_TYPE_LAST SNDRV_CTL_ELEM_TYPE_INTEGER64
822typedef int __bitwise snd_ctl_elem_iface_t;
Tao Baod7db5942015-01-28 10:07:51 -0800823/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800824#define SNDRV_CTL_ELEM_IFACE_CARD ((__force snd_ctl_elem_iface_t) 0)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800825#define SNDRV_CTL_ELEM_IFACE_HWDEP ((__force snd_ctl_elem_iface_t) 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700826#define SNDRV_CTL_ELEM_IFACE_MIXER ((__force snd_ctl_elem_iface_t) 2)
827#define SNDRV_CTL_ELEM_IFACE_PCM ((__force snd_ctl_elem_iface_t) 3)
Tao Baod7db5942015-01-28 10:07:51 -0800828/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800829#define SNDRV_CTL_ELEM_IFACE_RAWMIDI ((__force snd_ctl_elem_iface_t) 4)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800830#define SNDRV_CTL_ELEM_IFACE_TIMER ((__force snd_ctl_elem_iface_t) 5)
Ben Cheng655a7c02013-10-16 16:09:24 -0700831#define SNDRV_CTL_ELEM_IFACE_SEQUENCER ((__force snd_ctl_elem_iface_t) 6)
832#define SNDRV_CTL_ELEM_IFACE_LAST SNDRV_CTL_ELEM_IFACE_SEQUENCER
Christopher Ferris82d75042015-01-26 10:57:07 -0800833/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800834#define SNDRV_CTL_ELEM_ACCESS_READ (1 << 0)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800835#define SNDRV_CTL_ELEM_ACCESS_WRITE (1 << 1)
Tao Baod7db5942015-01-28 10:07:51 -0800836#define SNDRV_CTL_ELEM_ACCESS_READWRITE (SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_WRITE)
837#define SNDRV_CTL_ELEM_ACCESS_VOLATILE (1 << 2)
Christopher Ferris82d75042015-01-26 10:57:07 -0800838/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800839#define SNDRV_CTL_ELEM_ACCESS_TIMESTAMP (1 << 3)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800840#define SNDRV_CTL_ELEM_ACCESS_TLV_READ (1 << 4)
Tao Baod7db5942015-01-28 10:07:51 -0800841#define SNDRV_CTL_ELEM_ACCESS_TLV_WRITE (1 << 5)
842#define SNDRV_CTL_ELEM_ACCESS_TLV_READWRITE (SNDRV_CTL_ELEM_ACCESS_TLV_READ | SNDRV_CTL_ELEM_ACCESS_TLV_WRITE)
Christopher Ferris82d75042015-01-26 10:57:07 -0800843/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800844#define SNDRV_CTL_ELEM_ACCESS_TLV_COMMAND (1 << 6)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800845#define SNDRV_CTL_ELEM_ACCESS_INACTIVE (1 << 8)
Tao Baod7db5942015-01-28 10:07:51 -0800846#define SNDRV_CTL_ELEM_ACCESS_LOCK (1 << 9)
847#define SNDRV_CTL_ELEM_ACCESS_OWNER (1 << 10)
Christopher Ferris82d75042015-01-26 10:57:07 -0800848/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800849#define SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK (1 << 28)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800850#define SNDRV_CTL_ELEM_ACCESS_USER (1 << 29)
Ben Cheng655a7c02013-10-16 16:09:24 -0700851#define SNDRV_CTL_POWER_D0 0x0000
852#define SNDRV_CTL_POWER_D1 0x0100
Tao Baod7db5942015-01-28 10:07:51 -0800853/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800854#define SNDRV_CTL_POWER_D2 0x0200
Christopher Ferris05d08e92016-02-04 13:16:38 -0800855#define SNDRV_CTL_POWER_D3 0x0300
Tao Baod7db5942015-01-28 10:07:51 -0800856#define SNDRV_CTL_POWER_D3hot (SNDRV_CTL_POWER_D3 | 0x0000)
857#define SNDRV_CTL_POWER_D3cold (SNDRV_CTL_POWER_D3 | 0x0001)
Christopher Ferris82d75042015-01-26 10:57:07 -0800858/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800859#define SNDRV_CTL_ELEM_ID_NAME_MAXLEN 44
Christopher Ferris05d08e92016-02-04 13:16:38 -0800860struct snd_ctl_elem_id {
Tao Baod7db5942015-01-28 10:07:51 -0800861 unsigned int numid;
862 snd_ctl_elem_iface_t iface;
Tao Baod7db5942015-01-28 10:07:51 -0800863/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800864 unsigned int device;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800865 unsigned int subdevice;
866 unsigned char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
Tao Baod7db5942015-01-28 10:07:51 -0800867 unsigned int index;
Christopher Ferris82d75042015-01-26 10:57:07 -0800868/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800869};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800870struct snd_ctl_elem_list {
Tao Baod7db5942015-01-28 10:07:51 -0800871 unsigned int offset;
872 unsigned int space;
Tao Baod7db5942015-01-28 10:07:51 -0800873/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800874 unsigned int used;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800875 unsigned int count;
Tao Baod7db5942015-01-28 10:07:51 -0800876 struct snd_ctl_elem_id __user * pids;
877 unsigned char reserved[50];
Christopher Ferris82d75042015-01-26 10:57:07 -0800878/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800879};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800880struct snd_ctl_elem_info {
Tao Baod7db5942015-01-28 10:07:51 -0800881 struct snd_ctl_elem_id id;
882 snd_ctl_elem_type_t type;
Christopher Ferris82d75042015-01-26 10:57:07 -0800883/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800884 unsigned int access;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800885 unsigned int count;
Tao Baod7db5942015-01-28 10:07:51 -0800886 __kernel_pid_t owner;
887 union {
Christopher Ferris82d75042015-01-26 10:57:07 -0800888/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800889 struct {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800890 long min;
Tao Baod7db5942015-01-28 10:07:51 -0800891 long max;
892 long step;
Christopher Ferris82d75042015-01-26 10:57:07 -0800893/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800894 } integer;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800895 struct {
Tao Baod7db5942015-01-28 10:07:51 -0800896 long long min;
897 long long max;
Christopher Ferris82d75042015-01-26 10:57:07 -0800898/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800899 long long step;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800900 } integer64;
Tao Baod7db5942015-01-28 10:07:51 -0800901 struct {
902 unsigned int items;
Christopher Ferris82d75042015-01-26 10:57:07 -0800903/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800904 unsigned int item;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800905 char name[64];
Tao Baod7db5942015-01-28 10:07:51 -0800906 __u64 names_ptr;
907 unsigned int names_length;
Christopher Ferris82d75042015-01-26 10:57:07 -0800908/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800909 } enumerated;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800910 unsigned char reserved[128];
Tao Baod7db5942015-01-28 10:07:51 -0800911 } value;
912 union {
Tao Baod7db5942015-01-28 10:07:51 -0800913/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800914 unsigned short d[4];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800915 unsigned short * d_ptr;
Tao Baod7db5942015-01-28 10:07:51 -0800916 } dimen;
917 unsigned char reserved[64 - 4 * sizeof(unsigned short)];
Christopher Ferris82d75042015-01-26 10:57:07 -0800918/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800919};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800920struct snd_ctl_elem_value {
Tao Baod7db5942015-01-28 10:07:51 -0800921 struct snd_ctl_elem_id id;
922 unsigned int indirect : 1;
Christopher Ferris82d75042015-01-26 10:57:07 -0800923/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800924 union {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800925 union {
Tao Baod7db5942015-01-28 10:07:51 -0800926 long value[128];
927 long * value_ptr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800928/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800929 } integer;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800930 union {
Tao Baod7db5942015-01-28 10:07:51 -0800931 long long value[64];
932 long long * value_ptr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800933/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800934 } integer64;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800935 union {
Tao Baod7db5942015-01-28 10:07:51 -0800936 unsigned int item[128];
937 unsigned int * item_ptr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800938/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800939 } enumerated;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800940 union {
Tao Baod7db5942015-01-28 10:07:51 -0800941 unsigned char data[512];
942 unsigned char * data_ptr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800943/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800944 } bytes;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800945 struct snd_aes_iec958 iec958;
Tao Baod7db5942015-01-28 10:07:51 -0800946 } value;
947 struct timespec tstamp;
Christopher Ferris82d75042015-01-26 10:57:07 -0800948/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800949 unsigned char reserved[128 - sizeof(struct timespec)];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800950};
Tao Baod7db5942015-01-28 10:07:51 -0800951struct snd_ctl_tlv {
952 unsigned int numid;
Tao Baod7db5942015-01-28 10:07:51 -0800953/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800954 unsigned int length;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800955 unsigned int tlv[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700956};
957#define SNDRV_CTL_IOCTL_PVERSION _IOR('U', 0x00, int)
Tao Baod7db5942015-01-28 10:07:51 -0800958/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800959#define SNDRV_CTL_IOCTL_CARD_INFO _IOR('U', 0x01, struct snd_ctl_card_info)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800960#define SNDRV_CTL_IOCTL_ELEM_LIST _IOWR('U', 0x10, struct snd_ctl_elem_list)
Ben Cheng655a7c02013-10-16 16:09:24 -0700961#define SNDRV_CTL_IOCTL_ELEM_INFO _IOWR('U', 0x11, struct snd_ctl_elem_info)
962#define SNDRV_CTL_IOCTL_ELEM_READ _IOWR('U', 0x12, struct snd_ctl_elem_value)
Tao Baod7db5942015-01-28 10:07:51 -0800963/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800964#define SNDRV_CTL_IOCTL_ELEM_WRITE _IOWR('U', 0x13, struct snd_ctl_elem_value)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800965#define SNDRV_CTL_IOCTL_ELEM_LOCK _IOW('U', 0x14, struct snd_ctl_elem_id)
Ben Cheng655a7c02013-10-16 16:09:24 -0700966#define SNDRV_CTL_IOCTL_ELEM_UNLOCK _IOW('U', 0x15, struct snd_ctl_elem_id)
967#define SNDRV_CTL_IOCTL_SUBSCRIBE_EVENTS _IOWR('U', 0x16, int)
Tao Baod7db5942015-01-28 10:07:51 -0800968/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800969#define SNDRV_CTL_IOCTL_ELEM_ADD _IOWR('U', 0x17, struct snd_ctl_elem_info)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800970#define SNDRV_CTL_IOCTL_ELEM_REPLACE _IOWR('U', 0x18, struct snd_ctl_elem_info)
Ben Cheng655a7c02013-10-16 16:09:24 -0700971#define SNDRV_CTL_IOCTL_ELEM_REMOVE _IOWR('U', 0x19, struct snd_ctl_elem_id)
972#define SNDRV_CTL_IOCTL_TLV_READ _IOWR('U', 0x1a, struct snd_ctl_tlv)
Tao Baod7db5942015-01-28 10:07:51 -0800973/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800974#define SNDRV_CTL_IOCTL_TLV_WRITE _IOWR('U', 0x1b, struct snd_ctl_tlv)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800975#define SNDRV_CTL_IOCTL_TLV_COMMAND _IOWR('U', 0x1c, struct snd_ctl_tlv)
Ben Cheng655a7c02013-10-16 16:09:24 -0700976#define SNDRV_CTL_IOCTL_HWDEP_NEXT_DEVICE _IOWR('U', 0x20, int)
977#define SNDRV_CTL_IOCTL_HWDEP_INFO _IOR('U', 0x21, struct snd_hwdep_info)
Tao Baod7db5942015-01-28 10:07:51 -0800978/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800979#define SNDRV_CTL_IOCTL_PCM_NEXT_DEVICE _IOR('U', 0x30, int)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800980#define SNDRV_CTL_IOCTL_PCM_INFO _IOWR('U', 0x31, struct snd_pcm_info)
Ben Cheng655a7c02013-10-16 16:09:24 -0700981#define SNDRV_CTL_IOCTL_PCM_PREFER_SUBDEVICE _IOW('U', 0x32, int)
982#define SNDRV_CTL_IOCTL_RAWMIDI_NEXT_DEVICE _IOWR('U', 0x40, int)
Tao Baod7db5942015-01-28 10:07:51 -0800983/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800984#define SNDRV_CTL_IOCTL_RAWMIDI_INFO _IOWR('U', 0x41, struct snd_rawmidi_info)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800985#define SNDRV_CTL_IOCTL_RAWMIDI_PREFER_SUBDEVICE _IOW('U', 0x42, int)
Ben Cheng655a7c02013-10-16 16:09:24 -0700986#define SNDRV_CTL_IOCTL_POWER _IOWR('U', 0xd0, int)
987#define SNDRV_CTL_IOCTL_POWER_STATE _IOR('U', 0xd1, int)
Christopher Ferris82d75042015-01-26 10:57:07 -0800988/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800989enum sndrv_ctl_event_type {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800990 SNDRV_CTL_EVENT_ELEM = 0,
Tao Baod7db5942015-01-28 10:07:51 -0800991 SNDRV_CTL_EVENT_LAST = SNDRV_CTL_EVENT_ELEM,
Ben Cheng655a7c02013-10-16 16:09:24 -0700992};
Christopher Ferris82d75042015-01-26 10:57:07 -0800993/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800994#define SNDRV_CTL_EVENT_MASK_VALUE (1 << 0)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800995#define SNDRV_CTL_EVENT_MASK_INFO (1 << 1)
Tao Baod7db5942015-01-28 10:07:51 -0800996#define SNDRV_CTL_EVENT_MASK_ADD (1 << 2)
997#define SNDRV_CTL_EVENT_MASK_TLV (1 << 3)
Christopher Ferris82d75042015-01-26 10:57:07 -0800998/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800999#define SNDRV_CTL_EVENT_MASK_REMOVE (~0U)
Christopher Ferris05d08e92016-02-04 13:16:38 -08001000struct snd_ctl_event {
Tao Baod7db5942015-01-28 10:07:51 -08001001 int type;
1002 union {
Christopher Ferris82d75042015-01-26 10:57:07 -08001003/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001004 struct {
Christopher Ferris05d08e92016-02-04 13:16:38 -08001005 unsigned int mask;
Tao Baod7db5942015-01-28 10:07:51 -08001006 struct snd_ctl_elem_id id;
1007 } elem;
Tao Baod7db5942015-01-28 10:07:51 -08001008/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001009 unsigned char data8[60];
Christopher Ferris05d08e92016-02-04 13:16:38 -08001010 } data;
Ben Cheng655a7c02013-10-16 16:09:24 -07001011};
1012#define SNDRV_CTL_NAME_NONE ""
Tao Baod7db5942015-01-28 10:07:51 -08001013/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001014#define SNDRV_CTL_NAME_PLAYBACK "Playback "
Christopher Ferris05d08e92016-02-04 13:16:38 -08001015#define SNDRV_CTL_NAME_CAPTURE "Capture "
Ben Cheng655a7c02013-10-16 16:09:24 -07001016#define SNDRV_CTL_NAME_IEC958_NONE ""
1017#define SNDRV_CTL_NAME_IEC958_SWITCH "Switch"
Tao Baod7db5942015-01-28 10:07:51 -08001018/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001019#define SNDRV_CTL_NAME_IEC958_VOLUME "Volume"
Christopher Ferris05d08e92016-02-04 13:16:38 -08001020#define SNDRV_CTL_NAME_IEC958_DEFAULT "Default"
Ben Cheng655a7c02013-10-16 16:09:24 -07001021#define SNDRV_CTL_NAME_IEC958_MASK "Mask"
1022#define SNDRV_CTL_NAME_IEC958_CON_MASK "Con Mask"
Tao Baod7db5942015-01-28 10:07:51 -08001023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001024#define SNDRV_CTL_NAME_IEC958_PRO_MASK "Pro Mask"
Christopher Ferris05d08e92016-02-04 13:16:38 -08001025#define SNDRV_CTL_NAME_IEC958_PCM_STREAM "PCM Stream"
Tao Baod7db5942015-01-28 10:07:51 -08001026#define SNDRV_CTL_NAME_IEC958(expl,direction,what) "IEC958 " expl SNDRV_CTL_NAME_ ##direction SNDRV_CTL_NAME_IEC958_ ##what
Ben Cheng655a7c02013-10-16 16:09:24 -07001027#endif
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */