Jump to content
Olarila Professional Hackintosh Services ×

AppleHDA in Lion


MaLd0n

Recommended Posts

  • Administrators

Copy the keys CommonPeripheralDSP and PathMaps from LegacyHDA to AppleHDA.kext/Contents/Resources/Platforms.xml (replace original contents);

 

Copy the keys LayoutID and PathMapRef (they're inside key Layouts) to AppleHDA.kext/Contents/Resources/layout??.xml (replace original contents or create a new file if it doesn't exist, ?? = LayoutID);

 

Copy the dict from key HDAConfigDefault (it's inside key HDA Hardware Config Resource) to key HDAConfigDefault in AppleHDA.kext/Contents/PlugIns/AppleHDAHardwareConfigDriver.kext/Contents/Info.plist (paste as child);

 

Use PlistEdit Pro to edit the plist files.

 

If the codec isn't ALC889A or AD1988B you will also need to edit the file AppleHDA.kext/Contents/MacOS/AppleHDA (binary).

 

For Realtek (ALC88x) replace the 4 instances of 85 08 EC 10 (inverted bytes of codec 0885 and vendor 10EC) by your codec, for example, 88 08 EC 10.

 

Use an hex editor (0xED) or the command

sudo perl -pi -e 's|\x85\x08\xec\x10|\x88\x08\xec\x10|g' /System/Library/Extensions/AppleHDA.kext/Contents/MacOS/AppleHDA
 

For Analog Devices (AD) replace the 4 instances of 8B 19 D4 11 by your codec

sudo perl -pi -e 's|\x8b\x19\xd4\x11|\x9b\x98\xd4\x11|g' /System/Library/Extensions/AppleHDA.kext/Contents/MacOS/AppleHDA
 

If you have a patched AppleHDA for Snow Leopard (10.6.7 or older), instead of taking values from LegacyHDA you will get them from AppleHDA plug-ins.

 

CommonPeripheralDSP, PathMaps, LayoutID and PathMapRef come from AppleHDA.kext/Contents/PlugIns/AppleHDAPlatformDriver.kext/Contents/Info.plist

 

The dict in HDAConfigDefault comes from AppleHDA.kext/Contents/PlugIns/AppleHDAController.kext/Contents/Info.plist

 

Snow Leopard 10.6.8 AppleHDA has the same structure as Lion one.

-Guides and Tutorials HERE

-Hackintosh Tutorial Database - HERE

-The largest EFI folder collection for Hackintosh HERE

-Support Olarila Vanilla Hackintosh by making a donation HERE

-Professional Consulting for macOS Hackintosh since 2006 HERE

Link to comment
Share on other sites

Hi MaLd0n,


Can post the file to platforms.xml for AD1988bFix of AppleHDA.kext Lion please ?


I knew how but I think I am wrong :cry:



Thanks a lot another MaLd0n.

- P5B-Deluxe Wifi~Ap / E8400 / 2*2 G-Skill 1066 Mhz / 9800 GT 1GB + Scythe Musashi / HDD Hitachi 160 Gigas SATA.

- P5K-Premium Wifi~Ap / E8400 / 2*2 Kingston 1066 Mhz /9600 GT 512 Mo + Scythe Musashi / HDD Maxtor 500 Gigas SATA.

Link to comment
Share on other sites

  • Administrators
Hi MaLd0n,


Can post the file to platforms.xml for AD1988bFix of AppleHDA.kext Lion please ?


I knew how but I think I am wrong :cry:



Thanks a lot another MaLd0n.

http://www.mediafire.com/file/a73f97v2hcmlhrc/AppleHDA.kext-AD1988B-LionGM.zip

-Guides and Tutorials HERE

-Hackintosh Tutorial Database - HERE

-The largest EFI folder collection for Hackintosh HERE

-Support Olarila Vanilla Hackintosh by making a donation HERE

-Professional Consulting for macOS Hackintosh since 2006 HERE

Link to comment
Share on other sites

Thanks again MaLd0n,



applehda.th.png



Good work ,work great MaLd0n :D

- P5B-Deluxe Wifi~Ap / E8400 / 2*2 G-Skill 1066 Mhz / 9800 GT 1GB + Scythe Musashi / HDD Hitachi 160 Gigas SATA.

- P5K-Premium Wifi~Ap / E8400 / 2*2 Kingston 1066 Mhz /9600 GT 512 Mo + Scythe Musashi / HDD Maxtor 500 Gigas SATA.

Link to comment
Share on other sites

  • Administrators
i cant get audio with ad1988bfix and dsdt.. ??

in Lion or 10.6.8

you dont need legacy


use HDEF in DSDT + AppleHDA patched

-Guides and Tutorials HERE

-Hackintosh Tutorial Database - HERE

-The largest EFI folder collection for Hackintosh HERE

-Support Olarila Vanilla Hackintosh by making a donation HERE

-Professional Consulting for macOS Hackintosh since 2006 HERE

Link to comment
Share on other sites

  • Administrators
hmm.. so im guessing you just patched applehda for us? :| lol

and er.. im sure my dsdt is patched for hdef.. using autopatcher.

Lion?

use it

http://Olarila.com/forum/viewtopic.php?f=17&t=212#p1714


Snow

use the same files

se the first post

-Guides and Tutorials HERE

-Hackintosh Tutorial Database - HERE

-The largest EFI folder collection for Hackintosh HERE

-Support Olarila Vanilla Hackintosh by making a donation HERE

-Professional Consulting for macOS Hackintosh since 2006 HERE

Link to comment
Share on other sites

hm.. i replaced legacy applehda with this one you posted and i have a patched dsdt.aml using autop patcher but i cant seem to get my audio to work still..


i have an asus p5e (flashed to a rampage formula) and audio is ad1988b.. previously in sl i useed dsdt and ad1988bfix.kext but it's not working.


btw, in chameleon build 1xxx do you rename com.apple.boot.plist in e/e to org.chameleon.boot.plist?

Link to comment
Share on other sites

Follow instructions in first post (use PlistEdit Pro), but instead of taking values from "legacy" you will take them from AppleHDA plug-ins.


CommonPeripheralDSP, PathMaps, LayoutID and PathMapRef come from AppleHDA.kext/Contents/PlugIns/AppleHDAPlatformDriver.kext/Contents/Info.plist


The dict from HDAConfigDefault comes from AppleHDA.kext/Contents/PlugIns/AppleHDAController.kext/Contents/Info.plist


Copy data from ALCinject.kext (entriesToAdd) to HDEF in DSDT

                Method (_DSM, 4, NotSerialized)
               {
                   Store (Package (0x06)
                       {
                           "built-in", 
                           Buffer (One)
                           {
                               0x00
                           }, 

                           "layout-id", 
                           Buffer (0x04)
                           {
                               0x0C, 0x00, 0x00, 0x00
                           }, 

                           "PinConfigurations", 
                           Buffer (Zero) {}
                       }, Local0)
                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                   Return (Local0)
               }

Link to comment
Share on other sites

Old...


Do you know if it works with ALC888b ? I'm trying for days... I have used several alc888b kexts as base to edit the values on AppleHDA in Lion... but no lucky...


I don't want to keep trying if it's impossible, so I'm asking you if you know some "success case" with this ALC888b...

Link to comment
Share on other sites

I don't remember about a "success case" with this specific codec, but if the kext works in Snow Leopard, the Lion "port" should work as well.

 

I'm using the values from LegacyHDA_ALC888B.kext... this kext used to work on Snow Leopard in Extra/Extensions... with AppleHDA.kext from 10.6.2 in S/L/E... my DSDT has HDEF...


Am I doing something wrong?

Link to comment
Share on other sites

It looks fine, the only thing is that you copied the entire HDA Hardware Config Resource from legacy instead of only the dict, but it should make no difference.

 

Copy the dict from key HDAConfigDefault (it's inside key HDA Hardware Config Resource) to key HDAConfigDefault in AppleHDA.kext/Contents/PlugIns/AppleHDAHardwareConfigDriver.kext/Contents/Info.plist (paste as child);

 

I really don't understand why it doesn't work.

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


×
×
  • Create New...