Check whether the output buffer is empty
int snd_rawmidi_transmit_empty(struct snd_rawmidi_substream * substream);
substream
the rawmidi substream
1 if the internal output buffer is empty, 0 if not.