]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: firewire-tascam: support drain callback for MIDI playback substream
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 14 Apr 2017 07:46:32 +0000 (16:46 +0900)
committerTakashi Iwai <tiwai@suse.de>
Fri, 14 Apr 2017 12:50:43 +0000 (14:50 +0200)
commit37e7e8100664293321a13e8eeebf296ccec4a322
treeae86ea2cd156f7e27ef9b04ba55cf0136ecee7e2
parent1e575170a40a4e56b064ce29bfe16be936e43596
ALSA: firewire-tascam: support drain callback for MIDI playback substream

ALSA driver for TASCAM FireWire series transfers MIDI messages in system
workqueue. In current design of the driver, applications should wait for
sequence of transmission when they close ALSA rawmidi character devices.
However, when considering design of rawmidi interface, it's preferable
to wait in drain ioctl.

This commit adds support for the drain ioctl to wait for the end of
the transmission.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/tascam/tascam-midi.c