linux
linux copied to clipboard
[BUG] No sound on AMD Ryzen 5 4600H + ES8336 codec
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
@ajitkupandey this is for you guys. I have enough on my plate with the same codec for Intel platforms :-)
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.
Same problem with Huawei Matebook d16
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.
@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...
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.
@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
The problem is like everyone else, there is no sound on Linux. huawei matebook d16
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.
Matebook d16 the same problem is here. This is sad how often manufacturers completely forgets about linux support.
Matebook 14 with Ryzen 4800h , same problem here.
The same for Matebook 14 AMD 2021 (Ryzen 5 5500U)
I have the same problem on Matebook d 16 (Ryzen 5 4600H).
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)
The same problem on Huawei Matebook D16 with AMD Ryzen 5 4800H. OS: Linux Mint 20.2 with kernel version 5.16.
Same. Huawei Matebook D16 2021 w/Ryzen 5 4600H
It is better to raise a ticket or issue with Huawei so that Huawei can reach out to AMD for fix.
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 :(
@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.
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.
@superm1 are you talking about this one ?
this one
I was quoting earlier in the thread. That's the one for Intel's platforms.
@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?
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.
So what should fellow AMD users do?
Yes, SOF is not the requirement for this.
@superm1 @bhiregou I would be very grateful if you point me in the right direction: corresponding docs, another similar platform driver, etc. Thanks!
It will be good if we can at least connect a wired headphone with the jack.
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? ;-(
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.