diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-11-17 08:04:02 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:17:52 -0500 |
commit | c7e0b5bf9fff1b726495081447c107a2333fb82c (patch) | |
tree | f4d9ec9a6446f8e2afde4c94e10a39f2b86a0bc9 /include/sound/asequencer.h | |
parent | 6ac77bc180fbd985988015020c2e2347e802959d (diff) |
[ALSA] Remove xxx_t typedefs: Sequencer
Modules: ALSA sequencer
Remove xxx_t typedefs from the core sequencer codes.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/asequencer.h')
-rw-r--r-- | include/sound/asequencer.h | 368 |
1 files changed, 186 insertions, 182 deletions
diff --git a/include/sound/asequencer.h b/include/sound/asequencer.h index 562637b4884b..59485be05797 100644 --- a/include/sound/asequencer.h +++ b/include/sound/asequencer.h | |||
@@ -35,13 +35,13 @@ | |||
35 | */ | 35 | */ |
36 | 36 | ||
37 | /** system messages | 37 | /** system messages |
38 | * event data type = #sndrv_seq_result_t | 38 | * event data type = #snd_seq_result |
39 | */ | 39 | */ |
40 | #define SNDRV_SEQ_EVENT_SYSTEM 0 | 40 | #define SNDRV_SEQ_EVENT_SYSTEM 0 |
41 | #define SNDRV_SEQ_EVENT_RESULT 1 | 41 | #define SNDRV_SEQ_EVENT_RESULT 1 |
42 | 42 | ||
43 | /** note messages (channel specific) | 43 | /** note messages (channel specific) |
44 | * event data type = #sndrv_seq_ev_note | 44 | * event data type = #snd_seq_ev_note |
45 | */ | 45 | */ |
46 | #define SNDRV_SEQ_EVENT_NOTE 5 | 46 | #define SNDRV_SEQ_EVENT_NOTE 5 |
47 | #define SNDRV_SEQ_EVENT_NOTEON 6 | 47 | #define SNDRV_SEQ_EVENT_NOTEON 6 |
@@ -49,7 +49,7 @@ | |||
49 | #define SNDRV_SEQ_EVENT_KEYPRESS 8 | 49 | #define SNDRV_SEQ_EVENT_KEYPRESS 8 |
50 | 50 | ||
51 | /** control messages (channel specific) | 51 | /** control messages (channel specific) |
52 | * event data type = #sndrv_seq_ev_ctrl | 52 | * event data type = #snd_seq_ev_ctrl |
53 | */ | 53 | */ |
54 | #define SNDRV_SEQ_EVENT_CONTROLLER 10 | 54 | #define SNDRV_SEQ_EVENT_CONTROLLER 10 |
55 | #define SNDRV_SEQ_EVENT_PGMCHANGE 11 | 55 | #define SNDRV_SEQ_EVENT_PGMCHANGE 11 |
@@ -60,7 +60,7 @@ | |||
60 | #define SNDRV_SEQ_EVENT_REGPARAM 16 /**< 14 bit RPN address + 14 bit unsigned value */ | 60 | #define SNDRV_SEQ_EVENT_REGPARAM 16 /**< 14 bit RPN address + 14 bit unsigned value */ |
61 | 61 | ||
62 | /** synchronisation messages | 62 | /** synchronisation messages |
63 | * event data type = #sndrv_seq_ev_ctrl | 63 | * event data type = #snd_seq_ev_ctrl |
64 | */ | 64 | */ |
65 | #define SNDRV_SEQ_EVENT_SONGPOS 20 /* Song Position Pointer with LSB and MSB values */ | 65 | #define SNDRV_SEQ_EVENT_SONGPOS 20 /* Song Position Pointer with LSB and MSB values */ |
66 | #define SNDRV_SEQ_EVENT_SONGSEL 21 /* Song Select with song ID number */ | 66 | #define SNDRV_SEQ_EVENT_SONGSEL 21 /* Song Select with song ID number */ |
@@ -69,7 +69,7 @@ | |||
69 | #define SNDRV_SEQ_EVENT_KEYSIGN 24 /* SMF Key Signature event */ | 69 | #define SNDRV_SEQ_EVENT_KEYSIGN 24 /* SMF Key Signature event */ |
70 | 70 | ||
71 | /** timer messages | 71 | /** timer messages |
72 | * event data type = sndrv_seq_ev_queue_control_t | 72 | * event data type = snd_seq_ev_queue_control |
73 | */ | 73 | */ |
74 | #define SNDRV_SEQ_EVENT_START 30 /* midi Real Time Start message */ | 74 | #define SNDRV_SEQ_EVENT_START 30 /* midi Real Time Start message */ |
75 | #define SNDRV_SEQ_EVENT_CONTINUE 31 /* midi Real Time Continue message */ | 75 | #define SNDRV_SEQ_EVENT_CONTINUE 31 /* midi Real Time Continue message */ |
@@ -95,7 +95,7 @@ | |||
95 | #define SNDRV_SEQ_EVENT_OSS 51 /* OSS raw event */ | 95 | #define SNDRV_SEQ_EVENT_OSS 51 /* OSS raw event */ |
96 | 96 | ||
97 | /** system status messages (broadcast for subscribers) | 97 | /** system status messages (broadcast for subscribers) |
98 | * event data type = sndrv_seq_addr_t | 98 | * event data type = snd_seq_addr |
99 | */ | 99 | */ |
100 | #define SNDRV_SEQ_EVENT_CLIENT_START 60 /* new client has connected */ | 100 | #define SNDRV_SEQ_EVENT_CLIENT_START 60 /* new client has connected */ |
101 | #define SNDRV_SEQ_EVENT_CLIENT_EXIT 61 /* client has left the system */ | 101 | #define SNDRV_SEQ_EVENT_CLIENT_EXIT 61 /* client has left the system */ |
@@ -105,13 +105,13 @@ | |||
105 | #define SNDRV_SEQ_EVENT_PORT_CHANGE 65 /* port status/info has changed */ | 105 | #define SNDRV_SEQ_EVENT_PORT_CHANGE 65 /* port status/info has changed */ |
106 | 106 | ||
107 | /** port connection changes | 107 | /** port connection changes |
108 | * event data type = sndrv_seq_connect_t | 108 | * event data type = snd_seq_connect |
109 | */ | 109 | */ |
110 | #define SNDRV_SEQ_EVENT_PORT_SUBSCRIBED 66 /* ports connected */ | 110 | #define SNDRV_SEQ_EVENT_PORT_SUBSCRIBED 66 /* ports connected */ |
111 | #define SNDRV_SEQ_EVENT_PORT_UNSUBSCRIBED 67 /* ports disconnected */ | 111 | #define SNDRV_SEQ_EVENT_PORT_UNSUBSCRIBED 67 /* ports disconnected */ |
112 | 112 | ||
113 | /** synthesizer events | 113 | /** synthesizer events |
114 | * event data type = sndrv_seq_eve_sample_control_t | 114 | * event data type = snd_seq_eve_sample_control |
115 | */ | 115 | */ |
116 | #define SNDRV_SEQ_EVENT_SAMPLE 70 /* sample select */ | 116 | #define SNDRV_SEQ_EVENT_SAMPLE 70 /* sample select */ |
117 | #define SNDRV_SEQ_EVENT_SAMPLE_CLUSTER 71 /* sample cluster select */ | 117 | #define SNDRV_SEQ_EVENT_SAMPLE_CLUSTER 71 /* sample cluster select */ |
@@ -162,7 +162,7 @@ | |||
162 | /* 119-129: reserved */ | 162 | /* 119-129: reserved */ |
163 | 163 | ||
164 | /* 130-139: variable length events | 164 | /* 130-139: variable length events |
165 | * event data type = sndrv_seq_ev_ext | 165 | * event data type = snd_seq_ev_ext |
166 | * (SNDRV_SEQ_EVENT_LENGTH_VARIABLE must be set) | 166 | * (SNDRV_SEQ_EVENT_LENGTH_VARIABLE must be set) |
167 | */ | 167 | */ |
168 | #define SNDRV_SEQ_EVENT_SYSEX 130 /* system exclusive data (variable length) */ | 168 | #define SNDRV_SEQ_EVENT_SYSEX 130 /* system exclusive data (variable length) */ |
@@ -186,18 +186,18 @@ | |||
186 | #define SNDRV_SEQ_EVENT_NONE 255 | 186 | #define SNDRV_SEQ_EVENT_NONE 255 |
187 | 187 | ||
188 | 188 | ||
189 | typedef unsigned char sndrv_seq_event_type_t; | 189 | typedef unsigned char snd_seq_event_type_t; |
190 | 190 | ||
191 | /** event address */ | 191 | /** event address */ |
192 | struct sndrv_seq_addr { | 192 | struct snd_seq_addr { |
193 | unsigned char client; /**< Client number: 0..255, 255 = broadcast to all clients */ | 193 | unsigned char client; /**< Client number: 0..255, 255 = broadcast to all clients */ |
194 | unsigned char port; /**< Port within client: 0..255, 255 = broadcast to all ports */ | 194 | unsigned char port; /**< Port within client: 0..255, 255 = broadcast to all ports */ |
195 | }; | 195 | }; |
196 | 196 | ||
197 | /** port connection */ | 197 | /** port connection */ |
198 | struct sndrv_seq_connect { | 198 | struct snd_seq_connect { |
199 | struct sndrv_seq_addr sender; | 199 | struct snd_seq_addr sender; |
200 | struct sndrv_seq_addr dest; | 200 | struct snd_seq_addr dest; |
201 | }; | 201 | }; |
202 | 202 | ||
203 | 203 | ||
@@ -226,7 +226,7 @@ struct sndrv_seq_connect { | |||
226 | 226 | ||
227 | 227 | ||
228 | /* note event */ | 228 | /* note event */ |
229 | struct sndrv_seq_ev_note { | 229 | struct snd_seq_ev_note { |
230 | unsigned char channel; | 230 | unsigned char channel; |
231 | unsigned char note; | 231 | unsigned char note; |
232 | unsigned char velocity; | 232 | unsigned char velocity; |
@@ -235,7 +235,7 @@ struct sndrv_seq_ev_note { | |||
235 | }; | 235 | }; |
236 | 236 | ||
237 | /* controller event */ | 237 | /* controller event */ |
238 | struct sndrv_seq_ev_ctrl { | 238 | struct snd_seq_ev_ctrl { |
239 | unsigned char channel; | 239 | unsigned char channel; |
240 | unsigned char unused1, unused2, unused3; /* pad */ | 240 | unsigned char unused1, unused2, unused3; /* pad */ |
241 | unsigned int param; | 241 | unsigned int param; |
@@ -243,59 +243,59 @@ struct sndrv_seq_ev_ctrl { | |||
243 | }; | 243 | }; |
244 | 244 | ||
245 | /* generic set of bytes (12x8 bit) */ | 245 | /* generic set of bytes (12x8 bit) */ |
246 | struct sndrv_seq_ev_raw8 { | 246 | struct snd_seq_ev_raw8 { |
247 | unsigned char d[12]; /* 8 bit value */ | 247 | unsigned char d[12]; /* 8 bit value */ |
248 | }; | 248 | }; |
249 | 249 | ||
250 | /* generic set of integers (3x32 bit) */ | 250 | /* generic set of integers (3x32 bit) */ |
251 | struct sndrv_seq_ev_raw32 { | 251 | struct snd_seq_ev_raw32 { |
252 | unsigned int d[3]; /* 32 bit value */ | 252 | unsigned int d[3]; /* 32 bit value */ |
253 | }; | 253 | }; |
254 | 254 | ||
255 | /* external stored data */ | 255 | /* external stored data */ |
256 | struct sndrv_seq_ev_ext { | 256 | struct snd_seq_ev_ext { |
257 | unsigned int len; /* length of data */ | 257 | unsigned int len; /* length of data */ |
258 | void *ptr; /* pointer to data (note: maybe 64-bit) */ | 258 | void *ptr; /* pointer to data (note: maybe 64-bit) */ |
259 | } __attribute__((packed)); | 259 | } __attribute__((packed)); |
260 | 260 | ||
261 | /* Instrument cluster type */ | 261 | /* Instrument cluster type */ |
262 | typedef unsigned int sndrv_seq_instr_cluster_t; | 262 | typedef unsigned int snd_seq_instr_cluster_t; |
263 | 263 | ||
264 | /* Instrument type */ | 264 | /* Instrument type */ |
265 | struct sndrv_seq_instr { | 265 | struct snd_seq_instr { |
266 | sndrv_seq_instr_cluster_t cluster; | 266 | snd_seq_instr_cluster_t cluster; |
267 | unsigned int std; /* the upper byte means a private instrument (owner - client #) */ | 267 | unsigned int std; /* the upper byte means a private instrument (owner - client #) */ |
268 | unsigned short bank; | 268 | unsigned short bank; |
269 | unsigned short prg; | 269 | unsigned short prg; |
270 | }; | 270 | }; |
271 | 271 | ||
272 | /* sample number */ | 272 | /* sample number */ |
273 | struct sndrv_seq_ev_sample { | 273 | struct snd_seq_ev_sample { |
274 | unsigned int std; | 274 | unsigned int std; |
275 | unsigned short bank; | 275 | unsigned short bank; |
276 | unsigned short prg; | 276 | unsigned short prg; |
277 | }; | 277 | }; |
278 | 278 | ||
279 | /* sample cluster */ | 279 | /* sample cluster */ |
280 | struct sndrv_seq_ev_cluster { | 280 | struct snd_seq_ev_cluster { |
281 | sndrv_seq_instr_cluster_t cluster; | 281 | snd_seq_instr_cluster_t cluster; |
282 | }; | 282 | }; |
283 | 283 | ||
284 | /* sample position */ | 284 | /* sample position */ |
285 | typedef unsigned int sndrv_seq_position_t; /* playback position (in samples) * 16 */ | 285 | typedef unsigned int snd_seq_position_t; /* playback position (in samples) * 16 */ |
286 | 286 | ||
287 | /* sample stop mode */ | 287 | /* sample stop mode */ |
288 | enum sndrv_seq_stop_mode { | 288 | enum { |
289 | SAMPLE_STOP_IMMEDIATELY = 0, /* terminate playing immediately */ | 289 | SAMPLE_STOP_IMMEDIATELY = 0, /* terminate playing immediately */ |
290 | SAMPLE_STOP_VENVELOPE = 1, /* finish volume envelope */ | 290 | SAMPLE_STOP_VENVELOPE = 1, /* finish volume envelope */ |
291 | SAMPLE_STOP_LOOP = 2 /* terminate loop and finish wave */ | 291 | SAMPLE_STOP_LOOP = 2 /* terminate loop and finish wave */ |
292 | }; | 292 | }; |
293 | 293 | ||
294 | /* sample frequency */ | 294 | /* sample frequency */ |
295 | typedef int sndrv_seq_frequency_t; /* playback frequency in HZ * 16 */ | 295 | typedef int snd_seq_frequency_t; /* playback frequency in HZ * 16 */ |
296 | 296 | ||
297 | /* sample volume control; if any value is set to -1 == do not change */ | 297 | /* sample volume control; if any value is set to -1 == do not change */ |
298 | struct sndrv_seq_ev_volume { | 298 | struct snd_seq_ev_volume { |
299 | signed short volume; /* range: 0-16383 */ | 299 | signed short volume; /* range: 0-16383 */ |
300 | signed short lr; /* left-right balance; range: 0-16383 */ | 300 | signed short lr; /* left-right balance; range: 0-16383 */ |
301 | signed short fr; /* front-rear balance; range: 0-16383 */ | 301 | signed short fr; /* front-rear balance; range: 0-16383 */ |
@@ -303,22 +303,22 @@ struct sndrv_seq_ev_volume { | |||
303 | }; | 303 | }; |
304 | 304 | ||
305 | /* simple loop redefinition */ | 305 | /* simple loop redefinition */ |
306 | struct sndrv_seq_ev_loop { | 306 | struct snd_seq_ev_loop { |
307 | unsigned int start; /* loop start (in samples) * 16 */ | 307 | unsigned int start; /* loop start (in samples) * 16 */ |
308 | unsigned int end; /* loop end (in samples) * 16 */ | 308 | unsigned int end; /* loop end (in samples) * 16 */ |
309 | }; | 309 | }; |
310 | 310 | ||
311 | struct sndrv_seq_ev_sample_control { | 311 | struct snd_seq_ev_sample_control { |
312 | unsigned char channel; | 312 | unsigned char channel; |
313 | unsigned char unused1, unused2, unused3; /* pad */ | 313 | unsigned char unused1, unused2, unused3; /* pad */ |
314 | union { | 314 | union { |
315 | struct sndrv_seq_ev_sample sample; | 315 | struct snd_seq_ev_sample sample; |
316 | struct sndrv_seq_ev_cluster cluster; | 316 | struct snd_seq_ev_cluster cluster; |
317 | sndrv_seq_position_t position; | 317 | snd_seq_position_t position; |
318 | enum sndrv_seq_stop_mode stop_mode; | 318 | int stop_mode; |
319 | sndrv_seq_frequency_t frequency; | 319 | snd_seq_frequency_t frequency; |
320 | struct sndrv_seq_ev_volume volume; | 320 | struct snd_seq_ev_volume volume; |
321 | struct sndrv_seq_ev_loop loop; | 321 | struct snd_seq_ev_loop loop; |
322 | unsigned char raw8[8]; | 322 | unsigned char raw8[8]; |
323 | } param; | 323 | } param; |
324 | }; | 324 | }; |
@@ -326,82 +326,82 @@ struct sndrv_seq_ev_sample_control { | |||
326 | 326 | ||
327 | 327 | ||
328 | /* INSTR_BEGIN event */ | 328 | /* INSTR_BEGIN event */ |
329 | struct sndrv_seq_ev_instr_begin { | 329 | struct snd_seq_ev_instr_begin { |
330 | int timeout; /* zero = forever, otherwise timeout in ms */ | 330 | int timeout; /* zero = forever, otherwise timeout in ms */ |
331 | }; | 331 | }; |
332 | 332 | ||
333 | struct sndrv_seq_result { | 333 | struct snd_seq_result { |
334 | int event; /* processed event type */ | 334 | int event; /* processed event type */ |
335 | int result; | 335 | int result; |
336 | }; | 336 | }; |
337 | 337 | ||
338 | 338 | ||
339 | struct sndrv_seq_real_time { | 339 | struct snd_seq_real_time { |
340 | unsigned int tv_sec; /* seconds */ | 340 | unsigned int tv_sec; /* seconds */ |
341 | unsigned int tv_nsec; /* nanoseconds */ | 341 | unsigned int tv_nsec; /* nanoseconds */ |
342 | }; | 342 | }; |
343 | 343 | ||
344 | typedef unsigned int sndrv_seq_tick_time_t; /* midi ticks */ | 344 | typedef unsigned int snd_seq_tick_time_t; /* midi ticks */ |
345 | 345 | ||
346 | union sndrv_seq_timestamp { | 346 | union snd_seq_timestamp { |
347 | sndrv_seq_tick_time_t tick; | 347 | snd_seq_tick_time_t tick; |
348 | struct sndrv_seq_real_time time; | 348 | struct snd_seq_real_time time; |
349 | }; | 349 | }; |
350 | 350 | ||
351 | struct sndrv_seq_queue_skew { | 351 | struct snd_seq_queue_skew { |
352 | unsigned int value; | 352 | unsigned int value; |
353 | unsigned int base; | 353 | unsigned int base; |
354 | }; | 354 | }; |
355 | 355 | ||
356 | /* queue timer control */ | 356 | /* queue timer control */ |
357 | struct sndrv_seq_ev_queue_control { | 357 | struct snd_seq_ev_queue_control { |
358 | unsigned char queue; /* affected queue */ | 358 | unsigned char queue; /* affected queue */ |
359 | unsigned char pad[3]; /* reserved */ | 359 | unsigned char pad[3]; /* reserved */ |
360 | union { | 360 | union { |
361 | signed int value; /* affected value (e.g. tempo) */ | 361 | signed int value; /* affected value (e.g. tempo) */ |
362 | union sndrv_seq_timestamp time; /* time */ | 362 | union snd_seq_timestamp time; /* time */ |
363 | unsigned int position; /* sync position */ | 363 | unsigned int position; /* sync position */ |
364 | struct sndrv_seq_queue_skew skew; | 364 | struct snd_seq_queue_skew skew; |
365 | unsigned int d32[2]; | 365 | unsigned int d32[2]; |
366 | unsigned char d8[8]; | 366 | unsigned char d8[8]; |
367 | } param; | 367 | } param; |
368 | }; | 368 | }; |
369 | 369 | ||
370 | /* quoted event - inside the kernel only */ | 370 | /* quoted event - inside the kernel only */ |
371 | struct sndrv_seq_ev_quote { | 371 | struct snd_seq_ev_quote { |
372 | struct sndrv_seq_addr origin; /* original sender */ | 372 | struct snd_seq_addr origin; /* original sender */ |
373 | unsigned short value; /* optional data */ | 373 | unsigned short value; /* optional data */ |
374 | struct sndrv_seq_event *event; /* quoted event */ | 374 | struct snd_seq_event *event; /* quoted event */ |
375 | } __attribute__((packed)); | 375 | } __attribute__((packed)); |
376 | 376 | ||
377 | 377 | ||
378 | /* sequencer event */ | 378 | /* sequencer event */ |
379 | struct sndrv_seq_event { | 379 | struct snd_seq_event { |
380 | sndrv_seq_event_type_t type; /* event type */ | 380 | snd_seq_event_type_t type; /* event type */ |
381 | unsigned char flags; /* event flags */ | 381 | unsigned char flags; /* event flags */ |
382 | char tag; | 382 | char tag; |
383 | 383 | ||
384 | unsigned char queue; /* schedule queue */ | 384 | unsigned char queue; /* schedule queue */ |
385 | union sndrv_seq_timestamp time; /* schedule time */ | 385 | union snd_seq_timestamp time; /* schedule time */ |
386 | 386 | ||
387 | 387 | ||
388 | struct sndrv_seq_addr source; /* source address */ | 388 | struct snd_seq_addr source; /* source address */ |
389 | struct sndrv_seq_addr dest; /* destination address */ | 389 | struct snd_seq_addr dest; /* destination address */ |
390 | 390 | ||
391 | union { /* event data... */ | 391 | union { /* event data... */ |
392 | struct sndrv_seq_ev_note note; | 392 | struct snd_seq_ev_note note; |
393 | struct sndrv_seq_ev_ctrl control; | 393 | struct snd_seq_ev_ctrl control; |
394 | struct sndrv_seq_ev_raw8 raw8; | 394 | struct snd_seq_ev_raw8 raw8; |
395 | struct sndrv_seq_ev_raw32 raw32; | 395 | struct snd_seq_ev_raw32 raw32; |
396 | struct sndrv_seq_ev_ext ext; | 396 | struct snd_seq_ev_ext ext; |
397 | struct sndrv_seq_ev_queue_control queue; | 397 | struct snd_seq_ev_queue_control queue; |
398 | union sndrv_seq_timestamp time; | 398 | union snd_seq_timestamp time; |
399 | struct sndrv_seq_addr addr; | 399 | struct snd_seq_addr addr; |
400 | struct sndrv_seq_connect connect; | 400 | struct snd_seq_connect connect; |
401 | struct sndrv_seq_result result; | 401 | struct snd_seq_result result; |
402 | struct sndrv_seq_ev_instr_begin instr_begin; | 402 | struct snd_seq_ev_instr_begin instr_begin; |
403 | struct sndrv_seq_ev_sample_control sample; | 403 | struct snd_seq_ev_sample_control sample; |
404 | struct sndrv_seq_ev_quote quote; | 404 | struct snd_seq_ev_quote quote; |
405 | } data; | 405 | } data; |
406 | }; | 406 | }; |
407 | 407 | ||
@@ -409,72 +409,77 @@ struct sndrv_seq_event { | |||
409 | /* | 409 | /* |
410 | * bounce event - stored as variable size data | 410 | * bounce event - stored as variable size data |
411 | */ | 411 | */ |
412 | struct sndrv_seq_event_bounce { | 412 | struct snd_seq_event_bounce { |
413 | int err; | 413 | int err; |
414 | struct sndrv_seq_event event; | 414 | struct snd_seq_event event; |
415 | /* external data follows here. */ | 415 | /* external data follows here. */ |
416 | }; | 416 | }; |
417 | 417 | ||
418 | #define sndrv_seq_event_bounce_ext_data(ev) ((void*)((char *)(ev)->data.ext.ptr + sizeof(sndrv_seq_event_bounce_t))) | 418 | #ifdef __KERNEL__ |
419 | |||
420 | /* helper macro */ | ||
421 | #define snd_seq_event_bounce_ext_data(ev) ((void*)((char *)(ev)->data.ext.ptr + sizeof(struct snd_seq_event_bounce))) | ||
419 | 422 | ||
420 | /* | 423 | /* |
421 | * type check macros | 424 | * type check macros |
422 | */ | 425 | */ |
423 | /* result events: 0-4 */ | 426 | /* result events: 0-4 */ |
424 | #define sndrv_seq_ev_is_result_type(ev) ((ev)->type < 5) | 427 | #define snd_seq_ev_is_result_type(ev) ((ev)->type < 5) |
425 | /* channel specific events: 5-19 */ | 428 | /* channel specific events: 5-19 */ |
426 | #define sndrv_seq_ev_is_channel_type(ev) ((ev)->type >= 5 && (ev)->type < 20) | 429 | #define snd_seq_ev_is_channel_type(ev) ((ev)->type >= 5 && (ev)->type < 20) |
427 | /* note events: 5-9 */ | 430 | /* note events: 5-9 */ |
428 | #define sndrv_seq_ev_is_note_type(ev) ((ev)->type >= 5 && (ev)->type < 10) | 431 | #define snd_seq_ev_is_note_type(ev) ((ev)->type >= 5 && (ev)->type < 10) |
429 | /* control events: 10-19 */ | 432 | /* control events: 10-19 */ |
430 | #define sndrv_seq_ev_is_control_type(ev) ((ev)->type >= 10 && (ev)->type < 20) | 433 | #define snd_seq_ev_is_control_type(ev) ((ev)->type >= 10 && (ev)->type < 20) |
431 | /* queue control events: 30-39 */ | 434 | /* queue control events: 30-39 */ |
432 | #define sndrv_seq_ev_is_queue_type(ev) ((ev)->type >= 30 && (ev)->type < 40) | 435 | #define snd_seq_ev_is_queue_type(ev) ((ev)->type >= 30 && (ev)->type < 40) |
433 | /* system status messages */ | 436 | /* system status messages */ |
434 | #define sndrv_seq_ev_is_message_type(ev) ((ev)->type >= 60 && (ev)->type < 69) | 437 | #define snd_seq_ev_is_message_type(ev) ((ev)->type >= 60 && (ev)->type < 69) |
435 | /* sample messages */ | 438 | /* sample messages */ |
436 | #define sndrv_seq_ev_is_sample_type(ev) ((ev)->type >= 70 && (ev)->type < 79) | 439 | #define snd_seq_ev_is_sample_type(ev) ((ev)->type >= 70 && (ev)->type < 79) |
437 | /* user-defined messages */ | 440 | /* user-defined messages */ |
438 | #define sndrv_seq_ev_is_user_type(ev) ((ev)->type >= 90 && (ev)->type < 99) | 441 | #define snd_seq_ev_is_user_type(ev) ((ev)->type >= 90 && (ev)->type < 99) |
439 | /* fixed length events: 0-99 */ | 442 | /* fixed length events: 0-99 */ |
440 | #define sndrv_seq_ev_is_fixed_type(ev) ((ev)->type < 100) | 443 | #define snd_seq_ev_is_fixed_type(ev) ((ev)->type < 100) |
441 | /* instrument layer events: 100-129 */ | 444 | /* instrument layer events: 100-129 */ |
442 | #define sndrv_seq_ev_is_instr_type(ev) ((ev)->type >= 100 && (ev)->type < 130) | 445 | #define snd_seq_ev_is_instr_type(ev) ((ev)->type >= 100 && (ev)->type < 130) |
443 | /* variable length events: 130-139 */ | 446 | /* variable length events: 130-139 */ |
444 | #define sndrv_seq_ev_is_variable_type(ev) ((ev)->type >= 130 && (ev)->type < 140) | 447 | #define snd_seq_ev_is_variable_type(ev) ((ev)->type >= 130 && (ev)->type < 140) |
445 | /* reserved for kernel */ | 448 | /* reserved for kernel */ |
446 | #define sndrv_seq_ev_is_reserved(ev) ((ev)->type >= 150) | 449 | #define snd_seq_ev_is_reserved(ev) ((ev)->type >= 150) |
447 | 450 | ||
448 | /* direct dispatched events */ | 451 | /* direct dispatched events */ |
449 | #define sndrv_seq_ev_is_direct(ev) ((ev)->queue == SNDRV_SEQ_QUEUE_DIRECT) | 452 | #define snd_seq_ev_is_direct(ev) ((ev)->queue == SNDRV_SEQ_QUEUE_DIRECT) |
450 | 453 | ||
451 | /* | 454 | /* |
452 | * macros to check event flags | 455 | * macros to check event flags |
453 | */ | 456 | */ |
454 | /* prior events */ | 457 | /* prior events */ |
455 | #define sndrv_seq_ev_is_prior(ev) (((ev)->flags & SNDRV_SEQ_PRIORITY_MASK) == SNDRV_SEQ_PRIORITY_HIGH) | 458 | #define snd_seq_ev_is_prior(ev) (((ev)->flags & SNDRV_SEQ_PRIORITY_MASK) == SNDRV_SEQ_PRIORITY_HIGH) |
456 | 459 | ||
457 | /* event length type */ | 460 | /* event length type */ |
458 | #define sndrv_seq_ev_length_type(ev) ((ev)->flags & SNDRV_SEQ_EVENT_LENGTH_MASK) | 461 | #define snd_seq_ev_length_type(ev) ((ev)->flags & SNDRV_SEQ_EVENT_LENGTH_MASK) |
459 | #define sndrv_seq_ev_is_fixed(ev) (sndrv_seq_ev_length_type(ev) == SNDRV_SEQ_EVENT_LENGTH_FIXED) | 462 | #define snd_seq_ev_is_fixed(ev) (snd_seq_ev_length_type(ev) == SNDRV_SEQ_EVENT_LENGTH_FIXED) |
460 | #define sndrv_seq_ev_is_variable(ev) (sndrv_seq_ev_length_type(ev) == SNDRV_SEQ_EVENT_LENGTH_VARIABLE) | 463 | #define snd_seq_ev_is_variable(ev) (snd_seq_ev_length_type(ev) == SNDRV_SEQ_EVENT_LENGTH_VARIABLE) |
461 | #define sndrv_seq_ev_is_varusr(ev) (sndrv_seq_ev_length_type(ev) == SNDRV_SEQ_EVENT_LENGTH_VARUSR) | 464 | #define snd_seq_ev_is_varusr(ev) (snd_seq_ev_length_type(ev) == SNDRV_SEQ_EVENT_LENGTH_VARUSR) |
462 | 465 | ||
463 | /* time-stamp type */ | 466 | /* time-stamp type */ |
464 | #define sndrv_seq_ev_timestamp_type(ev) ((ev)->flags & SNDRV_SEQ_TIME_STAMP_MASK) | 467 | #define snd_seq_ev_timestamp_type(ev) ((ev)->flags & SNDRV_SEQ_TIME_STAMP_MASK) |
465 | #define sndrv_seq_ev_is_tick(ev) (sndrv_seq_ev_timestamp_type(ev) == SNDRV_SEQ_TIME_STAMP_TICK) | 468 | #define snd_seq_ev_is_tick(ev) (snd_seq_ev_timestamp_type(ev) == SNDRV_SEQ_TIME_STAMP_TICK) |
466 | #define sndrv_seq_ev_is_real(ev) (sndrv_seq_ev_timestamp_type(ev) == SNDRV_SEQ_TIME_STAMP_REAL) | 469 | #define snd_seq_ev_is_real(ev) (snd_seq_ev_timestamp_type(ev) == SNDRV_SEQ_TIME_STAMP_REAL) |
467 | 470 | ||
468 | /* time-mode type */ | 471 | /* time-mode type */ |
469 | #define sndrv_seq_ev_timemode_type(ev) ((ev)->flags & SNDRV_SEQ_TIME_MODE_MASK) | 472 | #define snd_seq_ev_timemode_type(ev) ((ev)->flags & SNDRV_SEQ_TIME_MODE_MASK) |
470 | #define sndrv_seq_ev_is_abstime(ev) (sndrv_seq_ev_timemode_type(ev) == SNDRV_SEQ_TIME_MODE_ABS) | 473 | #define snd_seq_ev_is_abstime(ev) (snd_seq_ev_timemode_type(ev) == SNDRV_SEQ_TIME_MODE_ABS) |
471 | #define sndrv_seq_ev_is_reltime(ev) (sndrv_seq_ev_timemode_type(ev) == SNDRV_SEQ_TIME_MODE_REL) | 474 | #define snd_seq_ev_is_reltime(ev) (snd_seq_ev_timemode_type(ev) == SNDRV_SEQ_TIME_MODE_REL) |
472 | 475 | ||
473 | /* queue sync port */ | 476 | /* queue sync port */ |
474 | #define sndrv_seq_queue_sync_port(q) ((q) + 16) | 477 | #define snd_seq_queue_sync_port(q) ((q) + 16) |
478 | |||
479 | #endif /* __KERNEL__ */ | ||
475 | 480 | ||
476 | /* system information */ | 481 | /* system information */ |
477 | struct sndrv_seq_system_info { | 482 | struct snd_seq_system_info { |
478 | int queues; /* maximum queues count */ | 483 | int queues; /* maximum queues count */ |
479 | int clients; /* maximum clients count */ | 484 | int clients; /* maximum clients count */ |
480 | int ports; /* maximum ports per client */ | 485 | int ports; /* maximum ports per client */ |
@@ -486,7 +491,7 @@ struct sndrv_seq_system_info { | |||
486 | 491 | ||
487 | 492 | ||
488 | /* system running information */ | 493 | /* system running information */ |
489 | struct sndrv_seq_running_info { | 494 | struct snd_seq_running_info { |
490 | unsigned char client; /* client id */ | 495 | unsigned char client; /* client id */ |
491 | unsigned char big_endian; /* 1 = big-endian */ | 496 | unsigned char big_endian; /* 1 = big-endian */ |
492 | unsigned char cpu_mode; /* 4 = 32bit, 8 = 64bit */ | 497 | unsigned char cpu_mode; /* 4 = 32bit, 8 = 64bit */ |
@@ -502,11 +507,10 @@ struct sndrv_seq_running_info { | |||
502 | 507 | ||
503 | 508 | ||
504 | /* client types */ | 509 | /* client types */ |
505 | enum sndrv_seq_client_type { | 510 | typedef int __bitwise snd_seq_client_type_t; |
506 | NO_CLIENT = 0, | 511 | #define NO_CLIENT ((__force snd_seq_client_type_t) 0) |
507 | USER_CLIENT = 1, | 512 | #define USER_CLIENT ((__force snd_seq_client_type_t) 1) |
508 | KERNEL_CLIENT = 2 | 513 | #define KERNEL_CLIENT ((__force snd_seq_client_type_t) 2) |
509 | }; | ||
510 | 514 | ||
511 | /* event filter flags */ | 515 | /* event filter flags */ |
512 | #define SNDRV_SEQ_FILTER_BROADCAST (1<<0) /* accept broadcast messages */ | 516 | #define SNDRV_SEQ_FILTER_BROADCAST (1<<0) /* accept broadcast messages */ |
@@ -514,9 +518,9 @@ enum sndrv_seq_client_type { | |||
514 | #define SNDRV_SEQ_FILTER_BOUNCE (1<<2) /* accept bounce event in error */ | 518 | #define SNDRV_SEQ_FILTER_BOUNCE (1<<2) /* accept bounce event in error */ |
515 | #define SNDRV_SEQ_FILTER_USE_EVENT (1<<31) /* use event filter */ | 519 | #define SNDRV_SEQ_FILTER_USE_EVENT (1<<31) /* use event filter */ |
516 | 520 | ||
517 | struct sndrv_seq_client_info { | 521 | struct snd_seq_client_info { |
518 | int client; /* client number to inquire */ | 522 | int client; /* client number to inquire */ |
519 | enum sndrv_seq_client_type type; /* client type */ | 523 | snd_seq_client_type_t type; /* client type */ |
520 | char name[64]; /* client name */ | 524 | char name[64]; /* client name */ |
521 | unsigned int filter; /* filter flags */ | 525 | unsigned int filter; /* filter flags */ |
522 | unsigned char multicast_filter[8]; /* multicast filter bitmap */ | 526 | unsigned char multicast_filter[8]; /* multicast filter bitmap */ |
@@ -528,7 +532,7 @@ struct sndrv_seq_client_info { | |||
528 | 532 | ||
529 | 533 | ||
530 | /* client pool size */ | 534 | /* client pool size */ |
531 | struct sndrv_seq_client_pool { | 535 | struct snd_seq_client_pool { |
532 | int client; /* client number to inquire */ | 536 | int client; /* client number to inquire */ |
533 | int output_pool; /* outgoing (write) pool size */ | 537 | int output_pool; /* outgoing (write) pool size */ |
534 | int input_pool; /* incoming (read) pool size */ | 538 | int input_pool; /* incoming (read) pool size */ |
@@ -552,13 +556,13 @@ struct sndrv_seq_client_pool { | |||
552 | #define SNDRV_SEQ_REMOVE_IGNORE_OFF (1<<8) /* Do not flush off events */ | 556 | #define SNDRV_SEQ_REMOVE_IGNORE_OFF (1<<8) /* Do not flush off events */ |
553 | #define SNDRV_SEQ_REMOVE_TAG_MATCH (1<<9) /* Restrict to events with given tag */ | 557 | #define SNDRV_SEQ_REMOVE_TAG_MATCH (1<<9) /* Restrict to events with given tag */ |
554 | 558 | ||
555 | struct sndrv_seq_remove_events { | 559 | struct snd_seq_remove_events { |
556 | unsigned int remove_mode; /* Flags that determine what gets removed */ | 560 | unsigned int remove_mode; /* Flags that determine what gets removed */ |
557 | 561 | ||
558 | union sndrv_seq_timestamp time; | 562 | union snd_seq_timestamp time; |
559 | 563 | ||
560 | unsigned char queue; /* Queue for REMOVE_DEST */ | 564 | unsigned char queue; /* Queue for REMOVE_DEST */ |
561 | struct sndrv_seq_addr dest; /* Address for REMOVE_DEST */ | 565 | struct snd_seq_addr dest; /* Address for REMOVE_DEST */ |
562 | unsigned char channel; /* Channel for REMOVE_DEST */ | 566 | unsigned char channel; /* Channel for REMOVE_DEST */ |
563 | 567 | ||
564 | int type; /* For REMOVE_EVENT_TYPE */ | 568 | int type; /* For REMOVE_EVENT_TYPE */ |
@@ -607,8 +611,8 @@ struct sndrv_seq_remove_events { | |||
607 | #define SNDRV_SEQ_PORT_FLG_TIMESTAMP (1<<1) | 611 | #define SNDRV_SEQ_PORT_FLG_TIMESTAMP (1<<1) |
608 | #define SNDRV_SEQ_PORT_FLG_TIME_REAL (1<<2) | 612 | #define SNDRV_SEQ_PORT_FLG_TIME_REAL (1<<2) |
609 | 613 | ||
610 | struct sndrv_seq_port_info { | 614 | struct snd_seq_port_info { |
611 | struct sndrv_seq_addr addr; /* client/port numbers */ | 615 | struct snd_seq_addr addr; /* client/port numbers */ |
612 | char name[64]; /* port name */ | 616 | char name[64]; /* port name */ |
613 | 617 | ||
614 | unsigned int capability; /* port capability bits */ | 618 | unsigned int capability; /* port capability bits */ |
@@ -631,7 +635,7 @@ struct sndrv_seq_port_info { | |||
631 | #define SNDRV_SEQ_QUEUE_FLG_SYNC (1<<0) /* sync enabled */ | 635 | #define SNDRV_SEQ_QUEUE_FLG_SYNC (1<<0) /* sync enabled */ |
632 | 636 | ||
633 | /* queue information */ | 637 | /* queue information */ |
634 | struct sndrv_seq_queue_info { | 638 | struct snd_seq_queue_info { |
635 | int queue; /* queue id */ | 639 | int queue; /* queue id */ |
636 | 640 | ||
637 | /* | 641 | /* |
@@ -647,11 +651,11 @@ struct sndrv_seq_queue_info { | |||
647 | }; | 651 | }; |
648 | 652 | ||
649 | /* queue info/status */ | 653 | /* queue info/status */ |
650 | struct sndrv_seq_queue_status { | 654 | struct snd_seq_queue_status { |
651 | int queue; /* queue id */ | 655 | int queue; /* queue id */ |
652 | int events; /* read-only - queue size */ | 656 | int events; /* read-only - queue size */ |
653 | sndrv_seq_tick_time_t tick; /* current tick */ | 657 | snd_seq_tick_time_t tick; /* current tick */ |
654 | struct sndrv_seq_real_time time; /* current time */ | 658 | struct snd_seq_real_time time; /* current time */ |
655 | int running; /* running state of queue */ | 659 | int running; /* running state of queue */ |
656 | int flags; /* various flags */ | 660 | int flags; /* various flags */ |
657 | char reserved[64]; /* for the future */ | 661 | char reserved[64]; /* for the future */ |
@@ -659,7 +663,7 @@ struct sndrv_seq_queue_status { | |||
659 | 663 | ||
660 | 664 | ||
661 | /* queue tempo */ | 665 | /* queue tempo */ |
662 | struct sndrv_seq_queue_tempo { | 666 | struct snd_seq_queue_tempo { |
663 | int queue; /* sequencer queue */ | 667 | int queue; /* sequencer queue */ |
664 | unsigned int tempo; /* current tempo, us/tick */ | 668 | unsigned int tempo; /* current tempo, us/tick */ |
665 | int ppq; /* time resolution, ticks/quarter */ | 669 | int ppq; /* time resolution, ticks/quarter */ |
@@ -675,12 +679,12 @@ struct sndrv_seq_queue_tempo { | |||
675 | #define SNDRV_SEQ_TIMER_MIDI_TICK 2 /* Midi Timer Tick (TICK event) */ | 679 | #define SNDRV_SEQ_TIMER_MIDI_TICK 2 /* Midi Timer Tick (TICK event) */ |
676 | 680 | ||
677 | /* queue timer info */ | 681 | /* queue timer info */ |
678 | struct sndrv_seq_queue_timer { | 682 | struct snd_seq_queue_timer { |
679 | int queue; /* sequencer queue */ | 683 | int queue; /* sequencer queue */ |
680 | int type; /* source timer type */ | 684 | int type; /* source timer type */ |
681 | union { | 685 | union { |
682 | struct { | 686 | struct { |
683 | struct sndrv_timer_id id; /* ALSA's timer ID */ | 687 | struct snd_timer_id id; /* ALSA's timer ID */ |
684 | unsigned int resolution; /* resolution in Hz */ | 688 | unsigned int resolution; /* resolution in Hz */ |
685 | } alsa; | 689 | } alsa; |
686 | } u; | 690 | } u; |
@@ -688,7 +692,7 @@ struct sndrv_seq_queue_timer { | |||
688 | }; | 692 | }; |
689 | 693 | ||
690 | 694 | ||
691 | struct sndrv_seq_queue_client { | 695 | struct snd_seq_queue_client { |
692 | int queue; /* sequencer queue */ | 696 | int queue; /* sequencer queue */ |
693 | int client; /* sequencer client */ | 697 | int client; /* sequencer client */ |
694 | int used; /* queue is used with this client | 698 | int used; /* queue is used with this client |
@@ -702,9 +706,9 @@ struct sndrv_seq_queue_client { | |||
702 | #define SNDRV_SEQ_PORT_SUBS_TIMESTAMP (1<<1) | 706 | #define SNDRV_SEQ_PORT_SUBS_TIMESTAMP (1<<1) |
703 | #define SNDRV_SEQ_PORT_SUBS_TIME_REAL (1<<2) | 707 | #define SNDRV_SEQ_PORT_SUBS_TIME_REAL (1<<2) |
704 | 708 | ||
705 | struct sndrv_seq_port_subscribe { | 709 | struct snd_seq_port_subscribe { |
706 | struct sndrv_seq_addr sender; /* sender address */ | 710 | struct snd_seq_addr sender; /* sender address */ |
707 | struct sndrv_seq_addr dest; /* destination address */ | 711 | struct snd_seq_addr dest; /* destination address */ |
708 | unsigned int voices; /* number of voices to be allocated (0 = don't care) */ | 712 | unsigned int voices; /* number of voices to be allocated (0 = don't care) */ |
709 | unsigned int flags; /* modes */ | 713 | unsigned int flags; /* modes */ |
710 | unsigned char queue; /* input time-stamp queue (optional) */ | 714 | unsigned char queue; /* input time-stamp queue (optional) */ |
@@ -716,12 +720,12 @@ struct sndrv_seq_port_subscribe { | |||
716 | #define SNDRV_SEQ_QUERY_SUBS_READ 0 | 720 | #define SNDRV_SEQ_QUERY_SUBS_READ 0 |
717 | #define SNDRV_SEQ_QUERY_SUBS_WRITE 1 | 721 | #define SNDRV_SEQ_QUERY_SUBS_WRITE 1 |
718 | 722 | ||
719 | struct sndrv_seq_query_subs { | 723 | struct snd_seq_query_subs { |
720 | struct sndrv_seq_addr root; /* client/port id to be searched */ | 724 | struct snd_seq_addr root; /* client/port id to be searched */ |
721 | int type; /* READ or WRITE */ | 725 | int type; /* READ or WRITE */ |
722 | int index; /* 0..N-1 */ | 726 | int index; /* 0..N-1 */ |
723 | int num_subs; /* R/O: number of subscriptions on this port */ | 727 | int num_subs; /* R/O: number of subscriptions on this port */ |
724 | struct sndrv_seq_addr addr; /* R/O: result */ | 728 | struct snd_seq_addr addr; /* R/O: result */ |
725 | unsigned char queue; /* R/O: result */ | 729 | unsigned char queue; /* R/O: result */ |
726 | unsigned int flags; /* R/O: result */ | 730 | unsigned int flags; /* R/O: result */ |
727 | char reserved[64]; /* for future use */ | 731 | char reserved[64]; /* for future use */ |
@@ -778,72 +782,72 @@ struct sndrv_seq_query_subs { | |||
778 | #define SNDRV_SEQ_INSTR_FREE_CMD_SINGLE 3 | 782 | #define SNDRV_SEQ_INSTR_FREE_CMD_SINGLE 3 |
779 | 783 | ||
780 | /* size of ROM/RAM */ | 784 | /* size of ROM/RAM */ |
781 | typedef unsigned int sndrv_seq_instr_size_t; | 785 | typedef unsigned int snd_seq_instr_size_t; |
782 | 786 | ||
783 | /* INSTR_INFO */ | 787 | /* INSTR_INFO */ |
784 | 788 | ||
785 | struct sndrv_seq_instr_info { | 789 | struct snd_seq_instr_info { |
786 | int result; /* operation result */ | 790 | int result; /* operation result */ |
787 | unsigned int formats[8]; /* bitmap of supported formats */ | 791 | unsigned int formats[8]; /* bitmap of supported formats */ |
788 | int ram_count; /* count of RAM banks */ | 792 | int ram_count; /* count of RAM banks */ |
789 | sndrv_seq_instr_size_t ram_sizes[16]; /* size of RAM banks */ | 793 | snd_seq_instr_size_t ram_sizes[16]; /* size of RAM banks */ |
790 | int rom_count; /* count of ROM banks */ | 794 | int rom_count; /* count of ROM banks */ |
791 | sndrv_seq_instr_size_t rom_sizes[8]; /* size of ROM banks */ | 795 | snd_seq_instr_size_t rom_sizes[8]; /* size of ROM banks */ |
792 | char reserved[128]; | 796 | char reserved[128]; |
793 | }; | 797 | }; |
794 | 798 | ||
795 | /* INSTR_STATUS */ | 799 | /* INSTR_STATUS */ |
796 | 800 | ||
797 | struct sndrv_seq_instr_status { | 801 | struct snd_seq_instr_status { |
798 | int result; /* operation result */ | 802 | int result; /* operation result */ |
799 | sndrv_seq_instr_size_t free_ram[16]; /* free RAM in banks */ | 803 | snd_seq_instr_size_t free_ram[16]; /* free RAM in banks */ |
800 | int instrument_count; /* count of downloaded instruments */ | 804 | int instrument_count; /* count of downloaded instruments */ |
801 | char reserved[128]; | 805 | char reserved[128]; |
802 | }; | 806 | }; |
803 | 807 | ||
804 | /* INSTR_FORMAT_INFO */ | 808 | /* INSTR_FORMAT_INFO */ |
805 | 809 | ||
806 | struct sndrv_seq_instr_format_info { | 810 | struct snd_seq_instr_format_info { |
807 | char format[16]; /* format identifier - SNDRV_SEQ_INSTR_ID_* */ | 811 | char format[16]; /* format identifier - SNDRV_SEQ_INSTR_ID_* */ |
808 | unsigned int len; /* max data length (without this structure) */ | 812 | unsigned int len; /* max data length (without this structure) */ |
809 | }; | 813 | }; |
810 | 814 | ||
811 | struct sndrv_seq_instr_format_info_result { | 815 | struct snd_seq_instr_format_info_result { |
812 | int result; /* operation result */ | 816 | int result; /* operation result */ |
813 | char format[16]; /* format identifier */ | 817 | char format[16]; /* format identifier */ |
814 | unsigned int len; /* filled data length (without this structure) */ | 818 | unsigned int len; /* filled data length (without this structure) */ |
815 | }; | 819 | }; |
816 | 820 | ||
817 | /* instrument data */ | 821 | /* instrument data */ |
818 | struct sndrv_seq_instr_data { | 822 | struct snd_seq_instr_data { |
819 | char name[32]; /* instrument name */ | 823 | char name[32]; /* instrument name */ |
820 | char reserved[16]; /* for the future use */ | 824 | char reserved[16]; /* for the future use */ |
821 | int type; /* instrument type */ | 825 | int type; /* instrument type */ |
822 | union { | 826 | union { |
823 | char format[16]; /* format identifier */ | 827 | char format[16]; /* format identifier */ |
824 | struct sndrv_seq_instr alias; | 828 | struct snd_seq_instr alias; |
825 | } data; | 829 | } data; |
826 | }; | 830 | }; |
827 | 831 | ||
828 | /* INSTR_PUT/GET, data are stored in one block (extended), header + data */ | 832 | /* INSTR_PUT/GET, data are stored in one block (extended), header + data */ |
829 | 833 | ||
830 | struct sndrv_seq_instr_header { | 834 | struct snd_seq_instr_header { |
831 | union { | 835 | union { |
832 | struct sndrv_seq_instr instr; | 836 | struct snd_seq_instr instr; |
833 | sndrv_seq_instr_cluster_t cluster; | 837 | snd_seq_instr_cluster_t cluster; |
834 | } id; /* instrument identifier */ | 838 | } id; /* instrument identifier */ |
835 | unsigned int cmd; /* get/put/free command */ | 839 | unsigned int cmd; /* get/put/free command */ |
836 | unsigned int flags; /* query flags (only for get) */ | 840 | unsigned int flags; /* query flags (only for get) */ |
837 | unsigned int len; /* real instrument data length (without header) */ | 841 | unsigned int len; /* real instrument data length (without header) */ |
838 | int result; /* operation result */ | 842 | int result; /* operation result */ |
839 | char reserved[16]; /* for the future */ | 843 | char reserved[16]; /* for the future */ |
840 | struct sndrv_seq_instr_data data; /* instrument data (for put/get result) */ | 844 | struct snd_seq_instr_data data; /* instrument data (for put/get result) */ |
841 | }; | 845 | }; |
842 | 846 | ||
843 | /* INSTR_CLUSTER_SET */ | 847 | /* INSTR_CLUSTER_SET */ |
844 | 848 | ||
845 | struct sndrv_seq_instr_cluster_set { | 849 | struct snd_seq_instr_cluster_set { |
846 | sndrv_seq_instr_cluster_t cluster; /* cluster identifier */ | 850 | snd_seq_instr_cluster_t cluster; /* cluster identifier */ |
847 | char name[32]; /* cluster name */ | 851 | char name[32]; /* cluster name */ |
848 | int priority; /* cluster priority */ | 852 | int priority; /* cluster priority */ |
849 | char reserved[64]; /* for the future use */ | 853 | char reserved[64]; /* for the future use */ |
@@ -851,8 +855,8 @@ struct sndrv_seq_instr_cluster_set { | |||
851 | 855 | ||
852 | /* INSTR_CLUSTER_GET */ | 856 | /* INSTR_CLUSTER_GET */ |
853 | 857 | ||
854 | struct sndrv_seq_instr_cluster_get { | 858 | struct snd_seq_instr_cluster_get { |
855 | sndrv_seq_instr_cluster_t cluster; /* cluster identifier */ | 859 | snd_seq_instr_cluster_t cluster; /* cluster identifier */ |
856 | char name[32]; /* cluster name */ | 860 | char name[32]; /* cluster name */ |
857 | int priority; /* cluster priority */ | 861 | int priority; /* cluster priority */ |
858 | char reserved[64]; /* for the future use */ | 862 | char reserved[64]; /* for the future use */ |
@@ -864,44 +868,44 @@ struct sndrv_seq_instr_cluster_get { | |||
864 | 868 | ||
865 | #define SNDRV_SEQ_IOCTL_PVERSION _IOR ('S', 0x00, int) | 869 | #define SNDRV_SEQ_IOCTL_PVERSION _IOR ('S', 0x00, int) |
866 | #define SNDRV_SEQ_IOCTL_CLIENT_ID _IOR ('S', 0x01, int) | 870 | #define SNDRV_SEQ_IOCTL_CLIENT_ID _IOR ('S', 0x01, int) |
867 | #define SNDRV_SEQ_IOCTL_SYSTEM_INFO _IOWR('S', 0x02, struct sndrv_seq_system_info) | 871 | #define SNDRV_SEQ_IOCTL_SYSTEM_INFO _IOWR('S', 0x02, struct snd_seq_system_info) |
868 | #define SNDRV_SEQ_IOCTL_RUNNING_MODE _IOWR('S', 0x03, struct sndrv_seq_running_info) | 872 | #define SNDRV_SEQ_IOCTL_RUNNING_MODE _IOWR('S', 0x03, struct snd_seq_running_info) |
869 | 873 | ||
870 | #define SNDRV_SEQ_IOCTL_GET_CLIENT_INFO _IOWR('S', 0x10, struct sndrv_seq_client_info) | 874 | #define SNDRV_SEQ_IOCTL_GET_CLIENT_INFO _IOWR('S', 0x10, struct snd_seq_client_info) |
871 | #define SNDRV_SEQ_IOCTL_SET_CLIENT_INFO _IOW ('S', 0x11, struct sndrv_seq_client_info) | 875 | #define SNDRV_SEQ_IOCTL_SET_CLIENT_INFO _IOW ('S', 0x11, struct snd_seq_client_info) |
872 | 876 | ||
873 | #define SNDRV_SEQ_IOCTL_CREATE_PORT _IOWR('S', 0x20, struct sndrv_seq_port_info) | 877 | #define SNDRV_SEQ_IOCTL_CREATE_PORT _IOWR('S', 0x20, struct snd_seq_port_info) |
874 | #define SNDRV_SEQ_IOCTL_DELETE_PORT _IOW ('S', 0x21, struct sndrv_seq_port_info) | 878 | #define SNDRV_SEQ_IOCTL_DELETE_PORT _IOW ('S', 0x21, struct snd_seq_port_info) |
875 | #define SNDRV_SEQ_IOCTL_GET_PORT_INFO _IOWR('S', 0x22, struct sndrv_seq_port_info) | 879 | #define SNDRV_SEQ_IOCTL_GET_PORT_INFO _IOWR('S', 0x22, struct snd_seq_port_info) |
876 | #define SNDRV_SEQ_IOCTL_SET_PORT_INFO _IOW ('S', 0x23, struct sndrv_seq_port_info) | 880 | #define SNDRV_SEQ_IOCTL_SET_PORT_INFO _IOW ('S', 0x23, struct snd_seq_port_info) |
877 | 881 | ||
878 | #define SNDRV_SEQ_IOCTL_SUBSCRIBE_PORT _IOW ('S', 0x30, struct sndrv_seq_port_subscribe) | 882 | #define SNDRV_SEQ_IOCTL_SUBSCRIBE_PORT _IOW ('S', 0x30, struct snd_seq_port_subscribe) |
879 | #define SNDRV_SEQ_IOCTL_UNSUBSCRIBE_PORT _IOW ('S', 0x31, struct sndrv_seq_port_subscribe) | 883 | #define SNDRV_SEQ_IOCTL_UNSUBSCRIBE_PORT _IOW ('S', 0x31, struct snd_seq_port_subscribe) |
880 | 884 | ||
881 | #define SNDRV_SEQ_IOCTL_CREATE_QUEUE _IOWR('S', 0x32, struct sndrv_seq_queue_info) | 885 | #define SNDRV_SEQ_IOCTL_CREATE_QUEUE _IOWR('S', 0x32, struct snd_seq_queue_info) |
882 | #define SNDRV_SEQ_IOCTL_DELETE_QUEUE _IOW ('S', 0x33, struct sndrv_seq_queue_info) | 886 | #define SNDRV_SEQ_IOCTL_DELETE_QUEUE _IOW ('S', 0x33, struct snd_seq_queue_info) |
883 | #define SNDRV_SEQ_IOCTL_GET_QUEUE_INFO _IOWR('S', 0x34, struct sndrv_seq_queue_info) | 887 | #define SNDRV_SEQ_IOCTL_GET_QUEUE_INFO _IOWR('S', 0x34, struct snd_seq_queue_info) |
884 | #define SNDRV_SEQ_IOCTL_SET_QUEUE_INFO _IOWR('S', 0x35, struct sndrv_seq_queue_info) | 888 | #define SNDRV_SEQ_IOCTL_SET_QUEUE_INFO _IOWR('S', 0x35, struct snd_seq_queue_info) |
885 | #define SNDRV_SEQ_IOCTL_GET_NAMED_QUEUE _IOWR('S', 0x36, struct sndrv_seq_queue_info) | 889 | #define SNDRV_SEQ_IOCTL_GET_NAMED_QUEUE _IOWR('S', 0x36, struct snd_seq_queue_info) |
886 | #define SNDRV_SEQ_IOCTL_GET_QUEUE_STATUS _IOWR('S', 0x40, struct sndrv_seq_queue_status) | 890 | #define SNDRV_SEQ_IOCTL_GET_QUEUE_STATUS _IOWR('S', 0x40, struct snd_seq_queue_status) |
887 | #define SNDRV_SEQ_IOCTL_GET_QUEUE_TEMPO _IOWR('S', 0x41, struct sndrv_seq_queue_tempo) | 891 | #define SNDRV_SEQ_IOCTL_GET_QUEUE_TEMPO _IOWR('S', 0x41, struct snd_seq_queue_tempo) |
888 | #define SNDRV_SEQ_IOCTL_SET_QUEUE_TEMPO _IOW ('S', 0x42, struct sndrv_seq_queue_tempo) | 892 | #define SNDRV_SEQ_IOCTL_SET_QUEUE_TEMPO _IOW ('S', 0x42, struct snd_seq_queue_tempo) |
889 | #define SNDRV_SEQ_IOCTL_GET_QUEUE_OWNER _IOWR('S', 0x43, struct sndrv_seq_queue_owner) | 893 | #define SNDRV_SEQ_IOCTL_GET_QUEUE_OWNER _IOWR('S', 0x43, struct snd_seq_queue_owner) |
890 | #define SNDRV_SEQ_IOCTL_SET_QUEUE_OWNER _IOW ('S', 0x44, struct sndrv_seq_queue_owner) | 894 | #define SNDRV_SEQ_IOCTL_SET_QUEUE_OWNER _IOW ('S', 0x44, struct snd_seq_queue_owner) |
891 | #define SNDRV_SEQ_IOCTL_GET_QUEUE_TIMER _IOWR('S', 0x45, struct sndrv_seq_queue_timer) | 895 | #define SNDRV_SEQ_IOCTL_GET_QUEUE_TIMER _IOWR('S', 0x45, struct snd_seq_queue_timer) |
892 | #define SNDRV_SEQ_IOCTL_SET_QUEUE_TIMER _IOW ('S', 0x46, struct sndrv_seq_queue_timer) | 896 | #define SNDRV_SEQ_IOCTL_SET_QUEUE_TIMER _IOW ('S', 0x46, struct snd_seq_queue_timer) |
893 | /* XXX | 897 | /* XXX |
894 | #define SNDRV_SEQ_IOCTL_GET_QUEUE_SYNC _IOWR('S', 0x53, struct sndrv_seq_queue_sync) | 898 | #define SNDRV_SEQ_IOCTL_GET_QUEUE_SYNC _IOWR('S', 0x53, struct snd_seq_queue_sync) |
895 | #define SNDRV_SEQ_IOCTL_SET_QUEUE_SYNC _IOW ('S', 0x54, struct sndrv_seq_queue_sync) | 899 | #define SNDRV_SEQ_IOCTL_SET_QUEUE_SYNC _IOW ('S', 0x54, struct snd_seq_queue_sync) |
896 | */ | 900 | */ |
897 | #define SNDRV_SEQ_IOCTL_GET_QUEUE_CLIENT _IOWR('S', 0x49, struct sndrv_seq_queue_client) | 901 | #define SNDRV_SEQ_IOCTL_GET_QUEUE_CLIENT _IOWR('S', 0x49, struct snd_seq_queue_client) |
898 | #define SNDRV_SEQ_IOCTL_SET_QUEUE_CLIENT _IOW ('S', 0x4a, struct sndrv_seq_queue_client) | 902 | #define SNDRV_SEQ_IOCTL_SET_QUEUE_CLIENT _IOW ('S', 0x4a, struct snd_seq_queue_client) |
899 | #define SNDRV_SEQ_IOCTL_GET_CLIENT_POOL _IOWR('S', 0x4b, struct sndrv_seq_client_pool) | 903 | #define SNDRV_SEQ_IOCTL_GET_CLIENT_POOL _IOWR('S', 0x4b, struct snd_seq_client_pool) |
900 | #define SNDRV_SEQ_IOCTL_SET_CLIENT_POOL _IOW ('S', 0x4c, struct sndrv_seq_client_pool) | 904 | #define SNDRV_SEQ_IOCTL_SET_CLIENT_POOL _IOW ('S', 0x4c, struct snd_seq_client_pool) |
901 | #define SNDRV_SEQ_IOCTL_REMOVE_EVENTS _IOW ('S', 0x4e, struct sndrv_seq_remove_events) | 905 | #define SNDRV_SEQ_IOCTL_REMOVE_EVENTS _IOW ('S', 0x4e, struct snd_seq_remove_events) |
902 | #define SNDRV_SEQ_IOCTL_QUERY_SUBS _IOWR('S', 0x4f, struct sndrv_seq_query_subs) | 906 | #define SNDRV_SEQ_IOCTL_QUERY_SUBS _IOWR('S', 0x4f, struct snd_seq_query_subs) |
903 | #define SNDRV_SEQ_IOCTL_GET_SUBSCRIPTION _IOWR('S', 0x50, struct sndrv_seq_port_subscribe) | 907 | #define SNDRV_SEQ_IOCTL_GET_SUBSCRIPTION _IOWR('S', 0x50, struct snd_seq_port_subscribe) |
904 | #define SNDRV_SEQ_IOCTL_QUERY_NEXT_CLIENT _IOWR('S', 0x51, struct sndrv_seq_client_info) | 908 | #define SNDRV_SEQ_IOCTL_QUERY_NEXT_CLIENT _IOWR('S', 0x51, struct snd_seq_client_info) |
905 | #define SNDRV_SEQ_IOCTL_QUERY_NEXT_PORT _IOWR('S', 0x52, struct sndrv_seq_port_info) | 909 | #define SNDRV_SEQ_IOCTL_QUERY_NEXT_PORT _IOWR('S', 0x52, struct snd_seq_port_info) |
906 | 910 | ||
907 | #endif /* __SOUND_ASEQUENCER_H */ | 911 | #endif /* __SOUND_ASEQUENCER_H */ |