commit | 6aea5702e27ebc85747d6e4943a0c378e1752be0 | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Thu Sep 13 08:20:43 2018 +0200 |
committer | Takashi Iwai <tiwai@suse.de> | Thu Oct 04 20:13:17 2018 +0200 |
tree | c14ccb05935b7390997e8f4c74a5f4d4b2ab3617 | |
parent | cd3b7116b57527f659b96ff6988d2de3d448c5b3 [diff] |
ALSA: rawmidi: A lightweight function to discard pending bytes For discarding the pending bytes on rawmidi, we process with a loop of snd_rawmidi_transmit() which is just a waste of CPU power. Implement a lightweight API function to discard the pending bytes and the proceed the ring buffer instantly, and use it instead of open codes. Signed-off-by: Takashi Iwai <tiwai@suse.de>