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 void update_midi_version(snd_seq_t *seq, snd_seq_client_info_t *info)
98 snd_seq_hw_t *hw = seq->private_data;
101 seq->midi_version != (int)info->midi_version) {
102 seq->midi_version = info->midi_version;
104 seq->packet_size = sizeof(snd_seq_ump_event_t);
106 seq->packet_size = sizeof(snd_seq_event_t);
110 static int snd_seq_hw_get_client_info(snd_seq_t *seq, snd_seq_client_info_t * info)
112 snd_seq_hw_t *hw = seq->private_data;
124 static int snd_seq_hw_set_client_info(snd_seq_t *seq, snd_seq_client_info_t * info)
126 snd_seq_hw_t *hw = seq->private_data;
132 update_midi_version(seq, info);
136 static int snd_seq_hw_get_ump_info(snd_seq_t *seq, int client, int type, void *info)
138 snd_seq_hw_t *hw = seq->private_data;
158 static int snd_seq_hw_set_ump_info(snd_seq_t *seq, int type, const void *info)
160 snd_seq_hw_t *hw = seq->private_data;
172 buf.client = seq->client;
181 static int snd_seq_hw_create_port(snd_seq_t *seq, snd_seq_port_info_t * port)
183 snd_seq_hw_t *hw = seq->private_data;
191 static int snd_seq_hw_delete_port(snd_seq_t *seq, snd_seq_port_info_t * port)
193 snd_seq_hw_t *hw = seq->private_data;
201 static int snd_seq_hw_get_port_info(snd_seq_t *seq, snd_seq_port_info_t * info)
203 snd_seq_hw_t *hw = seq->private_data;
211 static int snd_seq_hw_set_port_info(snd_seq_t *seq, snd_seq_port_info_t * info)
213 snd_seq_hw_t *hw = seq->private_data;
221 static int snd_seq_hw_get_port_subscription(snd_seq_t *seq, snd_seq_port_subscribe_t * sub)
223 snd_seq_hw_t *hw = seq->private_data;
231 static int snd_seq_hw_subscribe_port(snd_seq_t *seq, snd_seq_port_subscribe_t * sub)
233 snd_seq_hw_t *hw = seq->private_data;
241 static int snd_seq_hw_unsubscribe_port(snd_seq_t *seq, snd_seq_port_subscribe_t * sub)
243 snd_seq_hw_t *hw = seq->private_data;
251 static int snd_seq_hw_query_port_subscribers(snd_seq_t *seq, snd_seq_query_subscribe_t * subs)
253 snd_seq_hw_t *hw = seq->private_data;
261 static int snd_seq_hw_get_queue_status(snd_seq_t *seq, snd_seq_queue_status_t * status)
263 snd_seq_hw_t *hw = seq->private_data;
271 static int snd_seq_hw_get_queue_tempo(snd_seq_t *seq, snd_seq_queue_tempo_t * tempo)
273 snd_seq_hw_t *hw = seq->private_data;
281 static int snd_seq_hw_set_queue_tempo(snd_seq_t *seq, snd_seq_queue_tempo_t * tempo)
283 snd_seq_hw_t *hw = seq->private_data;
291 static int snd_seq_hw_get_queue_timer(snd_seq_t *seq, snd_seq_queue_timer_t * timer)
293 snd_seq_hw_t *hw = seq->private_data;
301 static int snd_seq_hw_set_queue_timer(snd_seq_t *seq, snd_seq_queue_timer_t * timer)
303 snd_seq_hw_t *hw = seq->private_data;
311 static int snd_seq_hw_get_queue_client(snd_seq_t *seq, snd_seq_queue_client_t * info)
313 snd_seq_hw_t *hw = seq->private_data;
321 static int snd_seq_hw_set_queue_client(snd_seq_t *seq, snd_seq_queue_client_t * info)
323 snd_seq_hw_t *hw = seq->private_data;
331 static int snd_seq_hw_create_queue(snd_seq_t *seq, snd_seq_queue_info_t *info)
333 snd_seq_hw_t *hw = seq->private_data;
341 static int snd_seq_hw_delete_queue(snd_seq_t *seq, snd_seq_queue_info_t *info)
343 snd_seq_hw_t *hw = seq->private_data;
351 static int snd_seq_hw_get_queue_info(snd_seq_t *seq, snd_seq_queue_info_t *info)
353 snd_seq_hw_t *hw = seq->private_data;
361 static int snd_seq_hw_set_queue_info(snd_seq_t *seq, snd_seq_queue_info_t *info)
363 snd_seq_hw_t *hw = seq->private_data;
371 static int snd_seq_hw_get_named_queue(snd_seq_t *seq, snd_seq_queue_info_t *info)
373 snd_seq_hw_t *hw = seq->private_data;
381 static ssize_t snd_seq_hw_write(snd_seq_t *seq, void *buf, size_t len)
383 snd_seq_hw_t *hw = seq->private_data;
390 static ssize_t snd_seq_hw_read(snd_seq_t *seq, void *buf, size_t len)
392 snd_seq_hw_t *hw = seq->private_data;
399 static int snd_seq_hw_remove_events(snd_seq_t *seq, snd_seq_remove_events_t *rmp)
401 snd_seq_hw_t *hw = seq->private_data;
409 static int snd_seq_hw_get_client_pool(snd_seq_t *seq, snd_seq_client_pool_t *info)
411 snd_seq_hw_t *hw = seq->private_data;
419 static int snd_seq_hw_set_client_pool(snd_seq_t *seq, snd_seq_client_pool_t *info)
421 snd_seq_hw_t *hw = seq->private_data;
429 static int snd_seq_hw_query_next_client(snd_seq_t *seq, snd_seq_client_info_t *info)
431 snd_seq_hw_t *hw = seq->private_data;
443 static int snd_seq_hw_query_next_port(snd_seq_t *seq, snd_seq_port_info_t *info)
445 snd_seq_hw_t *hw = seq->private_data;
494 snd_seq_t *seq;
552 seq = calloc(1, sizeof(snd_seq_t));
553 if (seq == NULL) {
561 seq->obuf = (char *) malloc(seq->obufsize = SND_SEQ_OBUF_SIZE);
562 if (!seq->obuf) {
564 free(seq);
570 seq->ibuf = (char *) calloc(sizeof(snd_seq_ump_event_t), seq->ibufsize = SND_SEQ_IBUF_SIZE);
571 if (!seq->ibuf) {
572 free(seq->obuf);
574 free(seq);
580 seq->name = strdup(name);
581 seq->type = SND_SEQ_TYPE_HW;
582 seq->streams = streams;
583 seq->mode = mode;
584 seq->tmpbuf = NULL;
585 seq->tmpbufsize = 0;
586 seq->poll_fd = fd;
587 seq->ops = &snd_seq_hw_ops;
588 seq->private_data = hw;
589 seq->packet_size = sizeof(snd_seq_event_t);
590 client = snd_seq_hw_client_id(seq);
592 snd_seq_close(seq);
595 seq->client = client;
613 *handle = seq;