Debian 12 Kernel 6.1.0-{29,30} Audio Stutter Fix - Call for Testing

For people following this issue or discovering this thread because of a problem with USB-connected audio on the x86_64/amd64 platform, this thread is a call for testing! Please read this entire post to understand the problem, the fix, and how to contribute information on testing.

Problem Statement

In order to address the problem, it has been decided the most reasonable fix that is maintainable over time is to use the current Linux LTS kernel contained in the bookworm-backports Debian repository. Using bookworm-backports will install Linux 6.12 which is the most-current LTS kernel version and is the kernel that will likely appear in Debian 13. After much discussion and testing, it has been decided that this will NOT be automatically imposed on systems, however.

Upon installation of the package ASL3 v.3.6.3-3 (and any update of the ASL3 package thereafter) and if the running kernel is not 6.11 or later, the platform is Debian 12, and the platform is not a Raspberry Pi device, the following warning will appear and be held in place for 5 seconds:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Some Debian 6.1.0 kernel versions (those after 6.1.0-28) have exhibited
performance issues with OSS-based USB devices like those used by
AllStarLink.

!!! Your system is running one of the affected kernels !!!

To address this issue we recommend that your system be configured to use
Debian Bookworm-Backports to obtain the latest 6.11.0 based kernel. The
newer kernel restores proper Asterisk/app_rpt support for AllStarLink.
When this upgrade completes, run /usr/bin/asl-kernel-manager and reboot
the system when prompted

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

The intention is to very visibly prompt a system administrator as to the problem and the solution.

Currently in the devel package stream there is an update to asl-3.6.3-3, dahdi-dkms-3.4.0-6+asl, and dahdi-linux-3.4.0-6+asl.

How to Test

In order to test these changes, please do the following (all commands as root):

  1. Note the current version of your kernel with the command uname -r
  2. Change the ASL3 repository to include the devel stream with the command asl-repo-switch -l devel.
  3. Update the apt cache with apt update
  4. Execute a standard upgrade with apt upgrade
  5. Follow any on-screen prompting such as the example above. In some cases, you may not receive prompting (e.g. on a Raspberry Pi) but that’s okay and those use cases need to be tested as well.
  6. Verify a working audio stream following all steps prompted in #4 including reboot(s) as necessary.
  7. Note the final version of your kernel with the command uname -r
  8. Change your repository back to beta or main as desired using asl-repo-switch -l main or asl-repo-switch -l beta. If you don’t know what it was before, use -l main.

Reporting Test Results

To report test results and keep this thread manageable, please report tests in the following format:

Platform: PLATFORM
Original Kernel: OUTPUT_OF_STEP_1
Final Kernel: OUTPUT_OF_STEP_7
Audio Problems: Y|N

For the above, please state if PLATFORM is a hardware “PC”, “thin client”, etc.(“PC”), a virtual machine (“VM”), or a Rasberry Pi (“Pi”).

If you have no audio problems please do not post anything further to this thread other than your testing report. Irrelevant or off-topic posts to this thread will be deleted to focus on the problem at hand.

If you do have audio problems, please report as part of your reply if the audio problems are the same as before (stuttering throughout the whole audio stream) or is something else/new. Please be as succinct as possible and an audio sample would be greatly appreciated.

(Note: Currently some of the material refers to 6.11 because the bookworm-backports kernel version changed while this fix was being developed. The final release of the package will uniformly reference 6.12).

PLATFORM: PC
Original Kernel: 6.1.0-30-amd64
Final Kernel: 6.12.9+bpo-amd64
Audio Problems: N

No audio issues with the previously pinned kernel. With the devel, its back for me.

PLATFORM: PC
Original Kernel: 6.1.0-28-amd64
Final Kernel: 6.12.9+bpo-amd64
Audio Problems: Y

Bus 001 Device 003: ID 0d8c:0012 C-Media Electronics, Inc. USB Audio Device
Bus 001 Device 002: ID 0d8c:0012 C-Media Electronics, Inc. USB Audio Device

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 94
model name : Intel(R) Core™ i5-6500T CPU @ 2.50GHz
stepping : 3
microcode : 0xf0
cpu MHz : 900.014
cache size : 6144 KB

Installed ASL packages :

Package Version
============================== ==============================
allmon3 1.4.2-1.deb12
asl3 3.6.3-3.deb
asl3-asterisk 2:20.11.0+asl3-3.2.0-2.deb12
asl3-asterisk-config 2:20.11.0+asl3-3.2.0-2.deb12
asl3-asterisk-modules 2:20.11.0+asl3-3.2.0-2.deb12
asl3-menu 1.11-1.deb12
asl3-update-nodelist 1.5.1-1.deb12
dahdi 1:3.1.0-2
dahdi-dkms 1:3.4.0-6+asl
dahdi-linux 1:3.4.0-6+asl

Reverted to 6.1.0-28 and no audio issues again.

And while the 6.12.9+bpo kernel was active, it’s the EXACT SAME noise/stutter as before? Did you try it with only one USB device connected?

yes same stutter. I have not tried with 1 interface.

I’m hearing an intermittent stutter now with longer tests on a 6.12.9 system. I guess more testing is required.

This is clearly not the fix. Locking this thread; no more testing needed.