sound: usb-audio: add MIDI drain callback
authorClemens Ladisch <clemens@ladisch.de>
Mon, 13 Jul 2009 11:48:36 +0000 (13:48 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 15 Jul 2009 09:56:41 +0000 (11:56 +0200)
commita65dd997b3cf057f6524466cf8dfb8382c132bd5
treef5463308ba24a10266ae828ed869500c6f282fd1
parented4affa53229701be7be4f7f84ba84164135d7e8
sound: usb-audio: add MIDI drain callback

When draining, instead of waiting for fifty milliseconds, just wait for
the currently active URBs to complete.  This cuts the usual waiting time
down to one USB frame, or zero in the common case when there is no URB.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/usbmidi.c