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

From: Takashi Iwai

Date: Tue Dec 01 2026 - 05:23:14 EST


On Mon, 23 Nov 2026 09:48:44 +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.
>
>
> YuanZhe Liu (2):
> ALSA: 6fire: Don't resubmit an active MIDI URB
> ALSA: 6fire: Don't resubmit an active PCM out URB

There was some suggestion from Sashiko. Could you verify?


thanks,

Takashi