• Home
  • Raw
  • Download

Lines Matching refs:rmidi

66 	if (midi->rmidi == NULL) {  in do_emu10k1_midi_interrupt()
144 struct snd_emu10k1_midi *midi = (struct snd_emu10k1_midi *)substream->rmidi->private_data; in snd_emu10k1_midi_input_open()
171 struct snd_emu10k1_midi *midi = (struct snd_emu10k1_midi *)substream->rmidi->private_data; in snd_emu10k1_midi_output_open()
198 struct snd_emu10k1_midi *midi = (struct snd_emu10k1_midi *)substream->rmidi->private_data; in snd_emu10k1_midi_input_close()
221 struct snd_emu10k1_midi *midi = (struct snd_emu10k1_midi *)substream->rmidi->private_data; in snd_emu10k1_midi_output_close()
244 struct snd_emu10k1_midi *midi = (struct snd_emu10k1_midi *)substream->rmidi->private_data; in snd_emu10k1_midi_input_trigger()
258 struct snd_emu10k1_midi *midi = (struct snd_emu10k1_midi *)substream->rmidi->private_data; in snd_emu10k1_midi_output_trigger()
310 static void snd_emu10k1_midi_free(struct snd_rawmidi *rmidi) in snd_emu10k1_midi_free() argument
312 struct snd_emu10k1_midi *midi = rmidi->private_data; in snd_emu10k1_midi_free()
314 midi->rmidi = NULL; in snd_emu10k1_midi_free()
319 struct snd_rawmidi *rmidi; in emu10k1_midi_init() local
322 err = snd_rawmidi_new(emu->card, name, device, 1, 1, &rmidi); in emu10k1_midi_init()
329 strcpy(rmidi->name, name); in emu10k1_midi_init()
330 snd_rawmidi_set_ops(rmidi, SNDRV_RAWMIDI_STREAM_OUTPUT, &snd_emu10k1_midi_output); in emu10k1_midi_init()
331 snd_rawmidi_set_ops(rmidi, SNDRV_RAWMIDI_STREAM_INPUT, &snd_emu10k1_midi_input); in emu10k1_midi_init()
332 rmidi->info_flags |= SNDRV_RAWMIDI_INFO_OUTPUT | in emu10k1_midi_init()
335 rmidi->private_data = midi; in emu10k1_midi_init()
336 rmidi->private_free = snd_emu10k1_midi_free; in emu10k1_midi_init()
337 midi->rmidi = rmidi; in emu10k1_midi_init()