Lines Matching refs:ev
59 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()
97 snd_seq_dump_var_event(ev, (snd_seq_dump_func_t)snd_rawmidi_receive, vmidi->substream); in snd_virmidi_dev_receive_event()
100 len = snd_midi_event_decode(vmidi->parser, msg, sizeof(msg), ev); in snd_virmidi_dev_receive_event()
121 int snd_virmidi_receive(struct snd_rawmidi *rmidi, struct snd_seq_event *ev)
126 return snd_virmidi_dev_receive_event(rdev, ev, true);
133 static int snd_virmidi_event_input(struct snd_seq_event *ev, int direct, in snd_virmidi_event_input() argument
141 return snd_virmidi_dev_receive_event(rdev, ev, atomic); in snd_virmidi_event_input()