codepayne / linux-sound-huawei

linux kernel for Huawei matebook AMD sound support
Other
86 stars 3 forks source link

No audio input/output on archlinux 6.8.5 (matebook 14 2020 KLVL-WXX9 (M1010)) #35

Closed antoineok closed 1 month ago

antoineok commented 2 months ago

Hello, i have some audio problems on my archlinux (kernel: 6.8.5-arch1-1). I have a matebook 14 2020 KLVL-WXX9 (M1010)

The only way to have audio in is wireless earbuds and the only way to have audio out is wireless earbuds or HDMI. Here are the outputs of the following commands: inxi -Axxx:

Audio:
  Device-1: AMD Renoir Radeon High Definition Audio vendor: Huaqin
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 04:00.1 chip-ID: 1002:1637 class-ID: 0403
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Huaqin driver: N/A
    pcie: speed: 16 GT/s lanes: 16 bus-ID: 04:00.5 chip-ID: 1022:15e2
    class-ID: 0480
  API: ALSA v: k6.8.5-arch1-1 status: kernel-api
  Server-1: PipeWire v: 1.0.4 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin

aplay -l:

**** Liste des périphériques matériels PLAYBACK ****
carte 0 : Generic [HD-Audio Generic], périphérique 3 : HDMI 0 [HDMI 0]
  Sous-périphériques : 1/1
  Sous-périphérique #0 : subdevice #0
carte 0 : Generic [HD-Audio Generic], périphérique 7 : HDMI 1 [HDMI 1]
  Sous-périphériques : 1/1
  Sous-périphérique #0 : subdevice #0

cat /proc/asound/cards:

 0 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xd03c0000 irq 76
antoineok commented 2 months ago

here is my dmesg log

jacekjarosz55 commented 2 months ago

Having the same issue on a KLVL-WXXW M1010

LeBlumen commented 2 months ago

The only thing that helped me (model HVY-WXX9) was to downgrade the kernel to 6.8.4. At first I thought it happened because of Wireplumber update to 5.0/5.1 but I gave up after digging for some time. Changing confs and installing previous versions didn't work in my case- I was constantly seeing Dummy Output. The problem seems to be present in the latest kernels - 6.8.5, 6.8.6. and 6.8.7, so there can be something wrong between 6.8.4 and 6.8.5.

jacekjarosz55 commented 2 months ago

The problem seems to be present in the latest kernels - 6.8.5, 6.8.6. and 6.8.7, so there can be something wrong between 6.8.4 and 6.8.5.

Found these two diffs online: https://fossies.org/diffs/linux/6.8.4_vs_6.8.5/sound/soc/sof/amd/acp.c-diff.html https://fossies.org/diffs/linux/6.8.4_vs_6.8.5/sound/soc/amd/acp/acp-pci.c-diff.html

i'm kind of a noob at comparing repos so i just found this online one

jacekjarosz55 commented 2 months ago

The only thing that helped me (model HVY-WXX9) was to downgrade the kernel to 6.8.4.

Can confirm the audio works for me on 6.8.4 (KLVL-WXXW)

mathsan23 commented 2 months ago

Hey @jacekjarosz55 I have the same model as you (KLVL-WXXW). I compiled the main kernel 6.8.4 without any patches applied to but I could not get any sound in the laptop. There is some configuration that I am missing? Can you tell me what you did to make the audio work? I am on the newest Ubuntu 24.04

antoineok commented 2 months ago

@mathsan23 The 6.8.4 kernel works. At least on arch. I installed it (not compiled, installed, maybe that's what you did wrong), rebooted and i had the speaker in the audio settings

LeBlumen commented 2 months ago

@mathsan23 I tested the newest version of Ubuntu with 6.8.0 kernel and the sound does not work there too, I don't know why. I've also tried different versions of it- Xubuntu and Kubuntu. It should be clear that the problem shall be the same on both of them but somehow I hear a rustling noise on Kubuntu (and ofc no sound on Xubuntu). Right now I'm on Endeavour OS (kernel 6.8.4, Arch-based distro) but I cannot update the system. I'm quite sure that other Arch derivates should be fine with this version of the kernel but when it comes to the other distros- I have no idea.

What's more, the "no sound problem" also appears on 4.17 version of Wireplumber on Ubuntu, so it seems that it's all about the kernel. At least that's what I think - I've spent some time with Pipewire/Wireplumber configurations and I was not able to get the sound work. Just for your information- the driver does not work with PulseAudio.

Maybe @codepayne will have some time to check this problem soon.

jacekjarosz55 commented 2 months ago

Hey @jacekjarosz55 I have the same model as you (KLVL-WXXW). I compiled the main kernel 6.8.4 without any patches applied to but I could not get any sound in the laptop. There is some configuration that I am missing? Can you tell me what you did to make the audio work? I am on the newest Ubuntu 24.04

Are you sure you enabled the necessary drivers when compiling the kernel? here is the config file taken from arch linux (config-arch.txt)

jacekjarosz55 commented 2 months ago

I have reported the issue on the linux kernel's bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=218780, and it's being looked into there

MangoTCF commented 2 months ago

For me it didn't work all the way down till 6.8.1-arch1-1

codepayne commented 1 month ago

@jacekjarosz55 Thanks for raising the ticket. Problem was fixed by AMD dev.