Jump to content
MaLd0n

AppleHDA in Lion

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.

Support Olarila Vanilla Hackintosh by making a donation HERE

About Premium Users you can check HERE

Problems with Paypal 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

Support Olarila Vanilla Hackintosh by making a donation HERE

About Premium Users you can check HERE

Problems with Paypal 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
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

Support Olarila Vanilla Hackintosh by making a donation HERE

About Premium Users you can check HERE

Problems with Paypal 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

  • Administrators

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)
               }

Donation with Paypal HERE

Donation with Stripe HERE

Donation with BuyMeaCoffee HERE

Donation with Mercado Livre HERE

Donation with Binance 0xdbe48ef6b158f1dd0035d7f49555c99e52f72714

Donation with BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

Donation with PicPay @danielnmaldonado

Donation with PiX @danielnmaldonado@gmail.com

Link to comment
Share on other sites

  • Administrators
AppleHDA.kext/Contents/Resources/Platforms.xml


My resources Folder Does no have platforms.xml

 

Then it's not a Lion AppleHDA.

Donation with Paypal HERE

Donation with Stripe HERE

Donation with BuyMeaCoffee HERE

Donation with Mercado Livre HERE

Donation with Binance 0xdbe48ef6b158f1dd0035d7f49555c99e52f72714

Donation with BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

Donation with PicPay @danielnmaldonado

Donation with PiX @danielnmaldonado@gmail.com

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

  • Administrators

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.

Donation with Paypal HERE

Donation with Stripe HERE

Donation with BuyMeaCoffee HERE

Donation with Mercado Livre HERE

Donation with Binance 0xdbe48ef6b158f1dd0035d7f49555c99e52f72714

Donation with BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

Donation with PicPay @danielnmaldonado

Donation with PiX @danielnmaldonado@gmail.com

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

  • Administrators

Maybe you are missing the bin patch?


I believe you should use

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

 

ALC888B (or ALC887)

http://www.insanelymac.com/forum/index.php?showtopic=140941

Donation with Paypal HERE

Donation with Stripe HERE

Donation with BuyMeaCoffee HERE

Donation with Mercado Livre HERE

Donation with Binance 0xdbe48ef6b158f1dd0035d7f49555c99e52f72714

Donation with BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

Donation with PicPay @danielnmaldonado

Donation with PiX @danielnmaldonado@gmail.com

Link to comment
Share on other sites

  • Administrators

Attach your edited Lion kext, DSDT and the legacy that works in Snow.

Donation with Paypal HERE

Donation with Stripe HERE

Donation with BuyMeaCoffee HERE

Donation with Mercado Livre HERE

Donation with Binance 0xdbe48ef6b158f1dd0035d7f49555c99e52f72714

Donation with BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

Donation with PicPay @danielnmaldonado

Donation with PiX @danielnmaldonado@gmail.com

Link to comment
Share on other sites

  • Administrators

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.

Donation with Paypal HERE

Donation with Stripe HERE

Donation with BuyMeaCoffee HERE

Donation with Mercado Livre HERE

Donation with Binance 0xdbe48ef6b158f1dd0035d7f49555c99e52f72714

Donation with BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

Donation with PicPay @danielnmaldonado

Donation with PiX @danielnmaldonado@gmail.com

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.






×
  • Create New...
The popup will be closed in 15 seconds...