Lines Matching full:midi
19 * Nominally 3125 bytes/second, but the MIDI port's clock might be
26 * In any case, this is more than enough for the MIDI data rate.
31 struct snd_rawmidi_substream *midi[AM824_MAX_CHANNELS_FOR_MIDI * 8]; member
49 * @midi_ports: the number of MIDI ports (i.e., MPX-MIDI Data Channels)
101 /* init the position map for PCM and MIDI channels */ in amdtp_am824_set_parameters()
107 * We do not know the actual MIDI FIFO size of most devices. Just in amdtp_am824_set_parameters()
109 * the previous one is transmitted over MIDI. in amdtp_am824_set_parameters()
136 * amdtp_am824_set_midi_position - set a index of data channel for MIDI
245 * amdtp_am824_midi_trigger - start/stop playback/capture with a MIDI device
247 * @port: index of MIDI port
248 * @midi: the MIDI device to be started, or %NULL to stop the current device
251 * transmission of MIDI data. This function should be called from the MIDI
255 struct snd_rawmidi_substream *midi) in amdtp_am824_midi_trigger() argument
260 WRITE_ONCE(p->midi[port], midi); in amdtp_am824_midi_trigger()
265 * To avoid sending MIDI bytes at too high a rate, assume that the receiving
310 p->midi[port] != NULL && in write_midi_messages()
311 snd_rawmidi_transmit(p->midi[port], &b[1], 1) == 1) { in write_midi_messages()
342 if ((1 <= len) && (len <= 3) && (p->midi[port])) in read_midi_messages()
343 snd_rawmidi_receive(p->midi[port], b + 1, len); in read_midi_messages()