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
47 * @midi_ports: the number of MIDI ports (i.e., MPX-MIDI Data Channels)
99 /* init the position map for PCM and MIDI channels */ in amdtp_am824_set_parameters()
105 * We do not know the actual MIDI FIFO size of most devices. Just in amdtp_am824_set_parameters()
107 * the previous one is transmitted over MIDI. in amdtp_am824_set_parameters()
134 * amdtp_am824_set_midi_position - set a index of data channel for MIDI
243 * amdtp_am824_midi_trigger - start/stop playback/capture with a MIDI device
245 * @port: index of MIDI port
246 * @midi: the MIDI device to be started, or %NULL to stop the current device
249 * transmission of MIDI data. This function should be called from the MIDI
253 struct snd_rawmidi_substream *midi) in amdtp_am824_midi_trigger() argument
258 WRITE_ONCE(p->midi[port], midi); in amdtp_am824_midi_trigger()
263 * To avoid sending MIDI bytes at too high a rate, assume that the receiving
308 p->midi[port] != NULL && in write_midi_messages()
309 snd_rawmidi_transmit(p->midi[port], &b[1], 1) == 1) { in write_midi_messages()
340 if ((1 <= len) && (len <= 3) && (p->midi[port])) in read_midi_messages()
341 snd_rawmidi_receive(p->midi[port], b + 1, len); in read_midi_messages()