original_kernel/sound/usb
Takashi Iwai f58161ba1b ALSA: usb-audio: Fix crash at re-preparing the PCM stream
There are bug reports of a crash with USB-audio devices when PCM
prepare is performed immediately after the stream is stopped via
trigger callback.  It turned out that the problem is that we don't
wait until all URBs are killed.

This patch adds a new function to synchronize the pending stop
operation on an endpoint, and calls in the prepare callback for
avoiding the crash above.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=49181

Reported-and-tested-by: Artem S. Tashkinov <t.artem@lycos.com>
Cc: <stable@vger.kernel.org> [v3.6]
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2012-11-08 08:56:44 +01:00
..
6fire
caiaq
misc
usx2y
Kconfig
Makefile
card.c ALSA: usb-audio: Use rwsem for disconnect protection 2012-10-30 11:07:00 +01:00
card.h
clock.c
clock.h
debug.h
endpoint.c ALSA: usb-audio: Fix crash at re-preparing the PCM stream 2012-11-08 08:56:44 +01:00
endpoint.h ALSA: usb-audio: Fix crash at re-preparing the PCM stream 2012-11-08 08:56:44 +01:00
format.c
format.h
helper.c
helper.h
midi.c
midi.h
mixer.c ALSA: usb-audio: Use rwsem for disconnect protection 2012-10-30 11:07:00 +01:00
mixer.h
mixer_maps.c
mixer_quirks.c ALSA: usb-audio: Fix races at disconnection in mixer_quirks.c 2012-10-30 11:07:05 +01:00
mixer_quirks.h
pcm.c ALSA: usb-audio: Fix crash at re-preparing the PCM stream 2012-11-08 08:56:44 +01:00
pcm.h
power.h
proc.c
proc.h
quirks-table.h
quirks.c
quirks.h
stream.c
stream.h
usbaudio.h ALSA: usb-audio: Use rwsem for disconnect protection 2012-10-30 11:07:00 +01:00