Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 1 | /**************************************************************************** |
| 2 | **************************************************************************** |
| 3 | *** |
| 4 | *** This header was automatically generated from a Linux kernel header |
| 5 | *** of the same name, to make information necessary for userspace to |
| 6 | *** call into the kernel available to libc. It contains only constants, |
| 7 | *** structures, and macros generated from the original header, and thus, |
| 8 | *** contains no copyrightable information. |
| 9 | *** |
| 10 | *** To edit the content of this header, modify the corresponding |
| 11 | *** source file (e.g. under external/kernel-headers/original/) then |
| 12 | *** run bionic/libc/kernel/tools/update_all.py |
| 13 | *** |
| 14 | *** Any manual change here will be lost the next time this script will |
| 15 | *** be run. You've been warned! |
| 16 | *** |
| 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
| 19 | #ifndef _UAPI__SOUND_ASEQUENCER_H |
| 20 | #define _UAPI__SOUND_ASEQUENCER_H |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 21 | #include <sound/asound.h> |
Christopher Ferris | 8666d04 | 2023-09-06 14:55:31 -0700 | [diff] [blame] | 22 | #define SNDRV_SEQ_VERSION SNDRV_PROTOCOL_VERSION(1, 0, 3) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 23 | #define SNDRV_SEQ_EVENT_SYSTEM 0 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 24 | #define SNDRV_SEQ_EVENT_RESULT 1 |
| 25 | #define SNDRV_SEQ_EVENT_NOTE 5 |
| 26 | #define SNDRV_SEQ_EVENT_NOTEON 6 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 27 | #define SNDRV_SEQ_EVENT_NOTEOFF 7 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 28 | #define SNDRV_SEQ_EVENT_KEYPRESS 8 |
| 29 | #define SNDRV_SEQ_EVENT_CONTROLLER 10 |
| 30 | #define SNDRV_SEQ_EVENT_PGMCHANGE 11 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 31 | #define SNDRV_SEQ_EVENT_CHANPRESS 12 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 32 | #define SNDRV_SEQ_EVENT_PITCHBEND 13 |
| 33 | #define SNDRV_SEQ_EVENT_CONTROL14 14 |
| 34 | #define SNDRV_SEQ_EVENT_NONREGPARAM 15 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 35 | #define SNDRV_SEQ_EVENT_REGPARAM 16 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 36 | #define SNDRV_SEQ_EVENT_SONGPOS 20 |
| 37 | #define SNDRV_SEQ_EVENT_SONGSEL 21 |
| 38 | #define SNDRV_SEQ_EVENT_QFRAME 22 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 39 | #define SNDRV_SEQ_EVENT_TIMESIGN 23 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 40 | #define SNDRV_SEQ_EVENT_KEYSIGN 24 |
| 41 | #define SNDRV_SEQ_EVENT_START 30 |
| 42 | #define SNDRV_SEQ_EVENT_CONTINUE 31 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 43 | #define SNDRV_SEQ_EVENT_STOP 32 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 44 | #define SNDRV_SEQ_EVENT_SETPOS_TICK 33 |
| 45 | #define SNDRV_SEQ_EVENT_SETPOS_TIME 34 |
| 46 | #define SNDRV_SEQ_EVENT_TEMPO 35 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 47 | #define SNDRV_SEQ_EVENT_CLOCK 36 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 48 | #define SNDRV_SEQ_EVENT_TICK 37 |
| 49 | #define SNDRV_SEQ_EVENT_QUEUE_SKEW 38 |
| 50 | #define SNDRV_SEQ_EVENT_TUNE_REQUEST 40 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 51 | #define SNDRV_SEQ_EVENT_RESET 41 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 52 | #define SNDRV_SEQ_EVENT_SENSING 42 |
| 53 | #define SNDRV_SEQ_EVENT_ECHO 50 |
| 54 | #define SNDRV_SEQ_EVENT_OSS 51 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 55 | #define SNDRV_SEQ_EVENT_CLIENT_START 60 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 56 | #define SNDRV_SEQ_EVENT_CLIENT_EXIT 61 |
| 57 | #define SNDRV_SEQ_EVENT_CLIENT_CHANGE 62 |
| 58 | #define SNDRV_SEQ_EVENT_PORT_START 63 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 59 | #define SNDRV_SEQ_EVENT_PORT_EXIT 64 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 60 | #define SNDRV_SEQ_EVENT_PORT_CHANGE 65 |
| 61 | #define SNDRV_SEQ_EVENT_PORT_SUBSCRIBED 66 |
| 62 | #define SNDRV_SEQ_EVENT_PORT_UNSUBSCRIBED 67 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 63 | #define SNDRV_SEQ_EVENT_USR0 90 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 64 | #define SNDRV_SEQ_EVENT_USR1 91 |
| 65 | #define SNDRV_SEQ_EVENT_USR2 92 |
| 66 | #define SNDRV_SEQ_EVENT_USR3 93 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 67 | #define SNDRV_SEQ_EVENT_USR4 94 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 68 | #define SNDRV_SEQ_EVENT_USR5 95 |
| 69 | #define SNDRV_SEQ_EVENT_USR6 96 |
| 70 | #define SNDRV_SEQ_EVENT_USR7 97 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 71 | #define SNDRV_SEQ_EVENT_USR8 98 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 72 | #define SNDRV_SEQ_EVENT_USR9 99 |
| 73 | #define SNDRV_SEQ_EVENT_SYSEX 130 |
| 74 | #define SNDRV_SEQ_EVENT_BOUNCE 131 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 75 | #define SNDRV_SEQ_EVENT_USR_VAR0 135 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 76 | #define SNDRV_SEQ_EVENT_USR_VAR1 136 |
| 77 | #define SNDRV_SEQ_EVENT_USR_VAR2 137 |
| 78 | #define SNDRV_SEQ_EVENT_USR_VAR3 138 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 79 | #define SNDRV_SEQ_EVENT_USR_VAR4 139 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 80 | #define SNDRV_SEQ_EVENT_KERNEL_ERROR 150 |
| 81 | #define SNDRV_SEQ_EVENT_KERNEL_QUOTE 151 |
| 82 | #define SNDRV_SEQ_EVENT_NONE 255 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 83 | typedef unsigned char snd_seq_event_type_t; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 84 | struct snd_seq_addr { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 85 | unsigned char client; |
| 86 | unsigned char port; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 87 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 88 | struct snd_seq_connect { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 89 | struct snd_seq_addr sender; |
| 90 | struct snd_seq_addr dest; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 91 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 92 | #define SNDRV_SEQ_ADDRESS_UNKNOWN 253 |
| 93 | #define SNDRV_SEQ_ADDRESS_SUBSCRIBERS 254 |
| 94 | #define SNDRV_SEQ_ADDRESS_BROADCAST 255 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 95 | #define SNDRV_SEQ_QUEUE_DIRECT 253 |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 96 | #define SNDRV_SEQ_TIME_STAMP_TICK (0 << 0) |
| 97 | #define SNDRV_SEQ_TIME_STAMP_REAL (1 << 0) |
| 98 | #define SNDRV_SEQ_TIME_STAMP_MASK (1 << 0) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 99 | #define SNDRV_SEQ_TIME_MODE_ABS (0 << 1) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 100 | #define SNDRV_SEQ_TIME_MODE_REL (1 << 1) |
| 101 | #define SNDRV_SEQ_TIME_MODE_MASK (1 << 1) |
| 102 | #define SNDRV_SEQ_EVENT_LENGTH_FIXED (0 << 2) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 103 | #define SNDRV_SEQ_EVENT_LENGTH_VARIABLE (1 << 2) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 104 | #define SNDRV_SEQ_EVENT_LENGTH_VARUSR (2 << 2) |
| 105 | #define SNDRV_SEQ_EVENT_LENGTH_MASK (3 << 2) |
| 106 | #define SNDRV_SEQ_PRIORITY_NORMAL (0 << 4) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 107 | #define SNDRV_SEQ_PRIORITY_HIGH (1 << 4) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 108 | #define SNDRV_SEQ_PRIORITY_MASK (1 << 4) |
Christopher Ferris | 8666d04 | 2023-09-06 14:55:31 -0700 | [diff] [blame] | 109 | #define SNDRV_SEQ_EVENT_UMP (1 << 5) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 110 | struct snd_seq_ev_note { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 111 | unsigned char channel; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 112 | unsigned char note; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 113 | unsigned char velocity; |
| 114 | unsigned char off_velocity; |
| 115 | unsigned int duration; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 116 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 117 | struct snd_seq_ev_ctrl { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 118 | unsigned char channel; |
| 119 | unsigned char unused1, unused2, unused3; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 120 | unsigned int param; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 121 | signed int value; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 122 | }; |
| 123 | struct snd_seq_ev_raw8 { |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 124 | unsigned char d[12]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 125 | }; |
| 126 | struct snd_seq_ev_raw32 { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 127 | unsigned int d[3]; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 128 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 129 | struct snd_seq_ev_ext { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 130 | unsigned int len; |
| 131 | void * ptr; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 132 | } __attribute__((packed)); |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 133 | struct snd_seq_result { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 134 | int event; |
| 135 | int result; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 136 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 137 | struct snd_seq_real_time { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 138 | unsigned int tv_sec; |
| 139 | unsigned int tv_nsec; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 140 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 141 | typedef unsigned int snd_seq_tick_time_t; |
| 142 | union snd_seq_timestamp { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 143 | snd_seq_tick_time_t tick; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 144 | struct snd_seq_real_time time; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 145 | }; |
| 146 | struct snd_seq_queue_skew { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 147 | unsigned int value; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 148 | unsigned int base; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 149 | }; |
| 150 | struct snd_seq_ev_queue_control { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 151 | unsigned char queue; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 152 | unsigned char pad[3]; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 153 | union { |
| 154 | signed int value; |
| 155 | union snd_seq_timestamp time; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 156 | unsigned int position; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 157 | struct snd_seq_queue_skew skew; |
| 158 | unsigned int d32[2]; |
| 159 | unsigned char d8[8]; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 160 | } param; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 161 | }; |
| 162 | struct snd_seq_ev_quote { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 163 | struct snd_seq_addr origin; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 164 | unsigned short value; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 165 | struct snd_seq_event * event; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 166 | } __attribute__((packed)); |
Christopher Ferris | 8666d04 | 2023-09-06 14:55:31 -0700 | [diff] [blame] | 167 | union snd_seq_event_data { |
| 168 | struct snd_seq_ev_note note; |
| 169 | struct snd_seq_ev_ctrl control; |
| 170 | struct snd_seq_ev_raw8 raw8; |
| 171 | struct snd_seq_ev_raw32 raw32; |
| 172 | struct snd_seq_ev_ext ext; |
| 173 | struct snd_seq_ev_queue_control queue; |
| 174 | union snd_seq_timestamp time; |
| 175 | struct snd_seq_addr addr; |
| 176 | struct snd_seq_connect connect; |
| 177 | struct snd_seq_result result; |
| 178 | struct snd_seq_ev_quote quote; |
| 179 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 180 | struct snd_seq_event { |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 181 | snd_seq_event_type_t type; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 182 | unsigned char flags; |
| 183 | char tag; |
| 184 | unsigned char queue; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 185 | union snd_seq_timestamp time; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 186 | struct snd_seq_addr source; |
| 187 | struct snd_seq_addr dest; |
Christopher Ferris | 8666d04 | 2023-09-06 14:55:31 -0700 | [diff] [blame] | 188 | union snd_seq_event_data data; |
| 189 | }; |
| 190 | struct snd_seq_ump_event { |
| 191 | snd_seq_event_type_t type; |
| 192 | unsigned char flags; |
| 193 | char tag; |
| 194 | unsigned char queue; |
| 195 | union snd_seq_timestamp time; |
| 196 | struct snd_seq_addr source; |
| 197 | struct snd_seq_addr dest; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 198 | union { |
Christopher Ferris | 8666d04 | 2023-09-06 14:55:31 -0700 | [diff] [blame] | 199 | union snd_seq_event_data data; |
| 200 | unsigned int ump[4]; |
| 201 | }; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 202 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 203 | struct snd_seq_event_bounce { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 204 | int err; |
| 205 | struct snd_seq_event event; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 206 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 207 | struct snd_seq_system_info { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 208 | int queues; |
| 209 | int clients; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 210 | int ports; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 211 | int channels; |
| 212 | int cur_clients; |
| 213 | int cur_queues; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 214 | char reserved[24]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 215 | }; |
| 216 | struct snd_seq_running_info { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 217 | unsigned char client; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 218 | unsigned char big_endian; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 219 | unsigned char cpu_mode; |
| 220 | unsigned char pad; |
| 221 | unsigned char reserved[12]; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 222 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 223 | #define SNDRV_SEQ_CLIENT_SYSTEM 0 |
| 224 | #define SNDRV_SEQ_CLIENT_DUMMY 14 |
| 225 | #define SNDRV_SEQ_CLIENT_OSS 15 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 226 | typedef int __bitwise snd_seq_client_type_t; |
Elliott Hughes | 0f0c18f | 2023-03-29 15:53:31 -0700 | [diff] [blame] | 227 | #define NO_CLIENT (( snd_seq_client_type_t) 0) |
| 228 | #define USER_CLIENT (( snd_seq_client_type_t) 1) |
| 229 | #define KERNEL_CLIENT (( snd_seq_client_type_t) 2) |
Christopher Ferris | 8b7fdc9 | 2023-02-21 13:36:32 -0800 | [diff] [blame] | 230 | #define SNDRV_SEQ_FILTER_BROADCAST (1U << 0) |
| 231 | #define SNDRV_SEQ_FILTER_MULTICAST (1U << 1) |
| 232 | #define SNDRV_SEQ_FILTER_BOUNCE (1U << 2) |
Christopher Ferris | 8666d04 | 2023-09-06 14:55:31 -0700 | [diff] [blame] | 233 | #define SNDRV_SEQ_FILTER_NO_CONVERT (1U << 30) |
Christopher Ferris | 8b7fdc9 | 2023-02-21 13:36:32 -0800 | [diff] [blame] | 234 | #define SNDRV_SEQ_FILTER_USE_EVENT (1U << 31) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 235 | struct snd_seq_client_info { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 236 | int client; |
| 237 | snd_seq_client_type_t type; |
| 238 | char name[64]; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 239 | unsigned int filter; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 240 | unsigned char multicast_filter[8]; |
| 241 | unsigned char event_filter[32]; |
| 242 | int num_ports; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 243 | int event_lost; |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 244 | int card; |
| 245 | int pid; |
Christopher Ferris | 8666d04 | 2023-09-06 14:55:31 -0700 | [diff] [blame] | 246 | unsigned int midi_version; |
| 247 | unsigned int group_filter; |
| 248 | char reserved[48]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 249 | }; |
Christopher Ferris | 8666d04 | 2023-09-06 14:55:31 -0700 | [diff] [blame] | 250 | #define SNDRV_SEQ_CLIENT_LEGACY_MIDI 0 |
| 251 | #define SNDRV_SEQ_CLIENT_UMP_MIDI_1_0 1 |
| 252 | #define SNDRV_SEQ_CLIENT_UMP_MIDI_2_0 2 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 253 | struct snd_seq_client_pool { |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 254 | int client; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 255 | int output_pool; |
| 256 | int input_pool; |
| 257 | int output_room; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 258 | int output_free; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 259 | int input_free; |
| 260 | char reserved[64]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 261 | }; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 262 | #define SNDRV_SEQ_REMOVE_INPUT (1 << 0) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 263 | #define SNDRV_SEQ_REMOVE_OUTPUT (1 << 1) |
| 264 | #define SNDRV_SEQ_REMOVE_DEST (1 << 2) |
| 265 | #define SNDRV_SEQ_REMOVE_DEST_CHANNEL (1 << 3) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 266 | #define SNDRV_SEQ_REMOVE_TIME_BEFORE (1 << 4) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 267 | #define SNDRV_SEQ_REMOVE_TIME_AFTER (1 << 5) |
| 268 | #define SNDRV_SEQ_REMOVE_TIME_TICK (1 << 6) |
| 269 | #define SNDRV_SEQ_REMOVE_EVENT_TYPE (1 << 7) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 270 | #define SNDRV_SEQ_REMOVE_IGNORE_OFF (1 << 8) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 271 | #define SNDRV_SEQ_REMOVE_TAG_MATCH (1 << 9) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 272 | struct snd_seq_remove_events { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 273 | unsigned int remove_mode; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 274 | union snd_seq_timestamp time; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 275 | unsigned char queue; |
| 276 | struct snd_seq_addr dest; |
| 277 | unsigned char channel; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 278 | int type; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 279 | char tag; |
| 280 | int reserved[10]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 281 | }; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 282 | #define SNDRV_SEQ_PORT_SYSTEM_TIMER 0 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 283 | #define SNDRV_SEQ_PORT_SYSTEM_ANNOUNCE 1 |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 284 | #define SNDRV_SEQ_PORT_CAP_READ (1 << 0) |
| 285 | #define SNDRV_SEQ_PORT_CAP_WRITE (1 << 1) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 286 | #define SNDRV_SEQ_PORT_CAP_SYNC_READ (1 << 2) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 287 | #define SNDRV_SEQ_PORT_CAP_SYNC_WRITE (1 << 3) |
| 288 | #define SNDRV_SEQ_PORT_CAP_DUPLEX (1 << 4) |
| 289 | #define SNDRV_SEQ_PORT_CAP_SUBS_READ (1 << 5) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 290 | #define SNDRV_SEQ_PORT_CAP_SUBS_WRITE (1 << 6) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 291 | #define SNDRV_SEQ_PORT_CAP_NO_EXPORT (1 << 7) |
Christopher Ferris | 8666d04 | 2023-09-06 14:55:31 -0700 | [diff] [blame] | 292 | #define SNDRV_SEQ_PORT_CAP_INACTIVE (1 << 8) |
| 293 | #define SNDRV_SEQ_PORT_CAP_UMP_ENDPOINT (1 << 9) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 294 | #define SNDRV_SEQ_PORT_TYPE_SPECIFIC (1 << 0) |
| 295 | #define SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC (1 << 1) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 296 | #define SNDRV_SEQ_PORT_TYPE_MIDI_GM (1 << 2) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 297 | #define SNDRV_SEQ_PORT_TYPE_MIDI_GS (1 << 3) |
| 298 | #define SNDRV_SEQ_PORT_TYPE_MIDI_XG (1 << 4) |
| 299 | #define SNDRV_SEQ_PORT_TYPE_MIDI_MT32 (1 << 5) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 300 | #define SNDRV_SEQ_PORT_TYPE_MIDI_GM2 (1 << 6) |
Christopher Ferris | 8666d04 | 2023-09-06 14:55:31 -0700 | [diff] [blame] | 301 | #define SNDRV_SEQ_PORT_TYPE_MIDI_UMP (1 << 7) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 302 | #define SNDRV_SEQ_PORT_TYPE_SYNTH (1 << 10) |
| 303 | #define SNDRV_SEQ_PORT_TYPE_DIRECT_SAMPLE (1 << 11) |
| 304 | #define SNDRV_SEQ_PORT_TYPE_SAMPLE (1 << 12) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 305 | #define SNDRV_SEQ_PORT_TYPE_HARDWARE (1 << 16) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 306 | #define SNDRV_SEQ_PORT_TYPE_SOFTWARE (1 << 17) |
| 307 | #define SNDRV_SEQ_PORT_TYPE_SYNTHESIZER (1 << 18) |
| 308 | #define SNDRV_SEQ_PORT_TYPE_PORT (1 << 19) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 309 | #define SNDRV_SEQ_PORT_TYPE_APPLICATION (1 << 20) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 310 | #define SNDRV_SEQ_PORT_FLG_GIVEN_PORT (1 << 0) |
| 311 | #define SNDRV_SEQ_PORT_FLG_TIMESTAMP (1 << 1) |
| 312 | #define SNDRV_SEQ_PORT_FLG_TIME_REAL (1 << 2) |
Christopher Ferris | 8666d04 | 2023-09-06 14:55:31 -0700 | [diff] [blame] | 313 | #define SNDRV_SEQ_PORT_DIR_UNKNOWN 0 |
| 314 | #define SNDRV_SEQ_PORT_DIR_INPUT 1 |
| 315 | #define SNDRV_SEQ_PORT_DIR_OUTPUT 2 |
| 316 | #define SNDRV_SEQ_PORT_DIR_BIDIRECTION 3 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 317 | struct snd_seq_port_info { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 318 | struct snd_seq_addr addr; |
| 319 | char name[64]; |
| 320 | unsigned int capability; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 321 | unsigned int type; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 322 | int midi_channels; |
| 323 | int midi_voices; |
| 324 | int synth_voices; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 325 | int read_use; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 326 | int write_use; |
| 327 | void * kernel; |
| 328 | unsigned int flags; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 329 | unsigned char time_queue; |
Christopher Ferris | 8666d04 | 2023-09-06 14:55:31 -0700 | [diff] [blame] | 330 | unsigned char direction; |
| 331 | unsigned char ump_group; |
| 332 | char reserved[57]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 333 | }; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 334 | #define SNDRV_SEQ_QUEUE_FLG_SYNC (1 << 0) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 335 | struct snd_seq_queue_info { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 336 | int queue; |
| 337 | int owner; |
| 338 | unsigned locked : 1; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 339 | char name[64]; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 340 | unsigned int flags; |
| 341 | char reserved[60]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 342 | }; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 343 | struct snd_seq_queue_status { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 344 | int queue; |
| 345 | int events; |
| 346 | snd_seq_tick_time_t tick; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 347 | struct snd_seq_real_time time; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 348 | int running; |
| 349 | int flags; |
| 350 | char reserved[64]; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 351 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 352 | struct snd_seq_queue_tempo { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 353 | int queue; |
| 354 | unsigned int tempo; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 355 | int ppq; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 356 | unsigned int skew_value; |
| 357 | unsigned int skew_base; |
| 358 | char reserved[24]; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 359 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 360 | #define SNDRV_SEQ_TIMER_ALSA 0 |
| 361 | #define SNDRV_SEQ_TIMER_MIDI_CLOCK 1 |
| 362 | #define SNDRV_SEQ_TIMER_MIDI_TICK 2 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 363 | struct snd_seq_queue_timer { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 364 | int queue; |
| 365 | int type; |
| 366 | union { |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 367 | struct { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 368 | struct snd_timer_id id; |
| 369 | unsigned int resolution; |
| 370 | } alsa; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 371 | } u; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 372 | char reserved[64]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 373 | }; |
| 374 | struct snd_seq_queue_client { |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 375 | int queue; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 376 | int client; |
| 377 | int used; |
| 378 | char reserved[64]; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 379 | }; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 380 | #define SNDRV_SEQ_PORT_SUBS_EXCLUSIVE (1 << 0) |
| 381 | #define SNDRV_SEQ_PORT_SUBS_TIMESTAMP (1 << 1) |
| 382 | #define SNDRV_SEQ_PORT_SUBS_TIME_REAL (1 << 2) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 383 | struct snd_seq_port_subscribe { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 384 | struct snd_seq_addr sender; |
| 385 | struct snd_seq_addr dest; |
| 386 | unsigned int voices; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 387 | unsigned int flags; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 388 | unsigned char queue; |
| 389 | unsigned char pad[3]; |
| 390 | char reserved[64]; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 391 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 392 | #define SNDRV_SEQ_QUERY_SUBS_READ 0 |
| 393 | #define SNDRV_SEQ_QUERY_SUBS_WRITE 1 |
| 394 | struct snd_seq_query_subs { |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 395 | struct snd_seq_addr root; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 396 | int type; |
| 397 | int index; |
| 398 | int num_subs; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 399 | struct snd_seq_addr addr; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 400 | unsigned char queue; |
| 401 | unsigned int flags; |
| 402 | char reserved[64]; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 403 | }; |
Christopher Ferris | 8666d04 | 2023-09-06 14:55:31 -0700 | [diff] [blame] | 404 | #define SNDRV_SEQ_CLIENT_UMP_INFO_ENDPOINT 0 |
| 405 | #define SNDRV_SEQ_CLIENT_UMP_INFO_BLOCK 1 |
| 406 | struct snd_seq_client_ump_info { |
| 407 | int client; |
| 408 | int type; |
| 409 | unsigned char info[512]; |
| 410 | } __attribute__((__packed__)); |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 411 | #define SNDRV_SEQ_IOCTL_PVERSION _IOR('S', 0x00, int) |
| 412 | #define SNDRV_SEQ_IOCTL_CLIENT_ID _IOR('S', 0x01, int) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 413 | #define SNDRV_SEQ_IOCTL_SYSTEM_INFO _IOWR('S', 0x02, struct snd_seq_system_info) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 414 | #define SNDRV_SEQ_IOCTL_RUNNING_MODE _IOWR('S', 0x03, struct snd_seq_running_info) |
Christopher Ferris | 8666d04 | 2023-09-06 14:55:31 -0700 | [diff] [blame] | 415 | #define SNDRV_SEQ_IOCTL_USER_PVERSION _IOW('S', 0x04, int) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 416 | #define SNDRV_SEQ_IOCTL_GET_CLIENT_INFO _IOWR('S', 0x10, struct snd_seq_client_info) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 417 | #define SNDRV_SEQ_IOCTL_SET_CLIENT_INFO _IOW('S', 0x11, struct snd_seq_client_info) |
Christopher Ferris | 8666d04 | 2023-09-06 14:55:31 -0700 | [diff] [blame] | 418 | #define SNDRV_SEQ_IOCTL_GET_CLIENT_UMP_INFO _IOWR('S', 0x12, struct snd_seq_client_ump_info) |
| 419 | #define SNDRV_SEQ_IOCTL_SET_CLIENT_UMP_INFO _IOWR('S', 0x13, struct snd_seq_client_ump_info) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 420 | #define SNDRV_SEQ_IOCTL_CREATE_PORT _IOWR('S', 0x20, struct snd_seq_port_info) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 421 | #define SNDRV_SEQ_IOCTL_DELETE_PORT _IOW('S', 0x21, struct snd_seq_port_info) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 422 | #define SNDRV_SEQ_IOCTL_GET_PORT_INFO _IOWR('S', 0x22, struct snd_seq_port_info) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 423 | #define SNDRV_SEQ_IOCTL_SET_PORT_INFO _IOW('S', 0x23, struct snd_seq_port_info) |
| 424 | #define SNDRV_SEQ_IOCTL_SUBSCRIBE_PORT _IOW('S', 0x30, struct snd_seq_port_subscribe) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 425 | #define SNDRV_SEQ_IOCTL_UNSUBSCRIBE_PORT _IOW('S', 0x31, struct snd_seq_port_subscribe) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 426 | #define SNDRV_SEQ_IOCTL_CREATE_QUEUE _IOWR('S', 0x32, struct snd_seq_queue_info) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 427 | #define SNDRV_SEQ_IOCTL_DELETE_QUEUE _IOW('S', 0x33, struct snd_seq_queue_info) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 428 | #define SNDRV_SEQ_IOCTL_GET_QUEUE_INFO _IOWR('S', 0x34, struct snd_seq_queue_info) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 429 | #define SNDRV_SEQ_IOCTL_SET_QUEUE_INFO _IOWR('S', 0x35, struct snd_seq_queue_info) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 430 | #define SNDRV_SEQ_IOCTL_GET_NAMED_QUEUE _IOWR('S', 0x36, struct snd_seq_queue_info) |
| 431 | #define SNDRV_SEQ_IOCTL_GET_QUEUE_STATUS _IOWR('S', 0x40, struct snd_seq_queue_status) |
| 432 | #define SNDRV_SEQ_IOCTL_GET_QUEUE_TEMPO _IOWR('S', 0x41, struct snd_seq_queue_tempo) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 433 | #define SNDRV_SEQ_IOCTL_SET_QUEUE_TEMPO _IOW('S', 0x42, struct snd_seq_queue_tempo) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 434 | #define SNDRV_SEQ_IOCTL_GET_QUEUE_TIMER _IOWR('S', 0x45, struct snd_seq_queue_timer) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 435 | #define SNDRV_SEQ_IOCTL_SET_QUEUE_TIMER _IOW('S', 0x46, struct snd_seq_queue_timer) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 436 | #define SNDRV_SEQ_IOCTL_GET_QUEUE_CLIENT _IOWR('S', 0x49, struct snd_seq_queue_client) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 437 | #define SNDRV_SEQ_IOCTL_SET_QUEUE_CLIENT _IOW('S', 0x4a, struct snd_seq_queue_client) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 438 | #define SNDRV_SEQ_IOCTL_GET_CLIENT_POOL _IOWR('S', 0x4b, struct snd_seq_client_pool) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 439 | #define SNDRV_SEQ_IOCTL_SET_CLIENT_POOL _IOW('S', 0x4c, struct snd_seq_client_pool) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 440 | #define SNDRV_SEQ_IOCTL_REMOVE_EVENTS _IOW('S', 0x4e, struct snd_seq_remove_events) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 441 | #define SNDRV_SEQ_IOCTL_QUERY_SUBS _IOWR('S', 0x4f, struct snd_seq_query_subs) |
| 442 | #define SNDRV_SEQ_IOCTL_GET_SUBSCRIPTION _IOWR('S', 0x50, struct snd_seq_port_subscribe) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 443 | #define SNDRV_SEQ_IOCTL_QUERY_NEXT_CLIENT _IOWR('S', 0x51, struct snd_seq_client_info) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 444 | #define SNDRV_SEQ_IOCTL_QUERY_NEXT_PORT _IOWR('S', 0x52, struct snd_seq_port_info) |
| 445 | #endif |