linux icon indicating copy to clipboard operation
linux copied to clipboard

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

Open IlyaSkriblovsky opened this issue 3 years ago • 99 comments

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

IlyaSkriblovsky avatar Oct 29 '21 20:10 IlyaSkriblovsky

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

plbossart avatar Nov 03 '21 16:11 plbossart

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.

dantefff avatar Nov 05 '21 21:11 dantefff

Same problem with Huawei Matebook d16

serjsaraev avatar Nov 06 '21 09:11 serjsaraev

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 avatar Nov 09 '21 15:11 bhiregoudar

@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...

IlyaSkriblovsky avatar Nov 09 '21 19:11 IlyaSkriblovsky

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 avatar Nov 15 '21 22:11 tomty89

@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

IlyaSkriblovsky avatar Nov 16 '21 07:11 IlyaSkriblovsky

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

ps3vdo avatar Nov 22 '21 17:11 ps3vdo

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.

accountForIssues avatar Dec 01 '21 16:12 accountForIssues

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

Kemsekov avatar Dec 04 '21 22:12 Kemsekov

Matebook 14 with Ryzen 4800h , same problem here.

yimboka avatar Dec 05 '21 07:12 yimboka

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

ak4nv avatar Dec 05 '21 21:12 ak4nv

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

rejjjer avatar Dec 06 '21 16:12 rejjjer

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)

george-martinec avatar Dec 06 '21 18:12 george-martinec

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

MorozovNikolay1995 avatar Dec 13 '21 13:12 MorozovNikolay1995

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

Timarrr avatar Dec 16 '21 13:12 Timarrr

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

bhiregou avatar Dec 16 '21 15:12 bhiregou

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 avatar Dec 16 '21 21:12 IlyaSkriblovsky

@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.

ak4nv avatar Dec 17 '21 14:12 ak4nv

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 avatar Dec 17 '21 14:12 superm1

@superm1 are you talking about this one ?

ak4nv avatar Dec 17 '21 16:12 ak4nv

this one

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

superm1 avatar Dec 17 '21 16:12 superm1

@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?

IlyaSkriblovsky avatar Dec 17 '21 19:12 IlyaSkriblovsky

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.

superm1 avatar Dec 17 '21 20:12 superm1

So what should fellow AMD users do?

Timarrr avatar Dec 21 '21 04:12 Timarrr

Yes, SOF is not the requirement for this.

bhiregou avatar Dec 21 '21 07:12 bhiregou

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

IlyaSkriblovsky avatar Dec 21 '21 07:12 IlyaSkriblovsky

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

muratangin187 avatar Jan 10 '22 16:01 muratangin187

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? ;-(

OlegSadJktu avatar Jan 20 '22 16:01 OlegSadJktu

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.

martyn0ff avatar Jan 24 '22 09:01 martyn0ff