Skip to content
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
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment