Score:2

new 22.04 install cannot play sound on speakers

sa flag
con

I have a fresh install of Ubuntu 22.04. The Bang & Olufsen speakers aren't playing sound.

I've gone through https://help.ubuntu.com/stable/ubuntu-help/sound-nosound.html.en but nothing there helps.

I can get sound on headphones, but when I pull the headphones out, the sound is gone, even though the volume is set to max.

Speaker - sof-hda-dsp shows in the settings as being recognized, but it's not being used. When I pull the headphones out, the Output device switches.

sudo lspci -v gives:

00:1f.3 Multimedia audio controller: Intel Corporation Device 51ca (rev 01)
    Subsystem: Hewlett-Packard Company Device 8bdd
    Flags: bus master, fast devsel, latency 32, IRQ 204, IOMMU group 15
    Memory at 601d1d0000 (64-bit, non-prefetchable) [size=16K]
    Memory at 601d000000 (64-bit, non-prefetchable) [size=1M]
    Capabilities: [50] Power Management version 3
    Capabilities: [80] Vendor Specific Information: Len=14 <?>
    Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Kernel driver in use: sof-audio-pci-intel-tgl
    Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl

Similarly, I have an older laptop with a nearly identical setup, that actually works:

lspci -v | fgrep -m1 -A19 '00:1f.3'

gives

   00:1f.3 Multimedia audio controller: Intel Corporation Comet Lake PCH-LP cAVS
    Subsystem: Hewlett-Packard Company Comet Lake PCH-LP cAVS
    Flags: bus master, fast devsel, latency 32, IRQ 154
    Memory at b431c000 (64-bit, non-prefetchable) [size=16K]
    Memory at b4000000 (64-bit, non-prefetchable) [size=1M]
    Capabilities: [50] Power Management version 3
    Capabilities: [80] Vendor Specific Information: Len=14 <?>
    Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel, snd_sof_pci_intel_cnl

Perhaps switching the kernel driver in use is the key? How can I do that, if it will help?

Sound card not detecting and the command sudo apt-get install build-essential linux-headers-uname -r alsa-base alsa-firmware-loaders alsa-oss alsa-source alsa-tools alsa-tools-gui alsa-utils alsamixergui didn't fix the problem.

How to install Bang and Olufsen Audio drivers for HP laptop? failed to solve my problem.

No sound on headphones with sof-hda-dsp audio on ubuntu (and variants) also failed.

Audio output doesn't switch when headphones connect or disconnect didn't help either.

Ubuntu 20.04 - No sound also failed

cat /proc/asound/cards produces the following output:

 0 [sofhdadsp      ]: sof-hda-dsp - sof-hda-dsp
                      HP-HPEnvyLaptop17_cw0xxx-Type1ProductConfigId-8BDD



sudo gedit /etc/modprobe.d/alsa-base.conf

and add

options snd-hda-intel model=generic

as suggested Ubuntu 20.04 - No sound also failed.

using sof-bin as suggested by Sound card not detected - Ubuntu 20.04 - sof-audio-pci also failed.

I'm also getting

[    0.475866] pci 0000:00:07.0: DPC: RP PIO log size 0 is invalid
[    0.476486] pci 0000:00:07.2: DPC: RP PIO log size 0 is invalid

during the boot process. Is this connected to why my speakers don't work?

I have done the standard sudo apt update && sudo apt upgrade to no avail, as well.

when I grep for audio within dmesg:

