linux_dsm_epyc7002/sound/usb/caiaq
Daniel Mack da6094ea7d ALSA: snd_usb_caiaq: track submitted output urbs
The snd_usb_caiaq driver currently assumes that output urbs are serviced
in time and doesn't track when and whether they are given back by the
USB core. That usually works fine, but due to temporary limitations of
the XHCI stack, we faced that urbs were submitted more than once with
this approach.

As it's no good practice to fire and forget urbs anyway, this patch
introduces a proper bit mask to track which requests have been submitted
and given back.

That alone however doesn't make the driver work in case the host
controller is broken and doesn't give back urbs at all, and the output
stream will stop once all pre-allocated output urbs are consumed. But
it does prevent crashes of the controller stack in such cases.

See http://bugzilla.kernel.org/show_bug.cgi?id=40702 for more details.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Reported-and-tested-by: Matej Laitl <matej@laitl.cz>
Cc: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: stable@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2011-08-14 18:10:43 +02:00
..
audio.c ALSA: snd_usb_caiaq: track submitted output urbs 2011-08-14 18:10:43 +02:00
audio.h ALSA: snd-usb-caiaq: rename files to remove redundant information in file pathes 2009-04-14 13:31:17 +02:00
control.c ALSA: snd-usb-caiaq: Add support for Traktor Kontrol S4 2010-09-10 11:08:39 +02:00
control.h ALSA: snd-usb-caiaq: rename files to remove redundant information in file pathes 2009-04-14 13:31:17 +02:00
device.c ALSA: snd-usb-caiaq: Add support for Traktor Audio 2 2011-02-14 17:10:45 +01:00
device.h ALSA: snd_usb_caiaq: track submitted output urbs 2011-08-14 18:10:43 +02:00
input.c ALSA: snd-usb-caiaq: Fix keymap for RigKontrol3 2011-08-06 10:23:36 +02:00
input.h ALSA: snd-usb-caiaq: rename files to remove redundant information in file pathes 2009-04-14 13:31:17 +02:00
Makefile ALSA: snd-usb-caiaq: rename files to remove redundant information in file pathes 2009-04-14 13:31:17 +02:00
midi.c ALSA: caiaq - Fix possible string-buffer overflow 2011-02-14 22:50:46 +01:00
midi.h ALSA: sound/usb/caiaq/midi.h: Checkpatch cleanup 2010-03-02 11:22:49 +01:00