]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: seq: virmidi: Add a drain operation
authorStefan Sauer <st_kost@gmx.de>
Thu, 6 Jan 2022 12:41:45 +0000 (13:41 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 6 Jan 2022 15:08:07 +0000 (16:08 +0100)
commitcad6f3c272bffce4108c0262dfedecae849b8250
tree17bdba5018a5731faecc565b2bebc39cbf312273
parent452396102c95a3764c1fbe118309340b77207c96
ALSA: seq: virmidi: Add a drain operation

If a driver does not supply a drain operation for outputs, a default code
path will execute msleep(50). Especially for a virtual midi device
this severely limmits the throughput.

This implementation for the virtual midi driver simply flushes the output
workqueue.

Signed-off-by: Stefan Sauer <st_kost@gmx.de>
Link: https://lore.kernel.org/r/20220106124145.17254-1-st_kost@gmx.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/seq_virmidi.c