]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: stop both data and sync endpoints asynchronously
authorTakashi Iwai <tiwai@suse.de>
Wed, 21 Nov 2012 07:30:48 +0000 (08:30 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 21 Nov 2012 10:43:56 +0000 (11:43 +0100)
commit65543a921f66afa0d2e01fdc2966f8408a70b116
tree7d5724114c4f57503502a7dd4a86bc9573774669
parent0e3b0ec6a9659ad24f52b4db585c52d56bd9c7b5
ALSA: usb-audio: stop both data and sync endpoints asynchronously

As we are stopping the endpoints asynchronously now, it's better to
trigger the stop of both data and sync endpoints and wait for pending
stopping operations, instead of the sequential trigger-and-wait
procedure.

So the wait argument in snd_usb_endpoint_stop() is dropped, and it's
expected that the caller synchronizes explicitly by calling
snd_usb_endpoint_sync_pending_stop().  (Actually there is only one
place calling this, so it was safe to change.)

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/endpoint.c
sound/usb/endpoint.h
sound/usb/pcm.c