Lines Matching refs:stream
44 static void midi_input_escaped_byte(struct snd_rawmidi_substream *stream,
51 snd_rawmidi_receive(stream, nibbles, 2);
55 struct snd_rawmidi_substream *stream, u8 byte)
60 midi_input_escaped_byte(stream, byte);
63 snd_rawmidi_receive(stream, &eox, sizeof(eox));
65 snd_rawmidi_receive(stream, sysex_escape_prefix,
67 midi_input_escaped_byte(stream, 0x00);
68 midi_input_escaped_byte(stream, 0xf9);
71 snd_rawmidi_receive(stream, &byte, 1);
76 struct snd_rawmidi_substream *stream,
84 midi_input_byte(scs, stream, data[i]);
86 snd_rawmidi_receive(stream, sysex_escape_prefix,
89 midi_input_escaped_byte(stream, data[i]);
90 snd_rawmidi_receive(stream, &eox, sizeof(eox));
100 struct snd_rawmidi_substream *stream;
114 stream = READ_ONCE(scs->input);
115 if (stream)
116 midi_input_packet(scs, stream, data, length);
177 struct snd_rawmidi_substream *stream;
185 stream = READ_ONCE(scs->output);
186 if (!stream || scs->error) {
197 if (snd_rawmidi_transmit(stream, &byte, 1) != 1) {
277 static int midi_capture_open(struct snd_rawmidi_substream *stream)
282 static int midi_capture_close(struct snd_rawmidi_substream *stream)
287 static void midi_capture_trigger(struct snd_rawmidi_substream *stream, int up)
289 struct fw_scs1x *scs = stream->rmidi->private_data;
293 WRITE_ONCE(scs->input, stream);
299 static int midi_playback_open(struct snd_rawmidi_substream *stream)
304 static int midi_playback_close(struct snd_rawmidi_substream *stream)
309 static void midi_playback_trigger(struct snd_rawmidi_substream *stream, int up)
311 struct fw_scs1x *scs = stream->rmidi->private_data;
321 WRITE_ONCE(scs->output, stream);
327 static void midi_playback_drain(struct snd_rawmidi_substream *stream)
329 struct fw_scs1x *scs = stream->rmidi->private_data;