[    0.116257] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[    7.147645] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[    7.147677] sof-audio-pci-intel-tgl 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
[    7.147696] sof-audio-pci-intel-tgl 0000:00:1f.3: enabling device (0000 -> 0002)
[    7.148080] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[    8.341717] sof-audio-pci-intel-tgl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    8.407947] sof-audio-pci-intel-tgl 0000:00:1f.3: use msi interrupt mode
[    8.441644] sof-audio-pci-intel-tgl 0000:00:1f.3: hda codecs found, mask 5
[    8.441649] sof-audio-pci-intel-tgl 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
[    8.441653] sof-audio-pci-intel-tgl 0000:00:1f.3: DMICs detected in NHLT tables: 2
[    8.442691] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[    8.442695] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:21:0
[    8.442697] sof-audio-pci-intel-tgl 0000:00:1f.3: FW ABI is more recent than kernel
[    8.442701] sof-audio-pci-intel-tgl 0000:00:1f.3: unknown sof_ext_man header type 3 size 0x30
[    8.538642] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[    8.538647] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:21:0
[    8.538649] sof-audio-pci-intel-tgl 0000:00:1f.3: FW ABI is more recent than kernel
[    8.555720] sof-audio-pci-intel-tgl 0000:00:1f.3: Topology: ABI 3:22:1 Kernel ABI 3:21:0
[    8.555726] sof-audio-pci-intel-tgl 0000:00:1f.3: warn: topology ABI is more recent than kernel
[    8.585014] snd_hda_codec_realtek ehdaudio0D0: autoconfig for ALC245: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
[    8.585021] snd_hda_codec_realtek ehdaudio0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    8.585023] snd_hda_codec_realtek ehdaudio0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    8.585025] snd_hda_codec_realtek ehdaudio0D0:    mono: mono_out=0x0
[    8.585026] snd_hda_codec_realtek ehdaudio0D0:    inputs:
[    8.585028] snd_hda_codec_realtek ehdaudio0D0:      Mic=0x19
[    8.634984] snd_hda_codec_realtek ehdaudio0D0: ASoC: sink widget AIF1TX overwritten
[    8.634992] snd_hda_codec_realtek ehdaudio0D0: ASoC: source widget AIF1RX overwritten

I have also tried adding snd-intel-dspcfg.dsp_driver=1 to /boot/grub/grub.cfg but that changed nothing https://bbs.archlinux.org/viewtopic.php?id=275737

cat /proc/asound/cards gives the output:

 0 [sofhdadsp      ]: sof-hda-dsp - sof-hda-dsp
                      HP-HPEnvyLaptop17_cw0xxx-Type1ProductConfigId-8BDD

sudo aplay -l

gives the output:

card 0: sofhdadsp [sof-hda-dsp], device 0: HDA Analog (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 3: HDMI1 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 4: HDMI2 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 5: HDMI3 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

How can I get the sound working on my speakers?

Score:1
tk flag

It turns out that this a well-known problem with no easy fix, yet. See here for details. The laptop in question in that post is a HP ENVY x360 15-ey0xxx, which also uses Bang & Olufsen speakers. This Q&A post is quite active, with the latest reply as of this writing dated yesterday (July 25th, 2023). I did some digging through it, and it seems that you have two options:

  1. Update your Linux kernel version to 6.3.2 as indicated by this reply. To do so, you can follow the instructions here. However, as explained in these answers, it is not recommended. Therefore, you may want to install a non-LTS version of Ubuntu instead, such as 23.04 or 23.10 when it comes out.
  2. As indicated in this reply, you can install a DKMS module that fixes the problem by following the instructions here. However, for this option, it is extremely important to note the following warning under the reply:
Thanks for the patch, but note that this change can't be taken.
It's dangerous and may burn speakers on other machines that don't use
this configuration.

For now, those info relies on the BIOS ACPI setup with _DSD entry, and
vendors should fix it with BIOS updates.

There have been already discussions how to deal with vendors who don't
cooperate well.

I think both of these options are not ideal, and I would personally wait until this problem is fixed in a future release of Ubuntu.

con avatar
sa flag
con
thnx, I'll check out 23.04
mhdadk avatar
tk flag
@con actually, according to [this post](https://discourse.ubuntu.com/t/lunar-lobster-release-notes/31910), Ubuntu 23.04 comes with Linux kernel version 6.2, which is older than the 6.3.2 that the reply mentions. Therefore, there is no guarantee that installing Ubuntu 23.04 will solve the problem.
con avatar
sa flag
con
indeed, the upgrade to 23.04 didn't solve the problem, but because 23.10 is supposed to use kernel 6.5, which is > 6.3.2, then the problem may be solved in October. I'll wait until then to fix the problem, and just stick to headphones
mhdadk avatar
tk flag
@con could you update us when you install Ubuntu 23.10 and let us know if it solves the problem?
con avatar
sa flag
con
I will update you when I install 23.10, whenever it becomes available
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.