Lines Matching refs:rmidi
24 struct snd_rawmidi *rmidi; in snd_sb8dsp_midi_interrupt() local
31 rmidi = chip->rmidi; in snd_sb8dsp_midi_interrupt()
32 if (!rmidi) { in snd_sb8dsp_midi_interrupt()
56 chip = substream->rmidi->private_data; in snd_sb8dsp_midi_input_open()
83 chip = substream->rmidi->private_data; in snd_sb8dsp_midi_output_open()
109 chip = substream->rmidi->private_data; in snd_sb8dsp_midi_input_close()
127 chip = substream->rmidi->private_data; in snd_sb8dsp_midi_output_close()
146 chip = substream->rmidi->private_data; in snd_sb8dsp_midi_input_trigger()
172 chip = substream->rmidi->private_data; in snd_sb8dsp_midi_output_write()
217 chip = substream->rmidi->private_data; in snd_sb8dsp_midi_output_trigger()
251 struct snd_rawmidi *rmidi; in snd_sb8dsp_midi() local
254 err = snd_rawmidi_new(chip->card, "SB8 MIDI", device, 1, 1, &rmidi); in snd_sb8dsp_midi()
257 strcpy(rmidi->name, "SB8 MIDI"); in snd_sb8dsp_midi()
258 snd_rawmidi_set_ops(rmidi, SNDRV_RAWMIDI_STREAM_OUTPUT, &snd_sb8dsp_midi_output); in snd_sb8dsp_midi()
259 snd_rawmidi_set_ops(rmidi, SNDRV_RAWMIDI_STREAM_INPUT, &snd_sb8dsp_midi_input); in snd_sb8dsp_midi()
260 rmidi->info_flags |= SNDRV_RAWMIDI_INFO_OUTPUT | SNDRV_RAWMIDI_INFO_INPUT; in snd_sb8dsp_midi()
262 rmidi->info_flags |= SNDRV_RAWMIDI_INFO_DUPLEX; in snd_sb8dsp_midi()
263 rmidi->private_data = chip; in snd_sb8dsp_midi()
265 chip->rmidi = rmidi; in snd_sb8dsp_midi()