Comment 46 for bug 1966066

Revision history for this message
Mikołaj Neronowicz (mikosenigma) wrote : Re: [Bug 1966066] Re: audio from external sound card is distorted

I also think this problem is very serious. Quite frustrating. I did not
suspect that I would have such problems on the LTS version where everything
should be stable. This is the third kernel update which has not fixed this
problem. I keep going back to kernel 5.13.0-35.

Operating System: Feren OS 2022.04
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Kernel Version: 5.13.0-35-generic (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-6820HQ CPU @ 2.70GHz
Memory: 31.0 GiB of RAM
Graphics Processor: Quadro M2000M/PCIe/SSE2

śr., 27 kwi 2022 o 00:01 Richard Vincent <email address hidden>
napisał(a):

> This bug is affecting me as well. Considering I run ubuntu studio, and
> the reason I run it is for audio, this is definitely more than a medium
> priority bug for me. This is happening on my Scarlett 2i2 audio
> interface.
>
> I am running kernel:
>
> 5.13.0-40-lowlatency
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1966327).
> https://bugs.launchpad.net/bugs/1966066
>
> Title:
> audio from external sound card is distorted
>
> Status in linux package in Ubuntu:
> Fix Committed
> Status in linux-signed-hwe-5.13 package in Ubuntu:
> Invalid
> Status in linux source package in Impish:
> Fix Committed
> Status in linux-signed-hwe-5.13 source package in Impish:
> Invalid
> Status in linux source package in Jammy:
> Fix Committed
> Status in linux-signed-hwe-5.13 source package in Jammy:
> Invalid
>
> Bug description:
> [Impact]
> Commit d215f63d49da ("ALSA: usb-audio: Check available frames for the
> next packet size") landed in 5.13.0-35 introduced regression to USB
> audio device.
>
> It's because this patch introduced the available frame size check, but
> the conversion forgot to initialize the temporary variable properly.
>
> A workaround is to modify /etc/pulse/daemon.conf, set the
> default-sample-rate to 48000, uncomment it by removing the semicolon
> at the beginning of the line. And restart pulseaudio with:
> systemctl --user restart pulseaudio.service
>
> [Fix]
> * 23939115 ALSA: usb-audio: Fix packet size calculation regression
> This patch can be cherry-picked into Impish kernel, and it's already in
> the master-next branch of Jammy tree.
>
> [Test]
> Test kernels built with 5.13.0-37 + this patch, can be found in:
> * Focal-5.13 -
> https://people.canonical.com/~phlin/kernel/lp-1966066-usb-audio/focal/
> * Impish-5.13 -
> https://people.canonical.com/~phlin/kernel/lp-1966066-usb-audio/impish/
>
> Both kernels were tested by affected users and they're working as
> expected.
>
> [Where problems could occur]
> If this patch is incorrect, it might affect USB audio devices.
>
>
> [Original Bug Report]
> The sound card is a Focusrite Scarlett 2i2.
>
> The sound is distorted everywhere.
>
> Sound via HDMI works.
>
> Seen others having the same problem:
> (Edit because of previously wrong link here)
> https://askubuntu.com/questions/1398614/upgrading-to-5-13-0-37-generic-breaks-audio-with-external-audio-card
>
> ubuntu release: Ubuntu 20.04.4 LTS
> package name involved in bug: linux-image-5.13.0-37-generic
>
> ProblemType: Bug
> DistroRelease: Ubuntu 20.04
> Package: linux-image-5.13.0-37-generic 5.13.0-37.42~20.04.1
> ProcVersionSignature: Ubuntu 5.13.0-35.40~20.04.1-generic 5.13.19
> Uname: Linux 5.13.0-35-generic x86_64
> NonfreeKernelModules: nvidia_modeset nvidia
> ApportVersion: 2.20.11-0ubuntu27.21
> Architecture: amd64
> CasperMD5CheckResult: skip
> CurrentDesktop: ubuntu:GNOME
> Date: Wed Mar 23 12:56:02 2022
> InstallationDate: Installed on 2020-12-18 (459 days ago)
> InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64
> (20200731)
> SourcePackage: linux-signed-hwe-5.13
> UpgradeStatus: No upgrade log present (probably fresh install)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1966066/+subscriptions
>
>