Patch sent: 
https://lists.ubuntu.com/archives/kernel-team/2022-March/129063.html


** Description changed:

+ [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)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-signed-hwe-5.13 in Ubuntu.
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:
  In Progress
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


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to