thesofproject / linux

Linux kernel source tree
Other
90 stars 129 forks source link

[BUG] No sound on AMD Ryzen 5 4600H + ES8336 codec #3249

Open IlyaSkriblovsky opened 2 years ago

IlyaSkriblovsky commented 2 years ago

I have Matebook D 16 AMD laptop with Ryzen 5 4600H and ES8336 I2S codec chip.

Speakers, headphones and microphone are not recognized at all. Only the "Dummy output" is visible in GUI sound settings and only HDMI outputs are visible in aplay -l.

I've tried to build the kernel from topic/sof-dev (on 2021-10-28) with #3107 on top, but it didn't help. Attached logs are collected with that kernel build and with dyndbg=+p enabled for most snd modules.

Thanks for attention!

alsa-info: http://alsa-project.org/db/?f=30a1156b94b7749f02229ee19487dc36adb9d506 dmidecode.txt dmesg.txt lsmod.txt aplay-l.txt arecord-l.txt

plbossart commented 2 years ago

@ajitkupandey this is for you guys. I have enough on my plate with the same codec for Intel platforms :-)

dantefff commented 2 years ago

Hi! I'm in the same situation. I have a Matebook D 14 with a ryzen 4800H. I have a dual boot config so I can help with any tests you need.

serjsaraev commented 2 years ago

Same problem with Huawei Matebook d16

bhiregoudar commented 2 years ago

AMD platforms doesn't have a support for ES8336 codec on Linux OS environment. There is no machine driver support available for this codec. As for as I Know, only windows OS support is available for ES8336 codec.

IlyaSkriblovsky commented 2 years ago

@bhiregoudar Yep, and this is the issue. Hoping someone familiar with kernel sound architecture will save us by writing machine driver :(

I've tried to figure out how to do it myself, but failed at the moment (I have some linux driver experience, but I'm completely new to the sound subsystem).

ES8336 seems to be working on LInux with @plbossart's #3107 PR and other patches on Intel platform in #3248. That makes me hoping that AMD support is not so hard problem. Hope AMD or Huawei folks, or maybe some smart enthusiast will eventually get this working...

tomty89 commented 2 years ago

I'm not sure if this is related to "AMD or not". #3107 (plus #2962 and #3212) doesn't really give me sound either when on my Celeron N5100 laptop (with the properly signed firmware).

I do get an analog alsa device but it only gives a pop when it is opened and closed. No idea if digital sound work though.

IlyaSkriblovsky commented 2 years ago

@tomty89 there are several issues here about ES8336 and in one of them @plbossart replied that AMD support for ES8336 is another matter than Intel support: https://github.com/thesofproject/linux/issues/2955#issuecomment-952155442

ps3vdo commented 2 years ago

The problem is like everyone else, there is no sound on Linux. huawei matebook d16

accountForIssues commented 2 years ago

Same problem here with a Matebook 14 w/ Ryzen 4800H and the same 8336 chipset on Fedora 35. Using arecord -l, the microphone is recognized but not in Gnome. It's not able to record anything.

Live booting Deepin OS with Kernel 5.15, the microphone is recognized in the DE and seems to be working well.

Apparently, using Arch with Kernel 5.16 rc3, the microphone is able to record as well (here).

Speakers and the stereo jack don't work.

Kemsekov commented 2 years ago

Matebook d16 the same problem is here. This is sad how often manufacturers completely forgets about linux support.

yimboka commented 2 years ago

Matebook 14 with Ryzen 4800h , same problem here.

ak4nv commented 2 years ago

The same for Matebook 14 AMD 2021 (Ryzen 5 5500U)

rejjjer commented 2 years ago

I have the same problem on Matebook d 16 (Ryzen 5 4600H).

george-martinec commented 2 years ago

Same issue on DualBoot Windows 11 (Audio works) and Zorin OS 16 (Dummy output device) AMD Ryzen 7 4800H with Radeon Graphics** (16 CPUs), 2,9Ghz


Linux Zorin OS 16 (Kernel 5.11.0-41-generic) | FRESH INSTALL (Updated via Zorin Software Updater) No sound - Dummy output device HDMI audio: works Bluetooth audio: works USB Audio: works (tested via Corsair Virtuoso RGB Wireless) Jack: not tested

Windows 11 Bios Info System Model: KLVL-WXX9 BIOS: 2.03


