Lines Matching refs:seq
33 #define SNDRV_FILE_SEQ ALSA_DEVICE_DIRECTORY "seq"
42 static int snd_seq_hw_close(snd_seq_t *seq)
44 snd_seq_hw_t *hw = seq->private_data;
55 static int snd_seq_hw_nonblock(snd_seq_t *seq, int nonblock)
57 snd_seq_hw_t *hw = seq->private_data;
75 static int snd_seq_hw_client_id(snd_seq_t *seq)
77 snd_seq_hw_t *hw = seq->private_data;
86 static int snd_seq_hw_system_info(snd_seq_t *seq, snd_seq_system_info_t * info)
88 snd_seq_hw_t *hw = seq->private_data;
96 static int snd_seq_hw_get_client_info(snd_seq_t *seq, snd_seq_client_info_t * info)
98 snd_seq_hw_t *hw = seq->private_data;
106 static int snd_seq_hw_set_client_info(snd_seq_t *seq, snd_seq_client_info_t * info)
108 snd_seq_hw_t *hw = seq->private_data;
116 static int snd_seq_hw_create_port(snd_seq_t *seq, snd_seq_port_info_t * port)
118 snd_seq_hw_t *hw = seq->private_data;
126 static int snd_seq_hw_delete_port(snd_seq_t *seq, snd_seq_port_info_t * port)
128 snd_seq_hw_t *hw = seq->private_data;
136 static int snd_seq_hw_get_port_info(snd_seq_t *seq, snd_seq_port_info_t * info)
138 snd_seq_hw_t *hw = seq->private_data;
146 static int snd_seq_hw_set_port_info(snd_seq_t *seq, snd_seq_port_info_t * info)
148 snd_seq_hw_t *hw = seq->private_data;
156 static int snd_seq_hw_get_port_subscription(snd_seq_t *seq, snd_seq_port_subscribe_t * sub)
158 snd_seq_hw_t *hw = seq->private_data;
166 static int snd_seq_hw_subscribe_port(snd_seq_t *seq, snd_seq_port_subscribe_t * sub)
168 snd_seq_hw_t *hw = seq->private_data;
176 static int snd_seq_hw_unsubscribe_port(snd_seq_t *seq, snd_seq_port_subscribe_t * sub)
178 snd_seq_hw_t *hw = seq->private_data;
186 static int snd_seq_hw_query_port_subscribers(snd_seq_t *seq, snd_seq_query_subscribe_t * subs)
188 snd_seq_hw_t *hw = seq->private_data;
196 static int snd_seq_hw_get_queue_status(snd_seq_t *seq, snd_seq_queue_status_t * status)
198 snd_seq_hw_t *hw = seq->private_data;
206 static int snd_seq_hw_get_queue_tempo(snd_seq_t *seq, snd_seq_queue_tempo_t * tempo)
208 snd_seq_hw_t *hw = seq->private_data;
216 static int snd_seq_hw_set_queue_tempo(snd_seq_t *seq, snd_seq_queue_tempo_t * tempo)
218 snd_seq_hw_t *hw = seq->private_data;
226 static int snd_seq_hw_get_queue_timer(snd_seq_t *seq, snd_seq_queue_timer_t * timer)
228 snd_seq_hw_t *hw = seq->private_data;
236 static int snd_seq_hw_set_queue_timer(snd_seq_t *seq, snd_seq_queue_timer_t * timer)
238 snd_seq_hw_t *hw = seq->private_data;
246 static int snd_seq_hw_get_queue_client(snd_seq_t *seq, snd_seq_queue_client_t * info)
248 snd_seq_hw_t *hw = seq->private_data;
256 static int snd_seq_hw_set_queue_client(snd_seq_t *seq, snd_seq_queue_client_t * info)
258 snd_seq_hw_t *hw = seq->private_data;
266 static int snd_seq_hw_create_queue(snd_seq_t *seq, snd_seq_queue_info_t *info)
268 snd_seq_hw_t *hw = seq->private_data;
276 static int snd_seq_hw_delete_queue(snd_seq_t *seq, snd_seq_queue_info_t *info)
278 snd_seq_hw_t *hw = seq->private_data;
286 static int snd_seq_hw_get_queue_info(snd_seq_t *seq, snd_seq_queue_info_t *info)
288 snd_seq_hw_t *hw = seq->private_data;
296 static int snd_seq_hw_set_queue_info(snd_seq_t *seq, snd_seq_queue_info_t *info)
298 snd_seq_hw_t *hw = seq->private_data;
306 static int snd_seq_hw_get_named_queue(snd_seq_t *seq, snd_seq_queue_info_t *info)
308 snd_seq_hw_t *hw = seq->private_data;
316 static ssize_t snd_seq_hw_write(snd_seq_t *seq, void *buf, size_t len)
318 snd_seq_hw_t *hw = seq->private_data;
325 static ssize_t snd_seq_hw_read(snd_seq_t *seq, void *buf, size_t len)
327 snd_seq_hw_t *hw = seq->private_data;
334 static int snd_seq_hw_remove_events(snd_seq_t *seq, snd_seq_remove_events_t *rmp)
336 snd_seq_hw_t *hw = seq->private_data;
344 static int snd_seq_hw_get_client_pool(snd_seq_t *seq, snd_seq_client_pool_t *info)
346 snd_seq_hw_t *hw = seq->private_data;
354 static int snd_seq_hw_set_client_pool(snd_seq_t *seq, snd_seq_client_pool_t *info)
356 snd_seq_hw_t *hw = seq->private_data;
364 static int snd_seq_hw_query_next_client(snd_seq_t *seq, snd_seq_client_info_t *info)
366 snd_seq_hw_t *hw = seq->private_data;
374 static int snd_seq_hw_query_next_port(snd_seq_t *seq, snd_seq_port_info_t *info)
376 snd_seq_hw_t *hw = seq->private_data;
423 snd_seq_t *seq;
487 seq = calloc(1, sizeof(snd_seq_t));
488 if (seq == NULL) {
495 seq->obuf = (char *) malloc(seq->obufsize = SND_SEQ_OBUF_SIZE);
496 if (!seq->obuf) {
498 free(seq);
504 seq->ibuf = (snd_seq_event_t *) calloc(sizeof(snd_seq_event_t), seq->ibufsize = SND_SEQ_IBUF_SIZE);
505 if (!seq->ibuf) {
506 free(seq->obuf);
508 free(seq);
514 seq->name = strdup(name);
515 seq->type = SND_SEQ_TYPE_HW;
516 seq->streams = streams;
517 seq->mode = mode;
518 seq->tmpbuf = NULL;
519 seq->tmpbufsize = 0;
520 seq->poll_fd = fd;
521 seq->ops = &snd_seq_hw_ops;
522 seq->private_data = hw;
523 client = snd_seq_hw_client_id(seq);
525 snd_seq_close(seq);
528 seq->client = client;
546 *handle = seq;