🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #3093

Bug#1152888: Regression: MOTU M4 USB audio playback fails with EIO on Linux 6.12.115 (works on 6.12.113)

#3093
From: smg
Date: Wed, 04 Nov 2026 15:20
46 lines
6527 bytes
Hi Salvatore,

answering the question from your Message #42: yes, 70b4db7d2581 on top of
6.12.115-2 fixes it. Confirmed on real hardware, and on a device from a
different vendor (Topping, not MOTU).

  Device: Topping E2x2, USB ID 152a:8752 (XMOS/Thesycon UAC2)
  Playback endpoint 0x01 (OUT, ASYNC), implicit feedback via EP 0x81

How it was built

I rebuilt only sound/usb/snd-usb-audio.ko, against the Debian 6.12.115-2
configuration and the Module.symvers shipped in
linux-headers-6.12.115+deb13.1-amd64, using gcc-14, the same compiler
Debian used for this kernel. The resulting module has an identical
vermagic:

    6.12.115+deb13.1-amd64 SMP preempt mod_unload modversions

Baseline sanity check: built *without* the patch, prepare_playback_urb()
comes out at exactly the same size as in the shipped module (1653 bytes),
so the build environment reproduces Debian's build. With the patch applied
it is 1646 bytes, and the disassembly contains:

    imul   %r10d,%edx
    cmp    %edx,0x8(%r12)

i.e. (frames + counts) * stride compared against ctx->buffer_size.

A correction to my previous message

I wrote that ctx->buffer_size might not exist in 6.12.y. That was wrong.
It does exist - struct snd_urb_ctx in sound/usb/card.h has:

    unsigned int buffer_size;   /* size of data buffer, if data URB */

and it is assigned unconditionally in data_ep_set_params() in
sound/usb/endpoint.c:

    u->buffer_size = maxsize * u->packets;

That line is outside the "if (usb_pipein(ep->pipe) || ep->implicit_fb_sync)"
branch, so the value is valid for capture, implicit-feedback playback and
plain playback alike. Consequently 70b4db7d2581 applies to 6.12.y as-is.
No substitute such as subs->buffer_bytes is needed.

Before / after

Before (6.12.115-2, stock module), while playing:

    state: RUNNING
    delay    : 4608    (constant)
    hw_ptr   : 0       (never advances)
    appl_ptr : 4608

After (6.12.115-2 + 70b4db7d2581), while playing:

    state: RUNNING
    delay    : 7222
    hw_ptr   : 701497
    appl_ptr : 708630

hw_ptr advances continuously and the output is audible again.

Disclosure: I worked on this together with an LLM-based assistant. It
helped with the source analysis, with preparing the module build and
with drafting this message. I reviewed all of it, and I ran the builds
and the hardware tests myself on the machine described above; the
measurements quoted here come from my own system.

Thanks,
smg <smgdream@foxmail.com>
Technical Details
Message-ID: <NVKWl-9OTy-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!robomod
References: <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 16:20:01 +0100
Message-ID: <NVKWl-9OTy-1@gated-at.bofh.it>
References: <NV7BE-9tvH-1@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Wed Nov  4 15:11: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: OWPUhxQsoeAVwkVaQIEGSKwwgKCxK/fD5g==
X-Qq-Xmailinfo: OcF+W9IZIs1iRWKl9ofZbFRZbgM6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MVAckKcZvbq
	 hGp8KuozpebRj/EiYasnVL77Sy2Q49NMK7cC5G79xzZ1OzIc=
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-1t1793805017t1ycb5440
X-Greylist: delayed 43886 seconds by postgrey-1.37 at buxtehude; Wed, 04 Nov 2026 15:10:26 UTC
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2000622
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 46
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: "carnil" <carnil@debian.org>
X-Original-Date: Wed, 4 Nov 2026 23:10:17 +0800
X-Original-Message-ID: <tencent_F0DE697E6607C4A81A015821F2D18FEBD009@qq.com>
X-Original-References: <179365404033.4880.4185261490236431358.reportbug@sound>