Windows 11 Sound Info Name Speakers (AMD Audio Device) Hardware ID: ACP\VEN_1022&DEV_15E2&AFD_0000 Drivers: amdacpafd.sys Version: 6.0.0.10 (English)

MorozovNikolay1995 commented 2 years ago

The same problem on Huawei Matebook D16 with AMD Ryzen 5 4800H. OS: Linux Mint 20.2 with kernel version 5.16.

Timarrr commented 2 years ago

Same. Huawei Matebook D16 2021 w/Ryzen 5 4600H

bhiregou commented 2 years ago

It is better to raise a ticket or issue with Huawei so that Huawei can reach out to AMD for fix.

IlyaSkriblovsky commented 2 years ago

It is better to raise a ticket or issue with Huawei so that Huawei can reach out to AMD for fix.

So far local Huawei support just answers "Sorry, Matebooks doesn't have official Linux support".

I've emailed a couple of linux sound subsystem contributors from AMD and Huawei but didn't got any response.

I don't know how to reach to Linux team inside Huawei or anybody other who can help us :(

ak4nv commented 2 years ago

@IlyaSkriblovsky stop the panic :)

The next release of Linux kernel 5.16 will bring support to this codec. (planned on Jan,2022) I think SOF project guys will close this issue too.

superm1 commented 2 years ago

The next release of Linux kernel 5.16 will bring support to this codec. (planned on Jan,2022) I think SOF project guys will close this issue too.

Intel and AMD support for this codec are two different things. Please see the other comment above:

There is no machine driver support available for this codec. As for as I Know, only windows OS support is available for ES8336 codec

AFAIK this way this codec is setup is unique to Huawei designs. It is up to them whether they want to support Linux or not. If they do, they can work with AMD to make it happen.

ak4nv commented 2 years ago

@superm1 are you talking about this one ?

superm1 commented 2 years ago

this one

I was quoting earlier in the thread. That's the one for Intel's platforms.

IlyaSkriblovsky commented 2 years ago

@ak4nv It certainly won't work in 5.16 since upstream kernel doesn't support AMD+ES8336 and merge window is already closed.

@superm1 Is it feasible to someone outside of Huawei to ever make the platform driver? I might be ready to invest some time to make myself familiar with the SOF architecture, but can it ever be done without technical documentation from Huawei? Or I will probably will get stuck without some magic constants?

superm1 commented 2 years ago

I think you misunderstood my comment to be Huawei needs to write the driver. Their engineering team would need to collaborate together w/ teams at AMD and Everest on the full solution which would involve development or modifications of multiple components. Let me put it this way - if they don't want to support Linux for their products then AMD's development of some components for the solution would be a wasted effort.

@superm1 Is it feasible to someone outside of Huawei to ever make the platform driver? I might be ready to invest some time to make myself familiar with the SOF architecture, but can it ever be done without technical documentation from Huawei? Or I will probably will get stuck without some magic constants?

@bhiregou can correct me if I'm wrong - but I don't believe SOF is actually a requirement for this.

Timarrr commented 2 years ago

So what should fellow AMD users do?

bhiregou commented 2 years ago

Yes, SOF is not the requirement for this.

IlyaSkriblovsky commented 2 years ago

@superm1 @bhiregou I would be very grateful if you point me in the right direction: corresponding docs, another similar platform driver, etc. Thanks!

muratangin187 commented 2 years ago

It will be good if we can at least connect a wired headphone with the jack.

OlegSadJktu commented 2 years ago

same problem on matebook 16 d with ryzen 5 4600. is it possible to expect that drivers will be written at least in kernel version 5.16 in January 2022? maybe spam the huawei mailbox with a request? ;-(

martyn0ff commented 2 years ago

Chiming in as another troubled MateBook D16 owner. ;-) Can confirm, HDMI and Bluetooth sound works fine, speakers do not. Have a dual boot on my hands if some input is needed.

Edit: Laptop's mic works fine when invoking arecord with PulseAudio installed. However, apps such as Zoom don't pick it up.

@OlegSadJktu kernel 5.16.2, still no sound is available.

ocebenzer commented 2 years ago

Same issue here on MateBook D16 - Dual boot W11 & Manjaro. Additional to HDMI and Bluetooth, USB C to 3.3mm converter works on Both OS. Speaker and default 3.3mm don't work on Manjaro but work on Windows.

Timarrr commented 2 years ago

Kernel 5.16.4, still no sound

byofa commented 2 years ago

I don't think someone is working on the amd version.

