Jump to content
Sign in to follow this  
Followers 0
rio2

[Patch] AppleHDA working on Ryzen

6 posts in this topic

Recommended Posts

How to make AppleHDAController load on Ryzen boards?

  • Rename(/add) your audio controller to your DSDT/SSDT as HDEF
  • Add a _DSM method to your HDEF device with layout id 1
  • Patch the AppleHDAController binary, because it has a static table containing the supported PCI Vendor/DeviceID pairs and it also checks the VendorID against known values. As an example I provide a dif file and patched 10.13.3 binary, but if you want to I can patch the binary for other versions.

 

After AppleHDAController loads to actually get sound working you need to patch AppleHDA.kext for the codec on your board. First I tried to use Lilu+AppleALC for this task, but for some reason it refused to work. (I might look into it later why) But for the time being it was easier to use toleda's cloverALC script for that, but to make it work I had to change(/remove) the specified location of the HDEF device from the script. And for some reason it also required me to mount the EFI partition manually.

 

Change this:

if [[ $(cat /tmp/HDEF.txt | grep -c "HDEF@1") != 0 ]]; then

Into this:

if [[ $(cat /tmp/HDEF.txt | grep -c "HDEF") != 0 ]]; then

 

AppleHDAController_Patched10.13.3

AppleHDAController-10.13.3-AMD.bdiff

Edited by rio2
wording

Share this post


Link to post
Share on other sites
Advertisement
13 hours ago, XLNC said:

will this work on FX boards ?

I don't own any FX hardware so I can't test it, but it should work. Although the PCI device ID might need changing in the binary. If you can tell me the Vendor and Device ID of your HDEF device from IOReg I could try making a binary patched for FX.

Share this post


Link to post
Share on other sites
2 hours ago, XLNC said:

sure ! here is my ioreg attached . 
and btw i am using sierra 10.12.6 .

xlnc.ioreg.zip

Can you please attach the unmodified AppleHDAController binary from 10.12.6, because I don't have Sierra installed anymore?

(EDIT: I can't open your IOReg dump, please use IORegistryExplorer 2.1 (attached)

IORegistryExplorer_2.1.zip)

EDIT: dump opens fine in IOReg 3.0.2

Edited by rio2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By dasca.thea
      Hi everyone,

      I have run into a frustrating problem here.

      My hardware:
      MSI x399 Meg Creation
      2990WX
      64GB ram @2933Mhz
      Radeon 7
      Sata: Samsung 130GB SSD
      M.2: Samsung 970 Pro 1TB(latest firmware)

      Using OpenCore 0.5.6
      (NVMeFix NVMeDxe installed)
      I have successful installed OSX catalina onto my 130GB. It works flawlessly.

      and then I figure I should do it on my M.2 drive. It installs flawlessly, at the last stage of installation, it naturally restart and thats it.
      I can not boot into this newly installed OS on the M.2 drive. it keeps throwing: "error loading kernel cache 0x1"

      I have tried deleting the prelinkedkernel from recovery partition. Tried rebuilding cache(I have not installed any kext into L/E).

      All this time, I can use the same boot USB to boot into catalina on my sata 130Gb SSD working just fine.
       
      attached is my EFI folder. I have tried all the suggested SMBios iMacPro1,1 MacPro6,1 MacPro7,1
       
      is this ruled out that samsung 970Pro doesnt work?
      Please help. 
       
       
      EFI.zip
    • By AppleCampus
      My computer was using Intel core i5-4210u ,My computer was using Intel core i5-4210u ,Sound card is cx20751/2,I use applealc inject id=3 successfully drive my onboard soundcard,but I found that HDMI Output is still no sound,how can i deal with it?
    • By D3s0lat0r
      Greetings to the Forum,
      i recently followed a guide on hackintosh,and also i am complete noob in this field.
      all is working great, as i am using macpeets codec with layout id=18 cause i like to manually switch to my headphones.
      only one thing doesnt work and its my mic. I tried all the layout ids but no luck.
      i am using ASROCK Fatal1ty b450 k4 with amd r5 2600.
      wich has alc 892.
      Can you please help me? Thank you very much
×