New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] No sound on AMD Ryzen 5 4600H + ES8336 codec #3249
Comments
|
@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: #2955 (comment) |
|
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 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) Linux Zorin OS 16 (Kernel 5.11.0-41-generic) | FRESH INSTALL (Updated via Zorin Software Updater) Windows 11 Bios Info Windows 11 Sound Info |
|
The same problem on Huawei Matebook D16 with AMD Ryzen 5 4800H. |
|
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. |
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) |
Intel and AMD support for this codec are two different things. Please see the other comment above:
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. |
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.
@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. |
|
Fedora 36, kernel 6.0.5 Issue persists :/ |
|
I was so excited to use the Matebook 14 2021 AMD to get the best customized laptop experience.... welp no sound sadly. If anyone is interested in getting their MICs working, I got it working with following link: https://forums.linuxmint.com/viewtopic.php?t=373391 Still waiting for a speaker fix and im open for testing |
|
@bandundu can you clarify what exactly did you got working? Only microphone? Or speaker too? |
|
@stealth-program Only the microphone is working as of now. |
Sad that that didn't go anywhere :/ |
|
You can try this : https://github.com/codepayne/linux-sound-huawei |
|
Kernel patch developer (Marian) celebrated New Year 2023 in a very original manner ;o) Has anybody tried the patch from links above [yimboka's post)? |
|
i have compiled the kernel patch by Marian, although unfortunately the problem persists on my system (D15 Ryzen 5 5500U) even though some models do not work just yet, they will eventually. this is huge news for us. thanks, Marian. you did what companies could not do. |
|
@hakanrw Just some instruction should be added in such live ISO - what commands should be executed and where to send their output. And, of cause - status - working or not. |
|
I have compiled the patch as well and on MateBook D16 that didn't yield much success either. The only change I had noticed is some new HDMI entries appeared in |
|
With my Matebook D16 (Ryzen 7 4800H) , I have sound (right/left), headphone from jack works too.
Modify /etc/modprobe.d/blacklist.conf and add the following lines: Modify /etc/modules-load.d/modules.conf and add the following lines:
|
|
@yimboka Mine is AMD Ryzen 5 4600H. Your suggestion unfortunately didn't work. Did you compile driver as module (m) or built-in (y)? Kernel boots fine, but no sound is produced still. I notice that EDIT: dmesg says: |
|
I compile as module. I think driver need few modifications to work for all configurations. Marian may help you. |
|
Update: I got it working! Use Then follow @yimboka's advice. After those manipulations the sound works! This is surreal. See https://github.com/codepayne/linux-sound-huawei/pull/2/files for an example on how to add your card. I claim no responsibility for the consequences of this advice. ;-) P.S. Headphone jack doesn't seem to work. |
|
i now followed @yimboka's steps. i can hear noise from both of my speakers now, but it's all static white noise. no other sound can be heard. |
|
@martyn0ff I have compiled kernel with patch and your commit. Sound works on my Matebook D16 with AMD Ryzen 5 4600H! But now builtin microphone not working. Maybe something wrong in alsamixer settings or in pulseaudio config. Do you have a problem with builtin microphone, or it works? |
|
@nkhost Internal microphone doesn't work for the moment with this driver. |
|
Since I see a lot of people are discussing the support for Huawei laptops with AMD and ES8336 codec here, I will paste the instructions here on how to make sound work on these laptops. If the latest commit from the master branch from the repo https://github.com/codepayne/linux-sound-huawei doesn't fix your sound, raise an issue there. To enable the driver you have to enable the following kernel config There are a few issues with this driver:
Modify /etc/modules-load.d/modules.conf and add the following lines:
|
|
How to compile the kernel correctly? |
|
@Sever-IN I can send you the compiled kernel in a deb package for ubuntu/kubuntu or tell you how to build kernel. My email spiniks@gmail.com |
|
What do I need to do to check the solution by @codepayne for my HUAWEI KLVL-WXXW on Fedora 37, kernel 6.0.18? |
|
Lets move the discussion to https://github.com/codepayne/linux-sound-huawei/wiki It doesn't make sense to continue the discussion on the sof repos since the final solution for this driver will not use sof. |
|
Compiled and installed new kernel from @codepayne . Sound speaker working, internal mic not (hope soon). Headphone is working with mic. Suspend and resume with no problems at all. Driver stable and sound clear. My system is a Matebook 14 Amd 2020 KLVL-WXX9 M1010. Congratulation developers for the patches! |
Hello. Please tell me how to install this patch or kernel, I don't understand. Thanks in advance |
|
Sent using Zoho Mail
…---- Il mar, 24 gen 2023 07:07:14 +0100, Konstantin ha scritto ---
Compiled and installed new kernel from @codepayne . Sound speaker working, internal mic not (hope soon). Headphone is working with mic. Suspend and resume with no problems at all. Driver stable and sound clear. My system is a Matebook 14 Amd 2020 KLVL-WXX9 M1010. Congratulation developers for the patches!
Hello. Please tell me how to install this patch or kernel, I don't understand. Thanks in advance
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @github.com>
follow the compile instruction of your linux distro. mine is on archlinux [https://wiki.archlinux.org/title/Kernel/Traditional_compilation]
|
|
The kernel 6.1.3. has a lot of problems with suspend and resume on Amd systems. Can we update the kernel source from @codepayne to a newer version maybe 6.1.8. and when the internal mic will work as expected? Let me know. Thanks |
|
Compiled with the latest kernel 6.2 from gregkh. Now suspend and resume works. Sound is ok, internal mic not. Backlisting and loading drivers as described in wiki documentation by @codepayne not necessary. Good luck! |
|
@stafuz As I mentioned above lets not discuss my patches on the sof project, since there is no relation between them. Please create an issue on the linux-sound-huawei repository. |
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
The text was updated successfully, but these errors were encountered: