Jump to content

AppleHDA on AMD


jalavoui
 Share

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

  • Like 5
Link to comment
Share on other sites

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.

Link to comment
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

Link to comment
Share on other sites

  • 5 months later...
  • 3 weeks later...

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

Link to comment
Share on other sites

  • 11 months later...

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 ?

Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...
  • 1 month later...

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
Link to comment
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
Link to comment
Share on other sites

  • 11 months later...
 Share

×
×
  • Create New...