OSDN Git Service

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)
commitae369e559f16c5245d6b987c43799179af16e4d6
treeae86ea2cd156f7e27ef9b04ba55cf0136ecee7e2
parent1f94205d2225339c77e64d5872ec575ee2815720
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