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

From: Takashi Iwai

Date: Wed Dec 02 2026 - 03:42:21 EST


On Tue, 01 Dec 2026 12:35:39 +0100,
YuanZhe Liu wrote:
>
> 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

Applied both patches to for-next branch.


thanks,

Takashi