[PATCH v2 0/2] ALSA: 6fire: avoid resubmitting an active URB

From: YuanZhe Liu

Date: Tue Dec 01 2026 - 06:36:12 EST


The 6fire driver submits URBs from callbacks that do not own them, and the
USB core complains when the URB is still queued:

URB 000000003ec29e65 submitted while active
WARNING: drivers/usb/core/urb.c:379 at usb_submit_urb

There are two independent paths. The MIDI output resubmits rt->out_urb
after the stream was stopped while the previous transfer was still in
flight, and the PCM capture handler unconditionally resubmits the
playback URB paired with the capture URB that has just completed.

Both patches make the driver check whether the URB is still queued, as
sound/usb/midi.c does with active_urbs, and leave the data to the
completion handler instead of submitting an active URB.

v1 -> v2:
- Clear rt->out also when the resubmission fails in the MIDI completion
handler; otherwise a later trigger(1) returns early at the rt->out
check and the stream stays stalled. Pointed out by the Sashiko
review.


YuanZhe Liu (2):
ALSA: 6fire: Don't resubmit an active MIDI URB
ALSA: 6fire: Don't resubmit an active PCM out URB

sound/usb/6fire/midi.c | 24 +++++++++++++++++++-----
sound/usb/6fire/midi.h | 1 +
sound/usb/6fire/pcm.c | 16 +++++++++++++++-
sound/usb/6fire/pcm.h | 2 ++
4 files changed, 37 insertions(+), 6 deletions(-)

--
2.34.1