Skip to content

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

Open

Description

@IlyaSkriblovsky

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

Activity

  1. plbossart commented on Nov 3, 2021

    @plbossart
    Member

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

  2. dantefff commented on Nov 5, 2021

    @dantefff

    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.

  3. serjsaraev commented on Nov 6, 2021

    @serjsaraev

    Same problem with Huawei Matebook d16

  4. bhiregoudar commented on Nov 9, 2021

    @bhiregoudar

    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.

  5. IlyaSkriblovsky commented on Nov 9, 2021

    @IlyaSkriblovsky
    Author

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

  6. tomty89 commented on Nov 15, 2021

    @tomty89

    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.

  7. IlyaSkriblovsky commented on Nov 16, 2021

    @IlyaSkriblovsky
    Author

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

  8. ps3vdo commented on Nov 22, 2021

    @ps3vdo

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

  9. accountForIssues commented on Dec 1, 2021

    @accountForIssues

    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.

  10. Kemsekov commented on Dec 4, 2021

    @Kemsekov

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

  11. yimboka commented on Dec 5, 2021

    @yimboka

    Matebook 14 with Ryzen 4800h , same problem here.

  12. ak4nv commented on Dec 5, 2021

    @ak4nv

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

  13. rejjjer commented on Dec 6, 2021

    @rejjjer

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

  14. 76 remaining items

  15. yimboka commented on Jan 8, 2023

    @yimboka

    @nkhost Internal microphone doesn't work for the moment with this driver.

  16. codepayne commented on Jan 10, 2023

    @codepayne

    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
    options:
    SND_SOC_AMD_ACP3x, SND_SOC_AMD_ACP3x_ES8336_MACH, SND_SOC_ACPI,
    SND_SOC_ES8316

    There are a few issues with this driver:

    • The internal microphone(not the one from the headphones, the one inside the laptop) doesn't work

    • If suspending the laptop with the Headphones plugged in the jack, at resume time the sound will stop working.

    • It may be possible in rare cases for the sound to stop working after
      suspend/resume (this can be fixed by restarting pulseaudio), though in my testing this doesn't happen.

    • Because of issues with AMD drivers for ACP controller the wrong driver
      may be loaded for your laptop. I would recommend to blacklist the wrong
      drivers and explicitly load the correct drivers at startup:

      Modify /etc/modprobe.d/blacklist.conf and add the following lines:
      blacklist snd_acp3x_rn
      blacklist snd_pci_acp5x
      blacklist snd_rn_pci_acp3x

    Modify /etc/modules-load.d/modules.conf and add the following lines:
    snd_soc_es8316
    snd_acp3x_pcm_dma
    snd_acp3x_i2s
    snd_pci_acp3x
    snd_soc_acp3x_es8336_mach

    • During first load of sound card driver the settings of the card are
      wrong and no sound can be heard, you have to go in alsamixer, select
      the new sound card amd-acp3x-essx8336 and in the playback tab change
      to maximum value the following knobs:
      Master, Headphone Mixer, DAC

      Enable the following knobs:
      Left Headphone Mixer Left DAC, Right Headphone Mixer Right DAC
      After doing these changes you should be hearing the sound.

      If you want to have the headset microphone work, you have to change
      once the settings in alsamixer in the capture tab to maximum value:
      Headphone Mixer, ADC

  17. Sever-IN commented on Jan 11, 2023

    @Sever-IN

    How to compile the kernel correctly?
    I'm not very good at this subject. After creating the .config via make menuconfig, I tried to compile the kernel via the "make -j12" command, at first it gave the error "there is no rule for building the debian/canonical-certs.pem target required for certs/x509_certificate_list", removing SYSTEM_TRUSTED_KEYS and SYSTEM_REVOCATION_KEYS from the config, compilation was successful, though the folder with the kernel weighed about 20GB, which is very strange. Next, I used "make modules" "sudo make modules_install" "sudo make install", the kernel appeared in the grub bootloader, but I can't boot from it. What am I doing wrong?

  18. nkhost commented on Jan 11, 2023

    @nkhost

    @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

  19. outbreak commented on Jan 11, 2023

    @outbreak

    What do I need to do to check the solution by @codepayne for my HUAWEI KLVL-WXXW on Fedora 37, kernel 6.0.18?

  20. codepayne commented on Jan 11, 2023

    @codepayne

    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.

  21. stafuz commented on Jan 20, 2023

    @stafuz

    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!

  22. doompwnz commented on Jan 24, 2023

    @doompwnz

    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

  23. stafuz commented on Jan 24, 2023

    @stafuz
  24. stafuz commented on Jan 27, 2023

    @stafuz

    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

  25. stafuz commented on Jan 28, 2023

    @stafuz

    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!

  26. codepayne commented on Jan 30, 2023

    @codepayne

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

  27. Tatayoyoh commented on Nov 20, 2025

    @Tatayoyoh

    Hello world !

    For information, I've installed the last Debian 13 Trixie (Gnome flavour) on my Huawei Matebook 14 2020, Ryzen 7, and my speakers/headphones/microphone work like a charm without any trick after a fresh install ✨. Nothing was working since 4 years.

  28. nkhost commented on Nov 20, 2025

    @nkhost

    Hello world !

    For information, I've installed the last Debian 13 Trixie (Gnome flavour) on my Huawei Matebook 14 2020, Ryzen 7, and my speakers/headphones/microphone work like a charm without any trick after a fresh install ✨. Nothing was working since 4 years.

    Sound on my HUAWEI MateBook D 16 HVY-WAP9 also works in debian 13, and kubuntu 24.04. But I still have troubles with 3.5 jack, it works incorrect or not working. Luckily, I don't need it.

  29. DioEgizio commented on Nov 20, 2025

    @DioEgizio

    yeah ever since the https://github.com/codepayne/linux-sound-huawei patches have been sent upstream, speakers (but not headphone jack) have just worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions