Lines Matching refs:rmidi
12 struct snd_dg00x *dg00x = substream->rmidi->private_data; in midi_open()
36 struct snd_dg00x *dg00x = substream->rmidi->private_data; in midi_close()
50 struct snd_dg00x *dg00x = substream->rmidi->private_data; in midi_capture_trigger()
54 if (substream->rmidi->device == 0) in midi_capture_trigger()
72 struct snd_dg00x *dg00x = substream->rmidi->private_data; in midi_playback_trigger()
76 if (substream->rmidi->device == 0) in midi_playback_trigger()
92 struct snd_rawmidi *rmidi, bool is_console) in set_substream_names() argument
99 str = &rmidi->streams[i]; in set_substream_names()
130 struct snd_rawmidi *rmidi; in add_substream_pair() local
135 out_ports, in_ports, &rmidi); in add_substream_pair()
138 rmidi->private_data = dg00x; in add_substream_pair()
144 snprintf(rmidi->name, sizeof(rmidi->name), label, in add_substream_pair()
147 snd_rawmidi_set_ops(rmidi, SNDRV_RAWMIDI_STREAM_OUTPUT, &playback_ops); in add_substream_pair()
148 snd_rawmidi_set_ops(rmidi, SNDRV_RAWMIDI_STREAM_INPUT, &capture_ops); in add_substream_pair()
150 rmidi->info_flags |= SNDRV_RAWMIDI_INFO_INPUT | in add_substream_pair()
154 set_substream_names(dg00x, rmidi, is_console); in add_substream_pair()