Bug 216139 - No sound from built-in speakers HP Pavilion All-in-One Desktop 27-ca1xxx (ALC274)
Summary: No sound from built-in speakers HP Pavilion All-in-One Desktop 27-ca1xxx (ALC...
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Sound(ALSA) (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Jaroslav Kysela
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-15 20:06 UTC by Ernst Persson
Modified: 2024-08-15 09:45 UTC (History)
5 users (show)

See Also:
Kernel Version: 5.19-rc6
Subsystem:
Regression: No
Bisected commit-id:


Attachments
AlsaInfo.txt (79.71 KB, text/plain)
2022-11-06 01:23 UTC, Ernst Persson
Details
dump file (1.23 MB, text/plain)
2023-07-17 16:48 UTC, erasmocaponio
Details
Broken patch, doesn (6.12 KB, patch)
2023-07-25 19:32 UTC, Ernst Persson
Details | Diff
ACPI-Tables HP Pavilion 24-ca0400ng (472.32 KB, text/x-csrc)
2024-08-14 16:54 UTC, Martin
Details

Description Ernst Persson 2022-06-15 20:06:45 UTC
I have tried:

options snd-hda-intel model=alc285-hp-amp-init
options snd-hda-intel model=alc274-dell-aio

21: PCI 1f.3: 0403 Audio device                                 
  [Created at pci.386]
  Unique ID: nS1_.2CriaNVEdN5
  SysFS ID: /devices/pci0000:00/0000:00:1f.3
  SysFS BusID: 0000:00:1f.3
  Hardware Class: sound
  Device Name: "Onboard - Sound"
  Model: "Intel Audio device"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x7ad0 
  SubVendor: pci 0x103c "Hewlett-Packard Company"
  SubDevice: pci 0x89e9 
  Revision: 0x11
  Driver: "snd_hda_intel"
  Driver Modules: "snd_hda_intel"
  Memory Range: 0x6105238000-0x610523bfff (rw,non-prefetchable)
  Memory Range: 0x6105000000-0x61050fffff (rw,non-prefetchable)
  IRQ: 161 (1098 events)
  Module Alias: "pci:v00008086d00007AD0sv0000103Csd000089E9bc04sc03i80"
  Driver Info #0:
    Driver Status: snd_hda_intel is active
    Driver Activation Cmd: "modprobe snd_hda_intel"
  Driver Info #1:
    Driver Status: snd_sof_pci_intel_tgl is active
    Driver Activation Cmd: "modprobe snd_sof_pci_intel_tgl"
  Config Status: cfg=new, avail=yes, need=no, active=unknown


  <6>[    3.582352] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC274: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
  <6>[    3.582359] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
  <6>[    3.582362] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
  <6>[    3.582364] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
  <6>[    3.582366] snd_hda_codec_realtek hdaudioC0D0:    inputs:
  <6>[    3.582367] snd_hda_codec_realtek hdaudioC0D0:      Mic=0x19
  <6>[    3.582369] snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x12
Comment 2 Ernst Persson 2022-11-06 01:23:11 UTC
Created attachment 303138 [details]
AlsaInfo.txt

Perhaps this has even more contents.
Comment 3 Ernst Persson 2023-07-02 09:17:51 UTC
options snd-hda-intel model=alc295-hp-x360

didn't help either.
Comment 4 erasmocaponio 2023-07-15 19:05:24 UTC
Same problem on Manjaro with kernel 6.4.2-3.
Comment 5 Ernst Persson 2023-07-17 10:26:19 UTC
Hi! Is it possible for you to try Windows on the computer (dual-boot, etc..) ?

Then you could run something called RtHDDump.exe like referenced here: https://bugzilla.kernel.org/show_bug.cgi?id=207423

Where do you actually find RtHDDump.exe... ? I'm not sure yet!
Comment 6 erasmocaponio 2023-07-17 10:43:20 UTC
(In reply to Ernst Sjöstrand from comment #5)
> Hi! Is it possible for you to try Windows on the computer (dual-boot, etc..)
> ?
> 
> Then you could run something called RtHDDump.exe like referenced here:
> https://bugzilla.kernel.org/show_bug.cgi?id=207423
> 
> Where do you actually find RtHDDump.exe... ? I'm not sure yet!

Hi!, yes I have dual boot with Win 11 (the speakers work perfectly in windows).
In Manjaro, I have audio from headphones, the camera and the microphone (built in the monitor) work perfectly. The only thing that does not work are the Bose speakers. So I am not going to risk to make the thing worse by applying some "not official" patch. By the way, I've contacted Hp support some months ago without receiving any answer from them.
Comment 7 Ernst Persson 2023-07-17 10:50:22 UTC
The point of running RtHDDump.exe under Windows is just to let it read out what all the HDA registers are programmed to by the Windows driver.

You can sen an example in "Output from RtHDDump.exe" in https://bugzilla.kernel.org/show_bug.cgi?id=207423

That will be needed to update the Linux kernel to apply the same configuration.

Oh, you have working headphones? I don't even have that, last time I tried...
Comment 8 erasmocaponio 2023-07-17 10:56:38 UTC
(In reply to Ernst Sjöstrand from comment #7)
> The point of running RtHDDump.exe under Windows is just to let it read out
> what all the HDA registers are programmed to by the Windows driver.
> 
> You can sen an example in "Output from RtHDDump.exe" in
> https://bugzilla.kernel.org/show_bug.cgi?id=207423
> 
> That will be needed to update the Linux kernel to apply the same
> configuration.
> 
> Oh, you have working headphones? I don't even have that, last time I tried...

Ok I will try later, and post the output here
Comment 9 erasmocaponio 2023-07-17 11:00:45 UTC
(In reply to erasmocaponio from comment #8)
> (In reply to Ernst Sjöstrand from comment #7)
> > The point of running RtHDDump.exe under Windows is just to let it read out
> > what all the HDA registers are programmed to by the Windows driver.
> > 
> > You can sen an example in "Output from RtHDDump.exe" in
> > https://bugzilla.kernel.org/show_bug.cgi?id=207423
> > 
> > That will be needed to update the Linux kernel to apply the same
> > configuration.
> > 
> > Oh, you have working headphones? I don't even have that, last time I
> tried...
> 
> Ok I will try later, and post the output here

ah sorry I forgot to mention that I got audio from headphones after replacing pulseaudio with pipewire (I am almost sure... but it might have been the upgrade from kernel 6.3 to 6.4...)
Comment 10 erasmocaponio 2023-07-17 16:48:58 UTC
Created attachment 304647 [details]
dump file
Comment 11 erasmocaponio 2023-07-17 16:50:31 UTC
(In reply to Ernst Sjöstrand from comment #5)
> Hi! Is it possible for you to try Windows on the computer (dual-boot, etc..)
> ?
> 
> Then you could run something called RtHDDump.exe like referenced here:
> https://bugzilla.kernel.org/show_bug.cgi?id=207423
> 
> Where do you actually find RtHDDump.exe... ? I'm not sure yet!


I've found it here https://asus-linux.org/blog/sound-2021-01-11/
Comment 12 Ernst Persson 2023-07-18 17:46:05 UTC
No sound from headphones here with 6.4.3 kernel + vanilla Ubuntu 22.04 with Pulseaudio.
Comment 13 Ernst Persson 2023-07-25 18:34:04 UTC
The basic pin-config looks perfect...

Wid=12  Codec=90A60130  Drv=90A60130  Loc=00000000
Wid=13  Codec=40000000  Drv=40000000  Loc=00000000
Wid=14  Codec=411111F0  Drv=411111F0  Loc=00000000
Wid=15  Codec=411111F0  Drv=411111F0  Loc=00000000
Wid=16  Codec=411111F0  Drv=411111F0  Loc=00000000
Wid=17  Codec=90170110  Drv=90170110  Loc=00000000
Wid=18  Codec=411111F0  Drv=81D111F0  Loc=00000000
Wid=19  Codec=03A11040  Drv=03A11040  Loc=00000000
Wid=1A  Codec=411111F0  Drv=411111F0  Loc=00000000
Wid=1B  Codec=411111F0  Drv=411111F0  Loc=00000000
Wid=1D  Codec=40600001  Drv=40600001  Loc=00000000
Wid=1E  Codec=411111F0  Drv=411111F0  Loc=00000000
Wid=1F  Codec=411111F0  Drv=411111F0  Loc=00000000
Wid=21  Codec=03211020  Drv=03211020  Loc=00000000

is the same as in alsa-info.
Comment 14 Ernst Persson 2023-07-25 19:24:03 UTC
Ah no actually Wid=18 differs.
Comment 15 Ernst Persson 2023-07-25 19:32:29 UTC
Created attachment 304697 [details]
Broken patch, doesn
Comment 16 Ernst Persson 2023-07-25 19:34:11 UTC
Oops hit enter too soon.

Anyway, the patch doesn't fix anything at all. :-( Just put some things I found in the RtHDDump.txt in a patch for reference...
Comment 17 erasmocaponio 2024-07-01 08:38:50 UTC
Are there any updates regarding this issue?

I’m still experiencing no sound from the speakers on Manjaro with kernel 6.9.5-1. The sound from headphones works, but only if I first boot into Windows 11. However, this only lasts for one session.
Comment 18 Ernst Persson 2024-07-14 19:35:39 UTC
Nope, no luck here so far either.
Comment 19 Martin 2024-08-13 17:40:02 UTC
Hello,
I have a customer who is running Fedora 40 on HP Pavilion 24-ca0400ng and experiences the same problem.

Is there anything we can do to assist you in finding a solution?
Comment 20 Ernst Persson 2024-08-14 12:37:16 UTC
Sorry, I'm just a random user who has a bit of kernel/C experience.

My theory is that there is some kind of AMP that needs to be powered on?!

Maybe something like https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git/commit/?h=for-linus&id=03c5c350e38d9346b69357d0e52c3c40495c14a0

??

I wonder if there is anything interesting in ACPI tables...
Comment 21 Ernst Persson 2024-08-14 12:57:56 UTC
Could someone run

sudo cat /sys/firmware/acpi/tables/DSDT > dsdt.dat
iasl -d dsdt.dat

and attatch the dsdt.dsl?
Comment 22 Martin 2024-08-14 13:03:29 UTC
I will upload the tables, later tonight when I have access to the PC again.
Comment 23 Martin 2024-08-14 16:54:10 UTC
Created attachment 306723 [details]
ACPI-Tables HP Pavilion 24-ca0400ng
Comment 24 Vitaly 2024-08-14 17:57:03 UTC
Hello. I have HP Pavilion x360 with ALC295. On Linux (any distro) sound is very flat and quiet. Something like only 2 top speakers work. On Windows sound is much louder and better. As I checked HP x360 (Spectre/Pavilion) models have 2 amplifiers speakers on the bottom too. Is it possible to make it working? I tried to re-pin in hdajackretask but it didn't work.
Comment 25 Ernst Persson 2024-08-14 18:27:37 UTC
Vitaly: you must file another bug, these things are extremely specific to the hardware. You have another sound chip for example.
Comment 26 Vitaly 2024-08-14 19:40:06 UTC
(In reply to Ernst Persson from comment #25)
> Vitaly: you must file another bug, these things are extremely specific to
> the hardware. You have another sound chip for example.

I created report but no response for a long time so I decided to ask in similar (more active) threads
Comment 27 Martin 2024-08-15 09:45:55 UTC
@Ernst
Is the file I uploaded of value?

Note You need to log in before you can comment on or make changes to this bug.