Home
last modified time | relevance | path

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

12

/sound/core/seq/
Dseq_midi_event.c46 static void note_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
47 static void one_param_ctrl_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
48 static void pitchbend_ctrl_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
49 static void two_param_ctrl_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
50 static void one_param_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
51 static void songpos_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
52 static void note_decode(struct snd_seq_event *ev, unsigned char *buf);
53 static void one_param_decode(struct snd_seq_event *ev, unsigned char *buf);
54 static void pitchbend_decode(struct snd_seq_event *ev, unsigned char *buf);
55 static void two_param_decode(struct snd_seq_event *ev, unsigned char *buf);
[all …]
Dseq_system.c70 static int setheader(struct snd_seq_event * ev, int client, int port) in setheader() argument
75 memset(ev, 0, sizeof(struct snd_seq_event)); in setheader()
77 ev->flags &= ~SNDRV_SEQ_EVENT_LENGTH_MASK; in setheader()
78 ev->flags |= SNDRV_SEQ_EVENT_LENGTH_FIXED; in setheader()
80 ev->source.client = sysclient; in setheader()
81 ev->source.port = announce_port; in setheader()
82 ev->dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in setheader()
86 ev->data.addr.client = client; in setheader()
87 ev->data.addr.port = port; in setheader()
96 struct snd_seq_event ev; in snd_seq_system_broadcast() local
[all …]
Dseq_midi_emul.c84 struct snd_seq_event *ev, in snd_midi_process_event() argument
91 if (ev == NULL || chanset == NULL) { in snd_midi_process_event()
98 if (snd_seq_ev_is_channel_type(ev)) { in snd_midi_process_event()
99 dest_channel = ev->data.note.channel; in snd_midi_process_event()
111 if (ev->type == SNDRV_SEQ_EVENT_NOTE) in snd_midi_process_event()
116 if (ev->type == SNDRV_SEQ_EVENT_NOTEON && ev->data.note.velocity == 0) in snd_midi_process_event()
117 ev->type = SNDRV_SEQ_EVENT_NOTEOFF; in snd_midi_process_event()
120 if (ev->type == SNDRV_SEQ_EVENT_NOTEON || in snd_midi_process_event()
121 ev->type == SNDRV_SEQ_EVENT_NOTEOFF || in snd_midi_process_event()
122 ev->type == SNDRV_SEQ_EVENT_KEYPRESS) { in snd_midi_process_event()
[all …]
Dseq_queue.c656 static void queue_broadcast_event(struct snd_seq_queue *q, struct snd_seq_event *ev, in queue_broadcast_event() argument
661 sev = *ev; in queue_broadcast_event()
680 struct snd_seq_event *ev, in snd_seq_queue_process_event() argument
683 switch (ev->type) { in snd_seq_queue_process_event()
685 snd_seq_prioq_leave(q->tickq, ev->source.client, 1); in snd_seq_queue_process_event()
686 snd_seq_prioq_leave(q->timeq, ev->source.client, 1); in snd_seq_queue_process_event()
688 queue_broadcast_event(q, ev, atomic, hop); in snd_seq_queue_process_event()
693 queue_broadcast_event(q, ev, atomic, hop); in snd_seq_queue_process_event()
698 queue_broadcast_event(q, ev, atomic, hop); in snd_seq_queue_process_event()
702 snd_seq_timer_set_tempo(q->timer, ev->data.queue.param.value); in snd_seq_queue_process_event()
[all …]
Dseq_virmidi.c59 struct snd_seq_event *ev) in snd_virmidi_init_event() argument
61 memset(ev, 0, sizeof(*ev)); in snd_virmidi_init_event()
62 ev->source.port = vmidi->port; in snd_virmidi_init_event()
65 ev->dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in snd_virmidi_init_event()
69 ev->dest.client = vmidi->client; in snd_virmidi_init_event()
70 ev->dest.port = vmidi->port; in snd_virmidi_init_event()
73 ev->type = SNDRV_SEQ_EVENT_NONE; in snd_virmidi_init_event()
80 struct snd_seq_event *ev, in snd_virmidi_dev_receive_event() argument
94 if (ev->type == SNDRV_SEQ_EVENT_SYSEX) { in snd_virmidi_dev_receive_event()
95 if ((ev->flags & SNDRV_SEQ_EVENT_LENGTH_MASK) != SNDRV_SEQ_EVENT_LENGTH_VARIABLE) in snd_virmidi_dev_receive_event()
[all …]
Dseq_midi.c79 struct snd_seq_event ev; in snd_midi_input_event() local
89 memset(&ev, 0, sizeof(ev)); in snd_midi_input_event()
98 count = snd_midi_event_encode(msynth->parser, pbuf, res, &ev); in snd_midi_input_event()
103 if (ev.type != SNDRV_SEQ_EVENT_NONE) { in snd_midi_input_event()
104 ev.source.port = msynth->seq_port; in snd_midi_input_event()
105 ev.dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in snd_midi_input_event()
106 snd_seq_kernel_client_dispatch(msynth->seq_client, &ev, 1, 0); in snd_midi_input_event()
108 memset(&ev, 0, sizeof(ev)); in snd_midi_input_event()
132 static int event_process_midi(struct snd_seq_event *ev, int direct, in event_process_midi() argument
145 if (ev->type == SNDRV_SEQ_EVENT_SYSEX) { /* special case, to save space */ in event_process_midi()
[all …]
Dseq_prioq.c344 struct snd_seq_event *ev) in prioq_remove_match() argument
349 if (ev->dest.client != info->dest.client || in prioq_remove_match()
350 ev->dest.port != info->dest.port) in prioq_remove_match()
354 if (! snd_seq_ev_is_channel_type(ev)) in prioq_remove_match()
357 if (ev->data.note.channel != info->channel) in prioq_remove_match()
362 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); in prioq_remove_match()
364 res = snd_seq_compare_real_time(&ev->time.time, &info->time.time); in prioq_remove_match()
370 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); in prioq_remove_match()
372 res = snd_seq_compare_real_time(&ev->time.time, &info->time.time); in prioq_remove_match()
377 if (ev->type != info->type) in prioq_remove_match()
[all …]
Dseq_clientmgr.c866 struct snd_seq_event tmpev, *ev; in snd_seq_dispatch_event() local
878 ev = &cell->event; in snd_seq_dispatch_event()
879 ev->type = SNDRV_SEQ_EVENT_NOTEOFF; in snd_seq_dispatch_event()
880 ev->flags |= SNDRV_SEQ_PRIORITY_HIGH; in snd_seq_dispatch_event()
883 switch (ev->flags & SNDRV_SEQ_TIME_STAMP_MASK) { in snd_seq_dispatch_event()
885 ev->time.tick += ev->data.note.duration; in snd_seq_dispatch_event()
889 ev->time.time.tv_nsec += 1000000 * (ev->data.note.duration % 1000); in snd_seq_dispatch_event()
890 ev->time.time.tv_sec += ev->data.note.duration / 1000 + in snd_seq_dispatch_event()
891 ev->time.time.tv_nsec / 1000000000; in snd_seq_dispatch_event()
892 ev->time.time.tv_nsec %= 1000000000; in snd_seq_dispatch_event()
[all …]
Dseq_dummy.c88 dummy_input(struct snd_seq_event *ev, int direct, void *private_data, in dummy_input() argument
95 if (ev->source.client == SNDRV_SEQ_CLIENT_SYSTEM || in dummy_input()
96 ev->type == SNDRV_SEQ_EVENT_KERNEL_ERROR) in dummy_input()
98 tmpev = *ev; in dummy_input()
Dseq_clientmgr.h95 int snd_seq_kernel_client_enqueue(int client, struct snd_seq_event *ev, int atomic, int hop);
96 int snd_seq_kernel_client_enqueue_blocking(int client, struct snd_seq_event * ev,
/sound/core/seq/oss/
Dseq_oss_event.c34 static int extended_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev);
35 … int chn_voice_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event *ev);
36 …int chn_common_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event *ev);
37 …tic int timing_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event *ev);
38 static int local_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event *ev
39 static int old_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev);
40 …on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev);
41 …ff_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev);
42 …truct seq_oss_devinfo *dp, int dev, int type, int ch, int note, int vel, struct snd_seq_event *ev);
43 …ruct seq_oss_devinfo *dp, int dev, int type, int ch, int param, int val, struct snd_seq_event *ev);
[all …]
Dseq_oss_midi.c68 static int send_synth_event(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, int dev);
69 static int send_midi_event(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, struct seq_oss_mid…
468 struct snd_seq_event ev; in snd_seq_oss_midi_reset() local
471 memset(&ev, 0, sizeof(ev)); in snd_seq_oss_midi_reset()
472 ev.dest.client = mdev->client; in snd_seq_oss_midi_reset()
473 ev.dest.port = mdev->port; in snd_seq_oss_midi_reset()
474 ev.queue = dp->queue; in snd_seq_oss_midi_reset()
475 ev.source.port = dp->port; in snd_seq_oss_midi_reset()
477 ev.type = SNDRV_SEQ_EVENT_SENSING; in snd_seq_oss_midi_reset()
478 snd_seq_oss_dispatch(dp, &ev, 0, 0); in snd_seq_oss_midi_reset()
[all …]
Dseq_oss_timer.c86 snd_seq_oss_process_timer_event(struct seq_oss_timer *rec, union evrec *ev) in snd_seq_oss_process_timer_event() argument
88 abstime_t parm = ev->t.time; in snd_seq_oss_process_timer_event()
90 if (ev->t.code == EV_TIMING) { in snd_seq_oss_process_timer_event()
91 switch (ev->t.cmd) { in snd_seq_oss_process_timer_event()
110 } else if (ev->s.code == SEQ_WAIT) { in snd_seq_oss_process_timer_event()
112 parm = (ev->echo >> 8) & 0xffffff; in snd_seq_oss_process_timer_event()
142 struct snd_seq_event ev; in send_timer_event() local
144 memset(&ev, 0, sizeof(ev)); in send_timer_event()
145 ev.type = type; in send_timer_event()
146 ev.source.client = dp->cseq; in send_timer_event()
[all …]
Dseq_oss_writeq.c104 struct snd_seq_event ev; in snd_seq_oss_writeq_sync() local
108 memset(&ev, 0, sizeof(ev)); in snd_seq_oss_writeq_sync()
109 ev.flags = 0; in snd_seq_oss_writeq_sync()
110 ev.type = SNDRV_SEQ_EVENT_ECHO; in snd_seq_oss_writeq_sync()
111 ev.time.tick = time; in snd_seq_oss_writeq_sync()
113 snd_seq_oss_fill_addr(dp, &ev, dp->addr.client, dp->addr.port); in snd_seq_oss_writeq_sync()
114 rec = (union evrec *)&ev.data; in snd_seq_oss_writeq_sync()
118 snd_seq_kernel_client_enqueue_blocking(dp->cseq, &ev, NULL, 0, 0); in snd_seq_oss_writeq_sync()
Dseq_oss_device.h148 snd_seq_oss_dispatch(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, int atomic, int hop) in snd_seq_oss_dispatch() argument
150 return snd_seq_kernel_client_dispatch(dp->cseq, ev, atomic, hop); in snd_seq_oss_dispatch()
162 snd_seq_oss_fill_addr(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, in snd_seq_oss_fill_addr() argument
165 ev->queue = dp->queue; in snd_seq_oss_fill_addr()
166 ev->source = dp->addr; in snd_seq_oss_fill_addr()
167 ev->dest.client = dest_client; in snd_seq_oss_fill_addr()
168 ev->dest.port = dest_port; in snd_seq_oss_fill_addr()
Dseq_oss_event.h104 #define ev_is_long(ev) ((ev)->s.code >= 128) argument
105 #define ev_length(ev) ((ev)->s.code >= 128 ? LONG_EVENT_SIZE : SHORT_EVENT_SIZE) argument
107 int snd_seq_oss_process_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev);
109 int snd_seq_oss_event_input(struct snd_seq_event *ev, int direct, void *private_data, int atomic, i…
Dseq_oss_synth.c437 struct snd_seq_event ev; in snd_seq_oss_synth_reset() local
438 memset(&ev, 0, sizeof(ev)); in snd_seq_oss_synth_reset()
439 snd_seq_oss_fill_addr(dp, &ev, info->arg.addr.client, in snd_seq_oss_synth_reset()
441 ev.type = SNDRV_SEQ_EVENT_RESET; in snd_seq_oss_synth_reset()
442 snd_seq_oss_dispatch(dp, &ev, 0, 0); in snd_seq_oss_synth_reset()
497 …_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
538 ev->flags = SNDRV_SEQ_EVENT_LENGTH_VARIABLE; in snd_seq_oss_synth_sysex()
539 if (snd_seq_oss_synth_addr(dp, dev, ev)) in snd_seq_oss_synth_sysex()
541 ev->data.ext.len = sysex->len; in snd_seq_oss_synth_sysex()
542 ev->data.ext.ptr = sysex->buf; in snd_seq_oss_synth_sysex()
[all …]
Dseq_oss_readq.c139 struct snd_seq_event *ev) in snd_seq_oss_readq_sysex() argument
146 if ((ev->flags & SNDRV_SEQ_EVENT_LENGTH_MASK) != SNDRV_SEQ_EVENT_LENGTH_VARIABLE) in snd_seq_oss_readq_sysex()
148 return snd_seq_dump_var_event(ev, readq_dump_sysex, &ctx); in snd_seq_oss_readq_sysex()
156 snd_seq_oss_readq_put_event(struct seq_oss_readq *q, union evrec *ev) in snd_seq_oss_readq_put_event() argument
166 memcpy(&q->q[q->tail], ev, sizeof(*ev)); in snd_seq_oss_readq_put_event()
Dseq_oss_synth.h42 struct snd_seq_event *ev);
43 int snd_seq_oss_synth_addr(struct seq_oss_devinfo *dp, int dev, struct snd_seq_event *ev);
47 unsigned char *data, struct snd_seq_event *ev);
Dseq_oss_init.c53 static int receive_announce(struct snd_seq_event *ev, int direct, void *private, int atomic, int ho…
136 receive_announce(struct snd_seq_event *ev, int direct, void *private, int atomic, int hop) in receive_announce() argument
143 switch (ev->type) { in receive_announce()
146 if (ev->data.addr.client == system_client) in receive_announce()
149 pinfo.addr = ev->data.addr; in receive_announce()
155 if (ev->data.addr.client == system_client) in receive_announce()
157 snd_seq_oss_midi_check_exit_port(ev->data.addr.client, in receive_announce()
158 ev->data.addr.port); in receive_announce()
Dseq_oss_midi.h42 struct snd_seq_event *ev);
43 int snd_seq_oss_midi_input(struct snd_seq_event *ev, int direct, void *private);
Dseq_oss_readq.h48 struct snd_seq_event *ev);
49 int snd_seq_oss_readq_put_event(struct seq_oss_readq *readq, union evrec *ev);
Dseq_oss_ioctl.c59 unsigned char ev[8]; in snd_seq_oss_oob_user() local
62 if (copy_from_user(ev, arg, 8)) in snd_seq_oss_oob_user()
67 if (! snd_seq_oss_process_event(dp, (union evrec *)ev, &tmpev)) { in snd_seq_oss_oob_user()
/sound/synth/emux/
Demux_oss.c41 static int snd_emux_event_oss_input(struct snd_seq_event *ev, int direct,
302 snd_emux_event_oss_input(struct snd_seq_event *ev, int direct, void *private_data, in snd_emux_event_oss_input() argument
315 if (ev->type != SNDRV_SEQ_EVENT_OSS) in snd_emux_event_oss_input()
316 return snd_emux_event_input(ev, direct, private_data, atomic, hop); in snd_emux_event_oss_input()
318 data = ev->data.raw8.d; in snd_emux_event_oss_input()
500 struct snd_seq_event ev; in fake_event() local
501 memset(&ev, 0, sizeof(ev)); in fake_event()
502 ev.type = SNDRV_SEQ_EVENT_CONTROLLER; in fake_event()
503 ev.data.control.channel = ch; in fake_event()
504 ev.data.control.param = param; in fake_event()
[all …]
/sound/core/
Dcontrol.c149 struct snd_kctl_event *ev; in snd_ctl_notify() local
163 list_for_each_entry(ev, &ctl->events, list) { in snd_ctl_notify()
164 if (ev->id.numid == id->numid) { in snd_ctl_notify()
165 ev->mask |= mask; in snd_ctl_notify()
169 ev = kzalloc(sizeof(*ev), GFP_ATOMIC); in snd_ctl_notify()
170 if (ev) { in snd_ctl_notify()
171 ev->id = *id; in snd_ctl_notify()
172 ev->mask = mask; in snd_ctl_notify()
173 list_add_tail(&ev->list, &ctl->events); in snd_ctl_notify()
1458 struct snd_ctl_event ev; in snd_ctl_read() local
[all …]

12