olarila.com

Mac OS X x86 - Hackintosh
It is currently 25 May 2013, 00:27

All times are UTC [ DST ]




Post new topic Reply to topic  [ 54 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: AppleHDA in Lion
PostPosted: 20 Jul 2011, 22:42 
User avatar
Staff

Joined: 05 Dec 2010, 20:35
Posts: 766
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
Code:
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
Code:
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.

_________________
Image
MaLd0n


Top
 Profile  
 
 Post subject: Re: AppleHDA in Lion
PostPosted: 20 Jul 2011, 23:06 
User avatar
GeekInTraining

Joined: 10 Jul 2011, 19:59
Posts: 11
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.


Top
 Profile  
 
 Post subject: Re: AppleHDA in Lion
PostPosted: 20 Jul 2011, 23:09 
User avatar
Staff

Joined: 05 Dec 2010, 20:35
Posts: 766
Flashe wrote:
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/a73f97v2h ... LionGM.zip

_________________
Image
MaLd0n


Top
 Profile  
 
 Post subject: Re: AppleHDA in Lion
PostPosted: 21 Jul 2011, 00:16 
User avatar
GeekInTraining

Joined: 10 Jul 2011, 19:59
Posts: 11
Thanks again MaLd0n,


Image


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.


Top
 Profile  
 
 Post subject: Re: AppleHDA in Lion
PostPosted: 27 Jul 2011, 13:27 
Noob

Joined: 24 Jul 2011, 12:09
Posts: 6
i cant get audio with ad1988bfix and dsdt.. ??


Top
 Profile  
 
 Post subject: Re: AppleHDA in Lion
PostPosted: 27 Jul 2011, 21:26 
User avatar
Staff

Joined: 05 Dec 2010, 20:35
Posts: 766
iLegendary wrote:
i cant get audio with ad1988bfix and dsdt.. ??

in Lion or 10.6.8
you dont need legacy

use HDEF in DSDT + AppleHDA patched

_________________
Image
MaLd0n


Top
 Profile  
 
 Post subject: Re: AppleHDA in Lion
PostPosted: 27 Jul 2011, 21:54 
Noob

Joined: 24 Jul 2011, 12:09
Posts: 6
hmm.. so im guessing you just patched applehda for us? :| lol
and er.. im sure my dsdt is patched for hdef.. using autopatcher.


Top
 Profile  
 
 Post subject: Re: AppleHDA in Lion
PostPosted: 27 Jul 2011, 22:05 
User avatar
Staff

Joined: 05 Dec 2010, 20:35
Posts: 766
iLegendary wrote:
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
viewtopic.php?f=17&t=212#p1714

Snow
use the same files
se the first post

_________________
Image
MaLd0n


Top
 Profile  
 
 Post subject: Re: AppleHDA in Lion
PostPosted: 28 Jul 2011, 00:19 
Noob

Joined: 24 Jul 2011, 12:09
Posts: 6
yeah I'm using lion. Thanks! I'll try it when get home.


Top
 Profile  
 
 Post subject: Re: AppleHDA in Lion
PostPosted: 28 Jul 2011, 08:34 
Noob

Joined: 24 Jul 2011, 12:09
Posts: 6
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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 54 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group