hselley commented 2 years ago

It will be good if we can at least connect a wired headphone with the jack.

I was able to get sound out of this laptop to my headphones using this USB sound card.

I don't like this solution, but it's better than not having sound at all.

OlegSadJktu commented 2 years ago

@hselley desperate times call for desperate measures.

dantefff commented 2 years ago

Ihave done

It will be good if we can at least connect a wired headphone with the jack.

I was able to get sound out of this laptop to my headphones using this USB sound card.

I don't like this solution, but it's better than not having sound at all.

I have done the same with this one. This is the smallest I could found.

badriev commented 2 years ago

@dantefff @hselley does your microphone work with this solution?

dantefff commented 2 years ago

@dantefff @hselley does your microphone work with this solution?

This is really an external sound card with its own microphone, so yes, with this solution you can connect a headset with integrated microphone and it works ok.

darkkaze commented 2 years ago

https://www.phoronix.com/scan.php?page=news_item&px=Linux-5.18-Sound

In addition to the AMD PDM driver work, other new sound hardware support in Linux 5.18 includes the Atmel PDMC, Awinic AW8738, i.MX cards with TLV320AIC31xx, Intel systems with CS35L41 and ESSX8336 codecs, MediatekMT8181 WB Bluetooth, NVIDIA Tegra234, Qualcomm SC7280, Renesas RZ/V2L, and TI TAS585M. The Tegra234 support gets audio working for NVIDIA's Orin SoC.

Is this what we need to finally have audio on the matebooks? :3

plbossart commented 2 years ago

The list above mentions "Intel systems'

pyvlad commented 2 years ago

Ihave done

It will be good if we can at least connect a wired headphone with the jack.

I was able to get sound out of this laptop to my headphones using this USB sound card. I don't like this solution, but it's better than not having sound at all.

I have done the same with this one. This is the smallest I could found.

Apple's USB-C to 3.5 mm Headphone Jack Adapter is even smaller, works like a charm (although it does take a USB-C port instead of the USB which may be undesirable for some users).

yibudak commented 2 years ago

https://www.phoronix.com/scan.php?page=news_item&px=Linux-5.18-Sound

In addition to the AMD PDM driver work, other new sound hardware support in Linux 5.18 includes the Atmel PDMC, Awinic AW8738, i.MX cards with TLV320AIC31xx, Intel systems with CS35L41 and ESSX8336 codecs, MediatekMT8181 WB Bluetooth, NVIDIA Tegra234, Qualcomm SC7280, Renesas RZ/V2L, and TI TAS585M. The Tegra234 support gets audio working for NVIDIA's Orin SoC.

Is this what we need to finally have audio on the matebooks? :3

Still no hope for AMD.

Kemsekov commented 2 years ago

What about using ndiswrapper-utils to make windows huawei sound drivers work under linux? I do not care if it is proprietary at this point. I am just too sicked of not having sound on my laptop((

IlyaSkriblovsky commented 2 years ago

@Kemsekov, ndiswrapper is only for network drivers, AFAIK, not for the drivers in general

0xBYTESHIFT commented 2 years ago

It will be good if we can at least connect a wired headphone with the jack.

I was able to get sound out of this laptop to my headphones using this USB sound card.

I don't like this solution, but it's better than not having sound at all.

what did you do to make it work? just plug in and choose it in pavucontrol? does it work with pipewire?

zalom commented 2 years ago

It will be good if we can at least connect a wired headphone with the jack.

I was able to get sound out of this laptop to my headphones using this USB sound card.

I don't like this solution, but it's better than not having sound at all.

what did you do to make it work? just plug in and choose it in pavucontrol? does it work with pipewire?

I also bought a soundcard (similar to one posted in that comment). And I just plugged it in. It was working immediately.

But this problem is so annoying. I can't believe that we have to wait for a kind soul/s to make this one work.

And after so many attempts to do a "fix", I can't even remember all the changes I tried out. So settings could be properly fu-ed up. 😂

0xBYTESHIFT commented 2 years ago

also possible related issue with same device - https://github.com/thesofproject/linux/issues/2955

leoriohub commented 2 years ago

Just bought a matebook 14 to run linux XD

DGrbnv commented 2 years ago

Just bought a matebook 14 to run linux XD

Me too. I have bought a Matebook D16 and found that there is no sound on linux. Anyway I still hope for the fix

laricko commented 2 years ago

5.18.12-051812-generic no sound

any body know when it would be fix?