Lines Matching refs:ev
79 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()
146 if ((ev->flags & SNDRV_SEQ_EVENT_LENGTH_MASK) != SNDRV_SEQ_EVENT_LENGTH_VARIABLE) { in event_process_midi()
148 pr_debug("ALSA: seq_midi: invalid sysex event flags = 0x%x\n", ev->flags); in event_process_midi()
151 snd_seq_dump_var_event(ev, (snd_seq_dump_func_t)dump_midi, substream); in event_process_midi()
156 len = snd_midi_event_decode(msynth->parser, msg, sizeof(msg), ev); in event_process_midi()