linux icon indicating copy to clipboard operation
linux copied to clipboard

HP Envy x360 — Internal speakers not working (Realtek ALC245, SOF, Alder Lake)

Open mirronake opened this issue 9 months ago • 4 comments

System Info

  • Laptop: HP Envy x360 15-ew0xxx
  • Audio Codec: Realtek ALC245 (10ec:0245)
  • Audio Driver: sof-audio-pci-intel-tgl
  • Firmware: SOF (v2025.01)
  • Kernel: 6.8.0-55-generic
  • OS: Linux Mint (Ubuntu base)
  • Working: Headphones
  • Not Working: Internal speakers (no analog-output-speaker port)

Problem

Only headphones work. Internal speakers are completely silent. The speaker path does not exist. 'speaker_outs=0' appears in dmesg. No analog speaker port is exposed by UCM or topology.

What was tried

  • Latest SOF firmware installed manually (2025.01)
  • Reinstalled all audio stack (PipeWire, PulseAudio, ALSA, UCM)
  • Manual amixer activation of 'Speaker' switch and volume
  • Fallback to legacy HDA driver (dsp_driver=2)
  • speaker-test and aplay on hw:0,0 and hw:0,31
  • Works perfectly in Windows

Expectation

Expose and activate internal speakers under SOF with ALC245.

ALSA info: http://alsa-project.org/db/?f=08cd824e0fd6b77cff4596961af44fd86388fd08

dmesg.txt lspci.txt modules.txt pactl-sinks.txt pcm.txt udev.txt amixer.txt aplay-l.txt cards.txt

mirronake avatar Mar 24 '25 03:03 mirronake

@mirronake, the HDA legacy driver can be forced with dsp_driver=1, can you confirm that the issue can be reproduced with this stack?

ujfalusi avatar Mar 25 '25 08:03 ujfalusi

Interesting:

Codec: Realtek ALC245
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x10ec0245
Subsystem Id: 0x103c8a29

Looks similar mixup as #5370 , alsos with ALC245+CSC3551

sound/pci/hda/cs35l41_hda_property.c:   { "103C8A29", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4100, 24 },
sound/pci/hda/cs35l41_hda_property.c:   { "CSC3551", "103C8A29", generic_dsd_config },
sound/pci/hda/patch_realtek.c:  SND_PCI_QUIRK(0x103c, 0x8a29, "HP Envy 15", ALC287_FIXUP_CS35L41_I2C_2),

@KailangYang, @stefdb Can you take a look?

ujfalusi avatar Mar 25 '25 09:03 ujfalusi

Codec site looks no issues.

KailangYang avatar Mar 26 '25 07:03 KailangYang

@mirronake, can you upgrade to a newer kernel? 6.8 is really old, at minimum to 6.9 where https://github.com/thesofproject/linux/commit/33e5e648e6311135e4ada01bcfb6ff54be98926d ("ALSA: hda: cs35l41: Support additional HP Envy Models") https://github.com/thesofproject/linux/commit/aa8e3ef4fe5332c2ce33507e874b20d9c0077c21 ("ALSA: hda/realtek: Add quirks for various HP ENVY models")

appeared.

ujfalusi avatar Mar 26 '25 11:03 ujfalusi