rio2 Posted May 28, 2018 Share Posted May 28, 2018 (edited) 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 May 28, 2018 by rio2 wording 3 Link to comment https://www.insanelymac.com/forum/topic/334213-patch-applehda-working-on-ryzen/ Share on other sites More sharing options...
XLNC Posted May 30, 2018 Share Posted May 30, 2018 will this work on FX boards ? Link to comment https://www.insanelymac.com/forum/topic/334213-patch-applehda-working-on-ryzen/#findComment-2615862 Share on other sites More sharing options...
rio2 Posted May 31, 2018 Author Share Posted May 31, 2018 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. 1 Link to comment https://www.insanelymac.com/forum/topic/334213-patch-applehda-working-on-ryzen/#findComment-2615945 Share on other sites More sharing options...
XLNC Posted June 3, 2018 Share Posted June 3, 2018 sure ! here is my ioreg attached . and btw i am using sierra 10.12.6 . xlnc.ioreg.zip Link to comment https://www.insanelymac.com/forum/topic/334213-patch-applehda-working-on-ryzen/#findComment-2616339 Share on other sites More sharing options...
rio2 Posted June 3, 2018 Author Share Posted June 3, 2018 (edited) 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 June 3, 2018 by rio2 Link to comment https://www.insanelymac.com/forum/topic/334213-patch-applehda-working-on-ryzen/#findComment-2616355 Share on other sites More sharing options...
XLNC Posted June 3, 2018 Share Posted June 3, 2018 Actually that dump was created using IORegistryExplorer 3.0.2 . and here is the native AppleHDA.kext from Sierra 10.12.6 attached : AppleHDA.kext.zip Link to comment https://www.insanelymac.com/forum/topic/334213-patch-applehda-working-on-ryzen/#findComment-2616438 Share on other sites More sharing options...
Recommended Posts