From: Takashi Iwai <tiwai@suse.de>
To: Denis Kulikov <dar1knessx@gmail.com>
Cc: Takashi Iwai <tiwai@suse.com>, Jaroslav Kysela <perex@perex.cz>,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ALSA: usb-audio: Rate-limit URB submission error at stream start
Date: Mon, 26 Oct 2026 09:03:18 +0100 [thread overview]
Message-ID: <87v76o6g8p.wl-tiwai@suse.de> (raw)
In-Reply-To: <20261025231849.148149-1-dar1knessx@gmail.com>
On Mon, 26 Oct 2026 00:18:49 +0100,
Denis Kulikov wrote:
>
> When two USB audio devices share a USB 2.0 hub (here a headset and a
> microphone), there may not be enough isochronous bandwidth to start the
> second stream, and usb_submit_urb() fails with -ENOSPC. PipeWire keeps
> retrying to start the stream every ~20 ms, and every attempt logs
>
> usb 2-1.1: cannot submit urb 0, error -28: not enough bandwidth
>
> On my desktop this was printed up to 94 times per second and flooded
> the kernel log.
>
> Use usb_audio_err_ratelimited() for this message, as commit
> 2db2be5607c4 ("ALSA: usb-audio: Rate limit usb_set_interface error
> reporting") already did for a neighbouring message in the same file.
>
> Tested on that desktop (X79, Linux 7.3) with the headset and the
> microphone on one hub, starting playback and capture on both for 20
> seconds: the stock snd-usb-audio module printed the message 580 times,
> the patched one printed it 50 times and suppressed the rest.
>
> Signed-off-by: Denis Kulikov <dar1knessx@gmail.com>
Applied now. Thanks.
Takashi
prev parent reply other threads:[~2026-10-26 8:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-25 23:18 Denis Kulikov
2026-10-26 8:03 ` 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=87v76o6g8p.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=dar1knessx@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
/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
all inboxes | Powered by JetHome®