The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: YuanZhe Liu <25031212351@stu.xidian.edu.cn>
Cc: Takashi Iwai <tiwai@suse.de>, Jaroslav Kysela <perex@perex.cz>,
	linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
	Bin Yu <byu@xidian.edu.cn>, Cheng Wen <wencheng@xidian.edu.cn>
Subject: Re: [PATCH 0/2] ALSA: 6fire: avoid resubmitting an active URB
Date: Tue, 01 Dec 2026 11:23:03 +0100	[thread overview]
Message-ID: <87o6b5z4e0.wl-tiwai@suse.de> (raw)
In-Reply-To: <20261123084846.7700-1-25031212351@stu.xidian.edu.cn>

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

      parent reply	other threads:[~2026-12-01 10:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  8:48 [PATCH 0/2] ALSA: 6fire: avoid resubmitting an active URB YuanZhe Liu
2026-11-23  8:48 ` [PATCH 1/2] ALSA: 6fire: Don't resubmit an active MIDI URB YuanZhe Liu
2026-11-23  8:48 ` [PATCH 2/2] ALSA: 6fire: Don't resubmit an active PCM out URB YuanZhe Liu
2026-12-01 10:23 ` Takashi Iwai [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o6b5z4e0.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=25031212351@stu.xidian.edu.cn \
    --cc=byu@xidian.edu.cn \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=wencheng@xidian.edu.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox