Home
last modified time | relevance | path

Searched refs:ev (Results 1 – 25 of 33) sorted by relevance

12

/sound/core/seq/
Dseq_midi_event.c33 static void note_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
34 static void one_param_ctrl_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
35 static void pitchbend_ctrl_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
36 static void two_param_ctrl_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
37 static void one_param_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
38 static void songpos_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
39 static void note_decode(struct snd_seq_event *ev, unsigned char *buf);
40 static void one_param_decode(struct snd_seq_event *ev, unsigned char *buf);
41 static void pitchbend_decode(struct snd_seq_event *ev, unsigned char *buf);
42 static void two_param_decode(struct snd_seq_event *ev, unsigned char *buf);
[all …]
Dseq_system.c55 static int setheader(struct snd_seq_event * ev, int client, int port) in setheader() argument
60 memset(ev, 0, sizeof(struct snd_seq_event)); in setheader()
62 ev->flags &= ~SNDRV_SEQ_EVENT_LENGTH_MASK; in setheader()
63 ev->flags |= SNDRV_SEQ_EVENT_LENGTH_FIXED; in setheader()
65 ev->source.client = sysclient; in setheader()
66 ev->source.port = announce_port; in setheader()
67 ev->dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in setheader()
71 ev->data.addr.client = client; in setheader()
72 ev->data.addr.port = port; in setheader()
81 struct snd_seq_event ev; in snd_seq_system_broadcast() local
[all …]
Dseq_midi_emul.c70 struct snd_seq_event *ev, in snd_midi_process_event() argument
77 if (ev == NULL || chanset == NULL) { in snd_midi_process_event()
84 if (snd_seq_ev_is_channel_type(ev)) { in snd_midi_process_event()
85 dest_channel = ev->data.note.channel; in snd_midi_process_event()
97 if (ev->type == SNDRV_SEQ_EVENT_NOTE) in snd_midi_process_event()
102 if (ev->type == SNDRV_SEQ_EVENT_NOTEON && ev->data.note.velocity == 0) in snd_midi_process_event()
103 ev->type = SNDRV_SEQ_EVENT_NOTEOFF; in snd_midi_process_event()
106 if (ev->type == SNDRV_SEQ_EVENT_NOTEON || in snd_midi_process_event()
107 ev->type == SNDRV_SEQ_EVENT_NOTEOFF || in snd_midi_process_event()
108 ev->type == SNDRV_SEQ_EVENT_KEYPRESS) { in snd_midi_process_event()
[all …]
Dseq_prioq.c203 static int event_is_ready(struct snd_seq_event *ev, void *current_time) in event_is_ready() argument
205 if ((ev->flags & SNDRV_SEQ_TIME_STAMP_MASK) == SNDRV_SEQ_TIME_STAMP_TICK) in event_is_ready()
206 return snd_seq_compare_tick_time(current_time, &ev->time.tick); in event_is_ready()
208 return snd_seq_compare_real_time(current_time, &ev->time.time); in event_is_ready()
329 struct snd_seq_event *ev) in prioq_remove_match() argument
334 if (ev->dest.client != info->dest.client || in prioq_remove_match()
335 ev->dest.port != info->dest.port) in prioq_remove_match()
339 if (! snd_seq_ev_is_channel_type(ev)) in prioq_remove_match()
342 if (ev->data.note.channel != info->channel) in prioq_remove_match()
347 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); in prioq_remove_match()
[all …]
Dseq_queue.c650 static void queue_broadcast_event(struct snd_seq_queue *q, struct snd_seq_event *ev, in queue_broadcast_event() argument
655 sev = *ev; in queue_broadcast_event()
674 struct snd_seq_event *ev, in snd_seq_queue_process_event() argument
677 switch (ev->type) { in snd_seq_queue_process_event()
679 snd_seq_prioq_leave(q->tickq, ev->source.client, 1); in snd_seq_queue_process_event()
680 snd_seq_prioq_leave(q->timeq, ev->source.client, 1); in snd_seq_queue_process_event()
682 queue_broadcast_event(q, ev, atomic, hop); in snd_seq_queue_process_event()
687 queue_broadcast_event(q, ev, atomic, hop); in snd_seq_queue_process_event()
692 queue_broadcast_event(q, ev, atomic, hop); in snd_seq_queue_process_event()
696 snd_seq_timer_set_tempo(q->timer, ev->data.queue.param.value); in snd_seq_queue_process_event()
[all …]
Dseq_virmidi.c45 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()
88 if ((ev->flags & SNDRV_SEQ_EVENT_LENGTH_MASK) != SNDRV_SEQ_EVENT_LENGTH_VARIABLE) in snd_virmidi_dev_receive_event()
[all …]
Dseq_midi.c65 struct snd_seq_event ev; in snd_midi_input_event() local
75 memset(&ev, 0, sizeof(ev)); in snd_midi_input_event()
85 *pbuf++, &ev)) in snd_midi_input_event()
87 ev.source.port = msynth->seq_port; in snd_midi_input_event()
88 ev.dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in snd_midi_input_event()
89 snd_seq_kernel_client_dispatch(msynth->seq_client, &ev, 1, 0); in snd_midi_input_event()
91 memset(&ev, 0, sizeof(ev)); in snd_midi_input_event()
120 static int event_process_midi(struct snd_seq_event *ev, int direct, in event_process_midi() argument
133 if (ev->type == SNDRV_SEQ_EVENT_SYSEX) { /* special case, to save space */ in event_process_midi()
134 if ((ev->flags & SNDRV_SEQ_EVENT_LENGTH_MASK) != SNDRV_SEQ_EVENT_LENGTH_VARIABLE) { in event_process_midi()
[all …]
Dseq_dummy.c74 dummy_input(struct snd_seq_event *ev, int direct, void *private_data, in dummy_input() argument
81 if (ev->source.client == SNDRV_SEQ_CLIENT_SYSTEM || in dummy_input()
82 ev->type == SNDRV_SEQ_EVENT_KERNEL_ERROR) in dummy_input()
84 tmpev = *ev; in dummy_input()
Dseq_clientmgr.c871 struct snd_seq_event tmpev, *ev; in snd_seq_dispatch_event() local
883 ev = &cell->event; in snd_seq_dispatch_event()
884 ev->type = SNDRV_SEQ_EVENT_NOTEOFF; in snd_seq_dispatch_event()
885 ev->flags |= SNDRV_SEQ_PRIORITY_HIGH; in snd_seq_dispatch_event()
888 switch (ev->flags & SNDRV_SEQ_TIME_STAMP_MASK) { in snd_seq_dispatch_event()
890 ev->time.tick += ev->data.note.duration; in snd_seq_dispatch_event()
894 ev->time.time.tv_nsec += 1000000 * (ev->data.note.duration % 1000); in snd_seq_dispatch_event()
895 ev->time.time.tv_sec += ev->data.note.duration / 1000 + in snd_seq_dispatch_event()
896 ev->time.time.tv_nsec / 1000000000; in snd_seq_dispatch_event()
897 ev->time.time.tv_nsec %= 1000000000; in snd_seq_dispatch_event()
[all …]
/sound/core/seq/oss/
Dseq_oss_event.c22 static int extended_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev);
23 … int chn_voice_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event *ev);
24 …int chn_common_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event *ev);
25 …tic int timing_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event *ev);
26 static int local_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event *ev
27 static int old_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev);
28 …on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev);
29 …ff_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev);
30 …truct seq_oss_devinfo *dp, int dev, int type, int ch, int note, int vel, struct snd_seq_event *ev);
31 …ruct seq_oss_devinfo *dp, int dev, int type, int ch, int param, int val, struct snd_seq_event *ev);
[all …]
Dseq_oss_midi.c57 static int send_synth_event(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, int dev);
58 static int send_midi_event(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, struct seq_oss_mid…
465 struct snd_seq_event ev; in snd_seq_oss_midi_reset() local
468 memset(&ev, 0, sizeof(ev)); in snd_seq_oss_midi_reset()
469 ev.dest.client = mdev->client; in snd_seq_oss_midi_reset()
470 ev.dest.port = mdev->port; in snd_seq_oss_midi_reset()
471 ev.queue = dp->queue; in snd_seq_oss_midi_reset()
472 ev.source.port = dp->port; in snd_seq_oss_midi_reset()
474 ev.type = SNDRV_SEQ_EVENT_SENSING; in snd_seq_oss_midi_reset()
475 snd_seq_oss_dispatch(dp, &ev, 0, 0); in snd_seq_oss_midi_reset()
[all …]
Dseq_oss_timer.c73 snd_seq_oss_process_timer_event(struct seq_oss_timer *rec, union evrec *ev) in snd_seq_oss_process_timer_event() argument
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()
97 } else if (ev->s.code == SEQ_WAIT) { in snd_seq_oss_process_timer_event()
99 parm = (ev->echo >> 8) & 0xffffff; 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()
[all …]
Dseq_oss_writeq.c92 struct snd_seq_event ev; in snd_seq_oss_writeq_sync() local
96 memset(&ev, 0, sizeof(ev)); in snd_seq_oss_writeq_sync()
97 ev.flags = 0; in snd_seq_oss_writeq_sync()
98 ev.type = SNDRV_SEQ_EVENT_ECHO; in snd_seq_oss_writeq_sync()
99 ev.time.tick = time; in snd_seq_oss_writeq_sync()
101 snd_seq_oss_fill_addr(dp, &ev, dp->addr.client, dp->addr.port); in snd_seq_oss_writeq_sync()
102 rec = (union evrec *)&ev.data; in snd_seq_oss_writeq_sync()
106 snd_seq_kernel_client_enqueue(dp->cseq, &ev, NULL, true); in snd_seq_oss_writeq_sync()
Dseq_oss_event.h91 #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…
Dseq_oss_device.h136 snd_seq_oss_dispatch(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, int atomic, int hop) in snd_seq_oss_dispatch() argument
138 return snd_seq_kernel_client_dispatch(dp->cseq, ev, atomic, hop); in snd_seq_oss_dispatch()
155 snd_seq_oss_fill_addr(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, in snd_seq_oss_fill_addr() argument
158 ev->queue = dp->queue; in snd_seq_oss_fill_addr()
159 ev->source = dp->addr; in snd_seq_oss_fill_addr()
160 ev->dest.client = dest_client; in snd_seq_oss_fill_addr()
161 ev->dest.port = dest_port; in snd_seq_oss_fill_addr()
Dseq_oss_synth.c425 struct snd_seq_event ev; in snd_seq_oss_synth_reset() local
426 memset(&ev, 0, sizeof(ev)); in snd_seq_oss_synth_reset()
427 snd_seq_oss_fill_addr(dp, &ev, info->arg.addr.client, in snd_seq_oss_synth_reset()
429 ev.type = SNDRV_SEQ_EVENT_RESET; in snd_seq_oss_synth_reset()
430 snd_seq_oss_dispatch(dp, &ev, 0, 0); in snd_seq_oss_synth_reset()
488 …_oss_synth_sysex(struct seq_oss_devinfo *dp, int dev, unsigned char *buf, struct snd_seq_event *ev) in snd_seq_oss_synth_sysex() argument
531 ev->flags = SNDRV_SEQ_EVENT_LENGTH_VARIABLE; in snd_seq_oss_synth_sysex()
532 if (snd_seq_oss_synth_addr(dp, dev, ev)) in snd_seq_oss_synth_sysex()
534 ev->data.ext.len = sysex->len; in snd_seq_oss_synth_sysex()
535 ev->data.ext.ptr = sysex->buf; in snd_seq_oss_synth_sysex()
[all …]
Dseq_oss_readq.c124 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()
Dseq_oss_synth.h30 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);
Dseq_oss_init.c40 static int receive_announce(struct snd_seq_event *ev, int direct, void *private, int atomic, int ho…
123 receive_announce(struct snd_seq_event *ev, int direct, void *private, int atomic, int hop) in receive_announce() argument
130 switch (ev->type) { in receive_announce()
133 if (ev->data.addr.client == system_client) in receive_announce()
136 pinfo.addr = ev->data.addr; in receive_announce()
142 if (ev->data.addr.client == system_client) in receive_announce()
144 snd_seq_oss_midi_check_exit_port(ev->data.addr.client, in receive_announce()
145 ev->data.addr.port); in receive_announce()
Dseq_oss_midi.h29 struct snd_seq_event *ev);
30 int snd_seq_oss_midi_input(struct snd_seq_event *ev, int direct, void *private);
Dseq_oss_readq.h35 struct snd_seq_event *ev);
36 int snd_seq_oss_readq_put_event(struct seq_oss_readq *readq, union evrec *ev);
Dseq_oss_ioctl.c46 unsigned char ev[8]; in snd_seq_oss_oob_user() local
49 if (copy_from_user(ev, arg, 8)) in snd_seq_oss_oob_user()
54 if (! snd_seq_oss_process_event(dp, (union evrec *)ev, &tmpev)) { in snd_seq_oss_oob_user()
/sound/synth/emux/
Demux_oss.c26 static int snd_emux_event_oss_input(struct snd_seq_event *ev, int direct,
287 snd_emux_event_oss_input(struct snd_seq_event *ev, int direct, void *private_data, in snd_emux_event_oss_input() argument
300 if (ev->type != SNDRV_SEQ_EVENT_OSS) in snd_emux_event_oss_input()
301 return snd_emux_event_input(ev, direct, private_data, atomic, hop); in snd_emux_event_oss_input()
303 data = ev->data.raw8.d; in snd_emux_event_oss_input()
483 struct snd_seq_event ev; in fake_event() local
484 memset(&ev, 0, sizeof(ev)); in fake_event()
485 ev.type = SNDRV_SEQ_EVENT_CONTROLLER; in fake_event()
486 ev.data.control.channel = ch; in fake_event()
487 ev.data.control.param = param; in fake_event()
[all …]
/sound/drivers/opl3/
Dopl3_oss.c28 static int snd_opl3_oss_event_input(struct snd_seq_event *ev, int direct, in snd_opl3_oss_event_input() argument
33 if (ev->type != SNDRV_SEQ_EVENT_OSS) in snd_opl3_oss_event_input()
34 snd_midi_process_event(&opl3_ops, ev, opl3->oss_chset); in snd_opl3_oss_event_input()
/sound/core/
Dcontrol.c146 struct snd_kctl_event *ev; in snd_ctl_notify() local
160 list_for_each_entry(ev, &ctl->events, list) { in snd_ctl_notify()
161 if (ev->id.numid == id->numid) { in snd_ctl_notify()
162 ev->mask |= mask; in snd_ctl_notify()
166 ev = kzalloc(sizeof(*ev), GFP_ATOMIC); in snd_ctl_notify()
167 if (ev) { in snd_ctl_notify()
168 ev->id = *id; in snd_ctl_notify()
169 ev->mask = mask; in snd_ctl_notify()
170 list_add_tail(&ev->list, &ctl->events); in snd_ctl_notify()
1601 struct snd_ctl_event ev; in snd_ctl_read() local
[all …]

12