← Back to team overview

debcrafters-packages team mailing list archive

[Bug 2120902] [NEW] SOF audio driver (sofhdadspp) crashes with "Broken pipe" when running Android Emulator under PipeWire on Lenovo XiaoXinPro-16-IMH9

 

Public bug reported:

[Summary]
On my Lenovo XiaoXinPro-16-IMH9 running Ubuntu 24.04 LTS, the entire audio system crashes when I start the Android Emulator. This happens with the default PipeWire audio server. The system audio goes completely silent.

[Steps to Reproduce]
1. Use a fresh installation of Ubuntu with the default PipeWire audio server.
2. Install Android Studio and set up an Android Virtual Device (AVD).
3. Start the AVD from Android Studio or the command line.

[Expected Result]
The Android Emulator should start and have audio, and the system audio should continue to work normally.

[Actual Result]
As soon as the emulator starts, the entire system audio crashes. The key error message in the journalctl log is a repeating line:
"spa.alsa: hw:sofhdadspp: (...) snd_pcm_avail after recover: Broken pipe"

[Workaround / Additional Information]
The issue is 100% reproducible. I have found a workaround that completely solves the problem. By forcing the kernel to use the legacy HDA driver instead of the SOF driver, PipeWire works perfectly with the emulator.

This is achieved by creating a file `/etc/modprobe.d/alsa-fix.conf` with the following content:
"options snd_intel_dspcfg dsp_driver=1"
After running `sudo update-initramfs -u` and rebooting, the problem is gone.

This strongly suggests a stability bug in the Sound Open Firmware (SOF)
driver for this specific hardware when used by PipeWire's default low-
latency configuration. Switching back to PulseAudio also works around
the issue, likely due to its different latency model.

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: alsa-base 1.0.25+dfsg-0ubuntu7
ProcVersionSignature: Ubuntu 6.14.0-24.24~24.04.3-generic 6.14.6
Uname: Linux 6.14.0-24-generic x86_64
ApportVersion: 2.28.1-0ubuntu3.8
Architecture: amd64
AudioDevicesInUse:
 USER        PID ACCESS COMMAND
 /dev/snd/controlC0:  leonone   12536 F.... wireplumber
 /dev/snd/seq:        leonone   12530 F.... pipewire
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Tue Aug 19 12:32:57 2025
InstallationDate: Installed on 2024-09-25 (328 days ago)
InstallationMedia: Ubuntu 24.04.1 LTS "Noble Numbat" - Release amd64 (20240827.1)
MachineType: LENOVO 83D4
PackageArchitecture: all
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
SourcePackage: alsa-driver
Symptom: audio
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 03/07/2024
dmi.bios.release: 1.63
dmi.bios.vendor: LENOVO
dmi.bios.version: MECN63WW
dmi.board.asset.tag: NO Asset Tag
dmi.board.name: LNVNB161216
dmi.board.vendor: LENOVO
dmi.board.version: SDK0T76479 WIN
dmi.chassis.asset.tag: NO Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: XiaoXinPro 16 IMH9
dmi.ec.firmware.release: 1.63
dmi.modalias: dmi:bvnLENOVO:bvrMECN63WW:bd03/07/2024:br1.63:efr1.63:svnLENOVO:pn83D4:pvrXiaoXinPro16IMH9:rvnLENOVO:rnLNVNB161216:rvrSDK0T76479WIN:cvnLENOVO:ct10:cvrXiaoXinPro16IMH9:skuLENOVO_MT_83D4_BU_idea_FM_XiaoXinPro16IMH9:
dmi.product.family: XiaoXinPro 16 IMH9
dmi.product.name: 83D4
dmi.product.sku: LENOVO_MT_83D4_BU_idea_FM_XiaoXinPro 16 IMH9
dmi.product.version: XiaoXinPro 16 IMH9
dmi.sys.vendor: LENOVO

