Skip to content
Snippets Groups Projects
Commit 6aea5702 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

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: default avatarTakashi Iwai <tiwai@suse.de>
parent cd3b7116
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment