| /sound/core/seq/ |
| A D | seq_midi_event.c | 84 struct snd_seq_event *ev); 86 struct snd_seq_event *ev); 91 struct snd_seq_event *ev); 171 struct snd_seq_event *ev) in snd_midi_event_encode_byte() argument 221 ev->type = SNDRV_SEQ_EVENT_SYSEX; in snd_midi_event_encode_byte() 222 ev->data.ext.len = dev->read; in snd_midi_event_encode_byte() 223 ev->data.ext.ptr = dev->buf; in snd_midi_event_encode_byte() 240 ev->data.note.note = dev->buf[1]; in note_event() 283 struct snd_seq_event *ev) in snd_midi_event_decode() argument 342 buf[0] = ev->data.note.note & 0x7f; in note_decode() [all …]
|
| A D | seq_system.c | 67 ev->source.client = sysclient; in setheader() 68 ev->source.port = announce_port; in setheader() 73 ev->data.addr.client = client; in setheader() 74 ev->data.addr.port = port; in setheader() 83 struct snd_seq_event ev; in snd_seq_system_broadcast() local 85 if (setheader(&ev, client, port) < 0) in snd_seq_system_broadcast() 87 ev.type = type; in snd_seq_system_broadcast() 97 ev->source.client = sysclient; in snd_seq_system_notify() 98 ev->source.port = announce_port; in snd_seq_system_notify() 99 ev->dest.client = client; in snd_seq_system_notify() [all …]
|
| A D | seq_midi_emul.c | 73 struct snd_seq_event *ev, in snd_midi_process_event() argument 105 if (ev->type == SNDRV_SEQ_EVENT_NOTEON && ev->data.note.velocity == 0) in snd_midi_process_event() 112 if (ev->data.note.note >= 128) in snd_midi_process_event() 116 switch (ev->type) { in snd_midi_process_event() 124 ops->note_on(drv, ev->data.note.note, ev->data.note.velocity, chan); in snd_midi_process_event() 130 note_off(ops, drv, chan, ev->data.note.note, ev->data.note.velocity); in snd_midi_process_event() 134 ops->key_press(drv, ev->data.note.note, ev->data.note.velocity, chan); in snd_midi_process_event() 138 ev->data.control.param, ev->data.control.value); in snd_midi_process_event() 160 ev->data.control.param, in snd_midi_process_event() 164 ev->data.control.param, in snd_midi_process_event() [all …]
|
| A D | seq_ump_convert.c | 83 struct snd_seq_event *ev) in ump_midi1_to_note_ev() argument 92 struct snd_seq_event *ev) in ump_midi1_to_ctrl_ev() argument 204 struct snd_seq_event *ev) in ump_midi2_to_note_ev() argument 213 !ev->data.note.velocity) in ump_midi2_to_note_ev() 214 ev->data.note.velocity = 1; in ump_midi2_to_note_ev() 249 ev[1] = ev[0]; in ump_midi2_to_pgm_ev() 250 ev++; in ump_midi2_to_pgm_ev() 260 struct snd_seq_event *ev) in ump_midi2_to_ctrl_ev() argument 356 ev->data.ext.len = size; in cvt_ump_sysex7_to_event() 357 ev->data.ext.ptr = buf; in cvt_ump_sysex7_to_event() [all …]
|
| A D | seq_prioq.c | 202 return snd_seq_compare_tick_time(current_time, &ev->time.tick); in event_is_ready() 204 return snd_seq_compare_real_time(current_time, &ev->time.time); in event_is_ready() 336 struct snd_seq_event *ev = &cell->event; in prioq_remove_match() local 340 if (ev->source.client != v->client) in prioq_remove_match() 344 if (ev->dest.client != info->dest.client || in prioq_remove_match() 345 ev->dest.port != info->dest.port) in prioq_remove_match() 349 if (! snd_seq_ev_is_channel_type(ev)) in prioq_remove_match() 352 if (ev->data.note.channel != info->channel) in prioq_remove_match() 372 if (ev->type != info->type) in prioq_remove_match() 377 switch (ev->type) { in prioq_remove_match() [all …]
|
| A D | seq_queue.c | 597 sev = *ev; in queue_broadcast_event() 616 struct snd_seq_event *ev, in snd_seq_queue_process_event() argument 619 switch (ev->type) { in snd_seq_queue_process_event() 624 queue_broadcast_event(q, ev, atomic, hop); in snd_seq_queue_process_event() 629 queue_broadcast_event(q, ev, atomic, hop); in snd_seq_queue_process_event() 634 queue_broadcast_event(q, ev, atomic, hop); in snd_seq_queue_process_event() 639 queue_broadcast_event(q, ev, atomic, hop); in snd_seq_queue_process_event() 644 queue_broadcast_event(q, ev, atomic, hop); in snd_seq_queue_process_event() 655 ev->data.queue.param.skew.value, in snd_seq_queue_process_event() 672 if (snd_BUG_ON(!ev)) in snd_seq_control_queue() [all …]
|
| A D | seq_virmidi.c | 45 struct snd_seq_event *ev) in snd_virmidi_init_event() argument 47 memset(ev, 0, sizeof(*ev)); in snd_virmidi_init_event() 48 ev->source.port = vmidi->port; in snd_virmidi_init_event() 51 ev->dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in snd_virmidi_init_event() 55 ev->dest.client = vmidi->client; in snd_virmidi_init_event() 56 ev->dest.port = vmidi->port; in snd_virmidi_init_event() 59 ev->type = SNDRV_SEQ_EVENT_NONE; in snd_virmidi_init_event() 73 struct snd_seq_event *ev, in snd_virmidi_dev_receive_event() argument 87 if (ev->type == SNDRV_SEQ_EVENT_SYSEX) { in snd_virmidi_dev_receive_event() 90 snd_seq_dump_var_event(ev, dump_to_rawmidi, vmidi->substream); in snd_virmidi_dev_receive_event() [all …]
|
| A D | seq_midi.c | 66 struct snd_seq_event ev; in snd_midi_input_event() local 76 memset(&ev, 0, sizeof(ev)); in snd_midi_input_event() 86 *pbuf++, &ev)) in snd_midi_input_event() 88 ev.source.port = msynth->seq_port; in snd_midi_input_event() 89 ev.dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in snd_midi_input_event() 90 snd_seq_kernel_client_dispatch(msynth->seq_client, &ev, 1, 0); in snd_midi_input_event() 92 memset(&ev, 0, sizeof(ev)); in snd_midi_input_event() 122 static int event_process_midi(struct snd_seq_event *ev, int direct, in event_process_midi() argument 135 if (ev->type == SNDRV_SEQ_EVENT_SYSEX) { /* special case, to save space */ in event_process_midi() 141 snd_seq_dump_var_event(ev, __dump_midi, substream); in event_process_midi() [all …]
|
| A D | seq_clientmgr.c | 419 if (snd_seq_ev_is_ump(ev) && snd_seq_ev_is_variable(ev)) in event_is_compatible() 897 ev = &cell->event; in snd_seq_dispatch_event() 908 ev->time.time.tv_nsec += 1000000 * (ev->data.note.duration % 1000); in snd_seq_dispatch_event() 909 ev->time.time.tv_sec += ev->data.note.duration / 1000 + in snd_seq_dispatch_event() 914 ev->data.note.velocity = ev->data.note.off_velocity; in snd_seq_dispatch_event() 1065 if (snd_seq_ev_is_ump(ev)) { in snd_seq_write() 1112 ev->data.ext.ptr = in snd_seq_write() 2489 if (snd_BUG_ON(!ev)) in snd_seq_kernel_client_enqueue() 2500 ev->source.client = client; in snd_seq_kernel_client_enqueue() 2537 if (snd_BUG_ON(!ev)) in snd_seq_kernel_client_dispatch() [all …]
|
| A D | seq_ump_client.c | 64 struct snd_seq_ump_event ev = {}; in seq_ump_input_receive() local 70 ev.source.port = 0; /* UMP EP port */ in seq_ump_input_receive() 72 ev.source.port = ump_group_to_seq_port(ump_message_group(*val)); in seq_ump_input_receive() 73 ev.dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in seq_ump_input_receive() 74 ev.flags = SNDRV_SEQ_EVENT_UMP; in seq_ump_input_receive() 75 memcpy(ev.ump, val, words << 2); in seq_ump_input_receive() 77 (struct snd_seq_event *)&ev, in seq_ump_input_receive() 82 static int seq_ump_process_event(struct snd_seq_event *ev, int direct, in seq_ump_process_event() argument 94 if (!snd_seq_ev_is_ump(ev)) in seq_ump_process_event() 96 ump_ev = (struct snd_seq_ump_event *)ev; in seq_ump_process_event() [all …]
|
| A D | seq_dummy.c | 80 dummy_input(struct snd_seq_event *ev, int direct, void *private_data, in dummy_input() argument 87 if (ev->source.client == SNDRV_SEQ_CLIENT_SYSTEM || in dummy_input() 88 ev->type == SNDRV_SEQ_EVENT_KERNEL_ERROR) in dummy_input() 90 tmpev = *ev; in dummy_input()
|
| /sound/core/seq/oss/ |
| A D | seq_oss_event.c | 55 return timing_event(dp, q, ev); in snd_seq_oss_process_event() 58 return local_event(dp, q, ev); in snd_seq_oss_process_event() 88 return old_event(dp, q, ev); in snd_seq_oss_process_event() 134 q->e.chn, 0, q->e.p1, ev); in extended_event() 154 q->e.chn, 0, val, ev); in extended_event() 375 ev->type = type; in set_note_event() 377 ev->data.note.channel = ch; in set_note_event() 378 ev->data.note.note = note; in set_note_event() 379 ev->data.note.velocity = vel; in set_note_event() 393 ev->type = type; in set_control_event() [all …]
|
| A D | seq_oss_midi.c | 467 struct snd_seq_event ev; in snd_seq_oss_midi_reset() local 470 memset(&ev, 0, sizeof(ev)); in snd_seq_oss_midi_reset() 472 ev.dest.port = mdev->port; in snd_seq_oss_midi_reset() 473 ev.queue = dp->queue; in snd_seq_oss_midi_reset() 474 ev.source.port = dp->port; in snd_seq_oss_midi_reset() 481 ev.data.control.channel = c; in snd_seq_oss_midi_reset() 485 ev.data.control.param = in snd_seq_oss_midi_reset() 489 ev.data.control.value = 0; in snd_seq_oss_midi_reset() 528 mdev = find_slot(ev->source.client, ev->source.port); in snd_seq_oss_midi_input() 555 switch (ev->type) { in send_synth_event() [all …]
|
| A D | seq_oss_timer.c | 75 abstime_t parm = ev->t.time; in snd_seq_oss_process_timer_event() 77 if (ev->t.code == EV_TIMING) { in snd_seq_oss_process_timer_event() 78 switch (ev->t.cmd) { in snd_seq_oss_process_timer_event() 129 struct snd_seq_event ev; in send_timer_event() local 131 memset(&ev, 0, sizeof(ev)); in send_timer_event() 132 ev.type = type; in send_timer_event() 133 ev.source.client = dp->cseq; in send_timer_event() 134 ev.source.port = 0; in send_timer_event() 137 ev.queue = dp->queue; in send_timer_event() 138 ev.data.queue.queue = dp->queue; in send_timer_event() [all …]
|
| A D | seq_oss_writeq.c | 93 struct snd_seq_event ev; in snd_seq_oss_writeq_sync() local 97 memset(&ev, 0, sizeof(ev)); in snd_seq_oss_writeq_sync() 98 ev.flags = 0; in snd_seq_oss_writeq_sync() 99 ev.type = SNDRV_SEQ_EVENT_ECHO; in snd_seq_oss_writeq_sync() 100 ev.time.tick = time; in snd_seq_oss_writeq_sync() 102 snd_seq_oss_fill_addr(dp, &ev, dp->addr.client, dp->addr.port); in snd_seq_oss_writeq_sync() 103 rec = (union evrec *)&ev.data; in snd_seq_oss_writeq_sync() 107 snd_seq_kernel_client_enqueue(dp->cseq, &ev, NULL, true); in snd_seq_oss_writeq_sync()
|
| A D | seq_oss_device.h | 131 snd_seq_oss_dispatch(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, int atomic, int hop) in snd_seq_oss_dispatch() argument 133 return snd_seq_kernel_client_dispatch(dp->cseq, ev, atomic, hop); in snd_seq_oss_dispatch() 150 snd_seq_oss_fill_addr(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, in snd_seq_oss_fill_addr() argument 153 ev->queue = dp->queue; in snd_seq_oss_fill_addr() 154 ev->source = dp->addr; in snd_seq_oss_fill_addr() 155 ev->dest.client = dest_client; in snd_seq_oss_fill_addr() 156 ev->dest.port = dest_port; in snd_seq_oss_fill_addr()
|
| A D | seq_oss_event.h | 91 #define ev_is_long(ev) ((ev)->s.code >= 128) argument 92 #define ev_length(ev) ((ev)->s.code >= 128 ? LONG_EVENT_SIZE : SHORT_EVENT_SIZE) argument 94 int snd_seq_oss_process_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev); 96 int snd_seq_oss_event_input(struct snd_seq_event *ev, int direct, void *private_data, int atomic, i…
|
| A D | seq_oss_synth.c | 412 struct snd_seq_event ev; in snd_seq_oss_synth_reset() local 413 memset(&ev, 0, sizeof(ev)); in snd_seq_oss_synth_reset() 416 ev.type = SNDRV_SEQ_EVENT_RESET; in snd_seq_oss_synth_reset() 417 snd_seq_oss_dispatch(dp, &ev, 0, 0); in snd_seq_oss_synth_reset() 486 if (snd_seq_oss_synth_addr(dp, dev, ev)) in snd_seq_oss_synth_sysex() 488 ev->flags = SNDRV_SEQ_EVENT_LENGTH_VARIABLE; in snd_seq_oss_synth_sysex() 489 ev->data.ext.len = len; in snd_seq_oss_synth_sysex() 490 ev->data.ext.ptr = buf; in snd_seq_oss_synth_sysex() 546 ev->type = SNDRV_SEQ_EVENT_OSS; in snd_seq_oss_synth_raw_event() 547 memcpy(ev->data.raw8.d, data, 8); in snd_seq_oss_synth_raw_event() [all …]
|
| A D | seq_oss_readq.c | 124 struct snd_seq_event *ev) in snd_seq_oss_readq_sysex() argument 131 if ((ev->flags & SNDRV_SEQ_EVENT_LENGTH_MASK) != SNDRV_SEQ_EVENT_LENGTH_VARIABLE) in snd_seq_oss_readq_sysex() 133 return snd_seq_dump_var_event(ev, readq_dump_sysex, &ctx); in snd_seq_oss_readq_sysex() 141 snd_seq_oss_readq_put_event(struct seq_oss_readq *q, union evrec *ev) in snd_seq_oss_readq_put_event() argument 151 memcpy(&q->q[q->tail], ev, sizeof(*ev)); in snd_seq_oss_readq_put_event()
|
| A D | seq_oss_init.c | 40 static int receive_announce(struct snd_seq_event *ev, int direct, void *private, int atomic, int ho… 117 receive_announce(struct snd_seq_event *ev, int direct, void *private, int atomic, int hop) in receive_announce() argument 124 switch (ev->type) { in receive_announce() 127 if (ev->data.addr.client == system_client) in receive_announce() 130 pinfo.addr = ev->data.addr; in receive_announce() 136 if (ev->data.addr.client == system_client) in receive_announce() 138 snd_seq_oss_midi_check_exit_port(ev->data.addr.client, in receive_announce() 139 ev->data.addr.port); in receive_announce()
|
| A D | seq_oss_synth.h | 30 struct snd_seq_event *ev); 31 int snd_seq_oss_synth_addr(struct seq_oss_devinfo *dp, int dev, struct snd_seq_event *ev); 35 unsigned char *data, struct snd_seq_event *ev);
|
| A D | seq_oss_midi.h | 29 struct snd_seq_event *ev); 30 int snd_seq_oss_midi_input(struct snd_seq_event *ev, int direct, void *private);
|
| A D | seq_oss_readq.h | 35 struct snd_seq_event *ev); 36 int snd_seq_oss_readq_put_event(struct seq_oss_readq *readq, union evrec *ev);
|
| /sound/synth/emux/ |
| A D | emux_oss.c | 26 static int snd_emux_event_oss_input(struct snd_seq_event *ev, int direct, 302 if (ev->type != SNDRV_SEQ_EVENT_OSS) in snd_emux_event_oss_input() 303 return snd_emux_event_input(ev, direct, private_data, atomic, hop); in snd_emux_event_oss_input() 305 data = ev->data.raw8.d; in snd_emux_event_oss_input() 485 struct snd_seq_event ev; in fake_event() local 486 memset(&ev, 0, sizeof(ev)); in fake_event() 487 ev.type = SNDRV_SEQ_EVENT_CONTROLLER; in fake_event() 488 ev.data.control.channel = ch; in fake_event() 489 ev.data.control.param = param; in fake_event() 490 ev.data.control.value = val; in fake_event() [all …]
|
| /sound/firewire/fireface/ |
| A D | ff-hwdep.c | 45 struct snd_firewire_event_lock_status ev = { in hwdep_read() local 54 if (copy_to_user(buf, &ev, sizeof(ev))) in hwdep_read() 56 count = sizeof(ev); in hwdep_read()
|