** Affects: alsa-driver (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug noble wayland-session

-- 
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to alsa-driver in Ubuntu.
https://bugs.launchpad.net/bugs/2120902

Title:
  SOF audio driver (sofhdadspp) crashes with "Broken pipe" when running
  Android Emulator under PipeWire on Lenovo XiaoXinPro-16-IMH9

Status in alsa-driver package in Ubuntu:
  New

Bug description:
  [Summary]
  On my Lenovo XiaoXinPro-16-IMH9 running Ubuntu 24.04 LTS, the entire audio system crashes when I start the Android Emulator. This happens with the default PipeWire audio server. The system audio goes completely silent.

  [Steps to Reproduce]
  1. Use a fresh installation of Ubuntu with the default PipeWire audio server.
  2. Install Android Studio and set up an Android Virtual Device (AVD).
  3. Start the AVD from Android Studio or the command line.

  [Expected Result]
  The Android Emulator should start and have audio, and the system audio should continue to work normally.

  [Actual Result]
  As soon as the emulator starts, the entire system audio crashes. The key error message in the journalctl log is a repeating line:
  "spa.alsa: hw:sofhdadspp: (...) snd_pcm_avail after recover: Broken pipe"

  [Workaround / Additional Information]
  The issue is 100% reproducible. I have found a workaround that completely solves the problem. By forcing the kernel to use the legacy HDA driver instead of the SOF driver, PipeWire works perfectly with the emulator.

  This is achieved by creating a file `/etc/modprobe.d/alsa-fix.conf` with the following content:
  "options snd_intel_dspcfg dsp_driver=1"
  After running `sudo update-initramfs -u` and rebooting, the problem is gone.

  This strongly suggests a stability bug in the Sound Open Firmware
  (SOF) driver for this specific hardware when used by PipeWire's
  default low-latency configuration. Switching back to PulseAudio also
  works around the issue, likely due to its different latency model.

  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: alsa-base 1.0.25+dfsg-0ubuntu7
  ProcVersionSignature: Ubuntu 6.14.0-24.24~24.04.3-generic 6.14.6
  Uname: Linux 6.14.0-24-generic x86_64
  ApportVersion: 2.28.1-0ubuntu3.8
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  leonone   12536 F.... wireplumber
   /dev/snd/seq:        leonone   12530 F.... pipewire
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
  Date: Tue Aug 19 12:32:57 2025
  InstallationDate: Installed on 2024-09-25 (328 days ago)
  InstallationMedia: Ubuntu 24.04.1 LTS "Noble Numbat" - Release amd64 (20240827.1)
  MachineType: LENOVO 83D4
  PackageArchitecture: all
  PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
  SourcePackage: alsa-driver
  Symptom: audio
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 03/07/2024
  dmi.bios.release: 1.63
  dmi.bios.vendor: LENOVO
  dmi.bios.version: MECN63WW
  dmi.board.asset.tag: NO Asset Tag
  dmi.board.name: LNVNB161216
  dmi.board.vendor: LENOVO
  dmi.board.version: SDK0T76479 WIN
  dmi.chassis.asset.tag: NO Asset Tag
  dmi.chassis.type: 10
  dmi.chassis.vendor: LENOVO
  dmi.chassis.version: XiaoXinPro 16 IMH9
  dmi.ec.firmware.release: 1.63
  dmi.modalias: dmi:bvnLENOVO:bvrMECN63WW:bd03/07/2024:br1.63:efr1.63:svnLENOVO:pn83D4:pvrXiaoXinPro16IMH9:rvnLENOVO:rnLNVNB161216:rvrSDK0T76479WIN:cvnLENOVO:ct10:cvrXiaoXinPro16IMH9:skuLENOVO_MT_83D4_BU_idea_FM_XiaoXinPro16IMH9:
  dmi.product.family: XiaoXinPro 16 IMH9
  dmi.product.name: 83D4
  dmi.product.sku: LENOVO_MT_83D4_BU_idea_FM_XiaoXinPro 16 IMH9
  dmi.product.version: XiaoXinPro 16 IMH9
  dmi.sys.vendor: LENOVO

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/2120902/+subscriptions