Lines Matching refs:alsa_sub
60 static int usb6fire_midi_out_open(struct snd_rawmidi_substream *alsa_sub) in usb6fire_midi_out_open() argument
65 static int usb6fire_midi_out_close(struct snd_rawmidi_substream *alsa_sub) in usb6fire_midi_out_close() argument
71 struct snd_rawmidi_substream *alsa_sub, int up) in usb6fire_midi_out_trigger() argument
73 struct midi_runtime *rt = alsa_sub->rmidi->private_data; in usb6fire_midi_out_trigger()
85 ret = snd_rawmidi_transmit(alsa_sub, rt->out_buffer + 4, in usb6fire_midi_out_trigger()
98 rt->out = alsa_sub; in usb6fire_midi_out_trigger()
100 } else if (rt->out == alsa_sub) in usb6fire_midi_out_trigger()
105 static void usb6fire_midi_out_drain(struct snd_rawmidi_substream *alsa_sub) in usb6fire_midi_out_drain() argument
107 struct midi_runtime *rt = alsa_sub->rmidi->private_data; in usb6fire_midi_out_drain()
114 static int usb6fire_midi_in_open(struct snd_rawmidi_substream *alsa_sub) in usb6fire_midi_in_open() argument
119 static int usb6fire_midi_in_close(struct snd_rawmidi_substream *alsa_sub) in usb6fire_midi_in_close() argument
125 struct snd_rawmidi_substream *alsa_sub, int up) in usb6fire_midi_in_trigger() argument
127 struct midi_runtime *rt = alsa_sub->rmidi->private_data; in usb6fire_midi_in_trigger()
132 rt->in = alsa_sub; in usb6fire_midi_in_trigger()