Jump to content
Sign in to follow this  
Followers 0
jalavoui

AppleHDA on AMD

20 posts in this topic

Recommended Posts

I found a way to make sound work on a E2-6110 using AppleHDA from 10.11.4

 

Anyway this thread will focus on making AppleHDa work on AMD platform.

 

 

 

Howto Install

 

- Find you codec id (linux/windows). (e.g. alc283)

- Disable all audio patches u might have.

- Enable, if needed, in your DSDT.aml the HDEF device. Install the attached zip in S/L/E and reboot

- check in ioreg if u have the driver loaded.

- Check AppleALC for your codec and a layout id https://github.com/vit9696/AppleALC/tree/master/Resources(on alc283 i got 3 and 11. layout 3 worked). Choose a layot id and add to DSDT.aml

- Install AppleALC.kext  in you clover extensions folder. Reboot -> Audio should be working

Note u can use others AppleHDA tools to make audio work

 

Bugs/Limitations

 

- Open system Monitor - memory panel. If you got memory flood in kernel you gonna get mac os x freezed. Remove AppleALC and reboot.

- Idk about HDMI audio as i have no working graphic driver.

 

 

TODO

- Check other amd hardware and improve this patch

- Generate diff patch and submit to AppleALC. Need users feedback on v2 first.

 

 

UPDATE

- Fixed kernel memory leak. The driver is very stable for HDEF devices

- v2 was made based on 10.11.4 files.

- v3 is made for 10.12 and includes voodoo hdmi support - to use this edit info.plist to match your devices ids (HDEF & HDAU)

 

Kernel debug procedure

 

http://www.insanelymac.com/forum/topic/312254-realtek-ethernet-panic-debug-driver-using-xcode-ui/

 

can this thread be moved to general amd dev section?

v2.zip

v3.zip

Share this post


Link to post
Share on other sites
Advertisement

If u guys have other patched AppleHDA.kext (10.11.4 version) that works plz attach.

 

Atm seems like non nVidia chipsets are a f@#!

 

 

tks Shanee but your kext is not the same as the one im working on.

Share this post


Link to post
Share on other sites

Olá Mirone, obrigado por leres este tópico ;)

 

I'm testing only the HDEF device cause as u can see in ioregs i dont have a working video card , meaning i cant use HDAU

 

The HDEF device uses Mirone's ALC283 layout 3 patch without any modification. The sound works without issues but i got a huge kernel flood in memory.

 

So on a 1st stage (check beforeAppleALCload.ioreg) i unlocked the AppleHDAController to get the AppleHDADriver loading. This allows ALC283 tobe recognized.

 

On 2nd stage (check afterAppleALCload.ioreg) i add layout 3 to DSDt.aml and load AppleALC to get sound working.

 

Also attached the base linux dumps.

 

 

sound.zip

Share this post


Link to post
Share on other sites

attachicon.gifQQ图片20161203110417.png

This is my sound card information to help counterfeit the next

use toleda's audio_ALCInjection patch for Realtek ( Vendor-ID 10de Device-ID 0887) : https://github.com/toleda/audio_ALCInjection

Share this post


Link to post
Share on other sites

I found a way to make sound work on a E2-6110 using AppleHDA from 10.11.4

 

Anyway this thread will focus on making AppleHDa work on AMD platform.

 

 

 

Howto Install

 

- Find you codec id (linux/windows). (e.g. alc283)

- Disable all audio patches u might have.

- Enable, if needed, in your DSDT.aml the HDEF device. Install the attached zip in S/L/E and reboot

- check in ioreg if u have the driver loaded.

- Check AppleALC for your codec and a layout id https://github.com/v...aster/Resources(on alc283 i got 3 and 11. layout 3 worked). Choose a layot id and add to DSDT.aml

- Install AppleALC.kext  in you clover extensions folder. Reboot -> Audio should be working

Note u can use others AppleHDA tools to make audio work

 

Bugs/Limitations

 

- Open system Monitor - memory panel. If you got memory flood in kernel you gonna get mac os x freezed. Remove AppleALC and reboot.

- Idk about HDMI audio as i have no working graphic driver.

 

 

TODO

- Check other amd hardware and improve this patch

- Generate diff patch and submit to AppleALC. Need users feedback on v2 first.

 

 

UPDATE

- Fixed kernel memory leak. The driver is very stable for HDEF devices

- v2 was made based on 10.11.4 files.

- v3 is made for 10.12 and includes voodoo hdmi support - to use this edit info.plist to match your devices ids (HDEF & HDAU)

 

Kernel debug procedure

 

http://www.insanelym...using-xcode-ui/

 

can this thread be moved to general amd dev section?

does it work on High Sierra 

and does all kexts in v3 zip file need to be installed ?

Share this post


Link to post
Share on other sites

tested on 10.12 no idea about 10.13

i will try this on my amd a10 5800k with asus board,will report later

By tha way my codec id is alc 892

Share this post


Link to post
Share on other sites

the reason i've kept the 10.11 files and make them usefull for 10.12 was cause of the dam system logs apple choose to change

it really doesnt help at all for debugging/making new patches

 

as for 10.13 i've got no ideas except for fixing assertions and kernel panics. but ofc someone as to try todo the first hard patch so others can test.

 

i've reworked this patches for 10.12 on the ati oland thread on graphics session (not the same hardware ofc)

Edited by jalavoui

Share this post


Link to post
Share on other sites
On 4/23/2018 at 10:50 PM, jalavoui said:

the reason i've kept the 10.11 files and make them usefull for 10.12 was cause of the dam system logs apple choose to change

it really doesnt help at all for debugging/making new patches

 

as for 10.13 i've got no ideas except for fixing assertions and kernel panics. but ofc someone as to try todo the first hard patch so others can test.

 

i've reworked this patches for 10.12 on the ati oland thread on graphics session (not the same hardware ofc)

High Sierra AppleHDAController::probe reads gControllerDescriptions for different Intel devices.  Is the same static array used in El Capitan?

I see the same static array for AppleGFXHDAController::probe, this time it contains 4 entries with AMD HDMI ids instead of 0x30 Intel HDA controller ids.

Really need to understand how to patch this table to get AMD HDA controllers working.

Edited by ydeng

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.

×