Article View: linux.debian.bugs.dist
Article #3042Bug#1152888: Regression: MOTU M4 USB audio playback fails with EIO on Linux 6.12.115 (works on 6.12.113)
From: smg
Date: Wed, 04 Nov 2026 03:20
Date: Wed, 04 Nov 2026 03:20
88 lines
9611 bytes
9611 bytes
Hi,
I hit the same regression on a third device vendor. The bisect result in
this thread is the right culprit, and I think I can add the missing piece:
why this commit breaks exactly this class of devices, and why so many
different interfaces regressed at once.
Affected device here: Topping E2x2 (USB ID 152a:8752, XMOS/Thesycon
UAC2 implementation), connected at high speed.
Symptoms on linux-image-6.12.115+deb13.1-amd64 (6.12.115-2):
- The card enumerates and binds to snd-usb-audio normally; there is not a
single error in dmesg.
- PipeWire/WirePlumber see it and it can be selected as the default sink.
- The PCM opens, configures and triggers successfully:
access: MMAP_INTERLEAVED, format: S32_LE, channels: 2, rate: 48000
period_size: 512, buffer_size: 32768
state: RUNNING
- But nothing is ever transferred. While playing, sampled over 5 seconds:
delay : 4608 (constant)
hw_ptr : 0 (never advances)
appl_ptr : 4608
Not a single URB completes, and still no error is logged.
- Booting 6.12.113-1 restores playback immediately.
This is the same picture as #1152963 (Audient iD4: "state: RUNNING, but
hw_ptr stays at 0"), and consistent with #1152962.
Why implicit-feedback devices are the ones affected
The bad commit, ef5749ef8b30 ("ALSA: usb-audio: Prevent excessive number of
frames"), added this to prepare_playback_urb() in sound/usb/pcm.c:
counts = snd_usb_endpoint_next_packet_size(ep, ctx, i, avail);
if (counts < 0 || frames + counts >= ep->max_urb_frames)
break;
However ep->max_urb_frames is assigned in only one branch of
snd_usb_endpoint_set_params() (sound/usb/endpoint.c):
if (usb_pipein(ep->pipe) || ep->implicit_fb_sync) {
...
ep->nurbs = MAX_URBS;
/* ep->max_urb_frames is NOT initialized here */
} else {
...
ep->max_urb_frames = DIV_ROUND_UP(ep->cur_period_frames,
urbs_per_period);
}
A playback endpoint driven by implicit feedback (usb_pipein() false and
implicit_fb_sync true; see snd_usb_endpoint_implicit_feedback_sink())
takes the first branch, so ep->max_urb_frames keeps its kzalloc() value of
zero. The new condition then degenerates to "frames + counts >= 0", which
is always true, so the loop breaks at i == 0, frames stays 0, and the
function returns -EAGAIN:
if (!frames) {
err = -EAGAIN;
goto unlock;
}
No URB is ever submitted. Playback is dead silent, and nothing is printed
to dmesg, because -EAGAIN here is the normal retry path.
This also explains the spread of the reports: every interface whose
playback endpoint uses implicit feedback regressed, regardless of vendor
(MOTU, Audient, Behringer, Topping, ...), while devices that do not use it
are unaffected. It may also explain why different reports show different
low-level errors (EIO/EPIPE in #1152888, a plain hang in #1152963) - same
code path, different manifestation.
The fix is already upstream
70b4db7d2581 "ALSA: usb-audio: Use the right limit for PCM OOB check"
(Takashi Iwai, 2026-01-21, eight days after ef5749ef8b30)
which replaces the ep->max_urb_frames test with a bound based on the real
buffer:
if (counts < 0 ||
(frames + counts) * stride > ctx->buffer_size)
break;
06be918062ad ("Bound packet copies by the PCM buffer size", 2026-10-26)
later adds subs->buffer_bytes as a second bound.
Debian 6.12.115-2 appears to carry ef5749ef8b30 but not its immediate
follow-up. I verified this against the shipped binaries: unpacking
snd-usb-audio.ko.xz from both installed kernels and comparing symbol sizes,
prepare_playback_urb() is the only function that changed between 6.12.113
and 6.12.115 (1630 -> 1653 bytes), and its disassembly contains the
ep->max_urb_frames comparison.
For 6.12.y, if ctx->buffer_size is not available there (I could not find it
in 6.12.115's pcm.c), subs->buffer_bytes already exists and gives an
equivalent bound; alternatively the check can simply be skipped when
ep->max_urb_frames is zero.
Happy to test a candidate kernel build.
Side note: I do not think #1152914 is the same issue - that one fails during
probe ("clock source 41 is not valid") rather than after streaming starts.
Note: the root cause analysis above was carried out jointly by the reporter
and an LLM-based assistant, and was verified against the shipped Debian
kernel binaries and the corresponding upstream sources.
Thanks,
smg <smgdream@foxmail.com>
Technical Details
Message-ID:
<NVzHz-9IYA-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<NV7BE-9tvH-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: "smg" <smgdream@foxmail.com> Newsgroups: linux.debian.bugs.dist,linux.debian.kernel Subject: Bug#1152888: Regression: MOTU M4 USB audio playback fails with EIO on Linux 6.12.115 (works on 6.12.113) Date: Wed, 04 Nov 2026 04:20:01 +0100 Message-ID: <NVzHz-9IYA-1@gated-at.bofh.it> References: <NV7BE-9tvH-1@gated-at.bofh.it> X-Original-To: "1152888" <1152888@bugs.debian.org> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Wed Nov 4 03:13:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.447 Reply-To: "smg" <smgdream@foxmail.com>, 1152888@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-kernel@lists.debian.org X-Debian-Pr-Message: followup 1152888 X-Debian-Pr-Package: src:linux X-Debian-Pr-Keywords: upstream moreinfo X-Debian-Pr-Source: linux X-Qq-Xmrinfo: NI4Ajvh11aEjEMj13RCX7UuhPEoou2bs1g== X-Qq-Xmailinfo: NsBBv6AnqV8OhuAdaG3JKIiRVeyQm7jidPVZQI/4cBo0GXXhBTUxVQbNaEDBG8 VLZvjbNu+WrVsUWA1ACvAfuYEPmvkZHokVCnb001COL3b9fW93mune9cfbHLP6BLT/7WP85Fu2cW2 Pipswe/OcghKu5BCXbyJVZJKj+Ei7Jh6aO/C6Lvk/MJbocQATDwmiCV7J6a/h8PD4+mBz7M73nBbA dyb2lQF8SGnD/TK/TzIoObRBZsnHEQ/JxK7fbxaaJo1yG+ia31oIUyEfFoHJHR4pxuE2UnY4PmUut jHlTS0R9UWaqd5hZp0t2MFUNDYP4Mh7PrhV8Dt06d47CdYxjA/Y0TGbD0OzHG/BVx3JDywruY4+LX O52VROzVZhiVjZ+tNNUSaEAPrLPzkaiaU/bbe0q87H14g5jIRls/n9aolnaoMkRWnMJWVMqdbQ4Cq C/J+HZrhzSixsTXvqb3vJWr9KJbfP0x74NrZNN1G8a+PVmfig4ICEuz1N2jguxcGXTX9LP3I47HVh ZC668sNCjmOdMrnWk3QTly9bZpLVO53ajO3HkHRRVyICgLAhIDYIZABSjxnVmBqr7WT9E0mhAfSeP Bm1x96H1SGMJ19GjwD0Sm7jCPsmiDCDKAUkQM2AEB28+cfhoTiIArZ5Hn9D+vSTs9FwEpvnYdxykq MMx1iITsmn0w+yut3y2GLwI4705enDPmPQXQIMWapdr0fxkW0vBajYkyFpUy4GZhAXYAKe3wmznii UIJMBLL9T31mM/YJwfTnVvY4WTbDLBNc1wQB/xgU6uf7ueK4+jJKHR2vRUXulihYPyBH9wO0ztf4u vP1vllIkyB40LsVJYIhqnoaGS4pmICAVTMOsKtU8TynlMJndpZZGfBk+I53EU+lOM1UNmgTjr09nk uf61tDKGcLgeIA71P487+wVr52aPKHPM/aYm6PGMMEIaydrtHLxA8j6PsYn6W5u37tqTMNE/9j/yx 7hrXOKxC9zft18aG3tjwxQuz88iR47ye1wH4F81IJYSgGzX/in04hJ6U9vfiUz/1Mwcxv0sdevprn Nd/AebyQ+SD4kERtVCZ+TTW9932gLZQdVQsRc MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 X-Qq-MIME: TCMime 1.0 by Tencent X-Mailer: QQMail 2.x X-Qq-Mailer: QQMail 2.x X-Qq-Mid: xmseub15-1t1793760941tr5bc1gm8 X-Greylist: delayed 857 seconds by postgrey-1.37 at buxtehude; Wed, 04 Nov 2026 03:11:12 UTC X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2000542 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 88 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 4 Nov 2026 10:55:41 +0800 X-Original-Message-ID: <tencent_0AAAB0DAE76B1D27A141D0FCCE928A5D350A@qq.com> X-Original-References: <179365404033.4880.4185261490236431358.reportbug@sound>