-->Donations via PayPal [External Link Removed for Guests] :guitar
-->Installation/Post Installation Tutorial [Local Link Removed for Guests]
-->Useful Links [Local Link Removed for Guests]
-->Olarila Images - Updated images [Local Link Removed for Guests]
-->Guides and Tutorials [Local Link Removed for Guests]
-->Clover Folder for All Chipsets [Local Link Removed for Guests]
-->DSDT Patch Requests [Local Link Removed for Guests]

AppleHDA in Lion

User avatar
MaLd0n
Site Admin
Site Admin
Posts: 14513
Joined: 05 Dec 2010, 19:35
CPU: i9-9900K
Motherboard: GA Z390 M GAMING
GPU: RX 590 8 GB
Location: Rio de Janeiro, Brazil
Contact:

AppleHDA in Lion

Post by MaLd0n » 20 Jul 2011, 21:42

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 [External Link Removed for Guests] 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 ([External Link Removed for Guests]) or the command

Code: [Local Link Removed for Guests]

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: [Local Link Removed for Guests]

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.
:guitar[External Link Removed for Guests]:guitar-[Local Link Removed for Guests]:guitar

Problems with Paypal Donate? Check [Local Link Removed for Guests]

-Donated? Send me one PM-
User avatar
Flashe
Posts: 11
Joined: 10 Jul 2011, 18:59

Re: AppleHDA in Lion

Post by Flashe » 20 Jul 2011, 22:06

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.
User avatar
MaLd0n
Site Admin
Site Admin
Posts: 14513
Joined: 05 Dec 2010, 19:35
CPU: i9-9900K
Motherboard: GA Z390 M GAMING
GPU: RX 590 8 GB
Location: Rio de Janeiro, Brazil
Contact:

Re: AppleHDA in Lion

Post by MaLd0n » 20 Jul 2011, 22:09

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.
[External Link Removed for Guests]
:guitar[External Link Removed for Guests]:guitar-[Local Link Removed for Guests]:guitar

Problems with Paypal Donate? Check [Local Link Removed for Guests]

-Donated? Send me one PM-
User avatar
Flashe
Posts: 11
Joined: 10 Jul 2011, 18:59

Re: AppleHDA in Lion

Post by Flashe » 20 Jul 2011, 23:16

Thanks again MaLd0n,


[External Link Removed for Guests]


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.
iLegendary
Posts: 6
Joined: 24 Jul 2011, 11:09

Re: AppleHDA in Lion

Post by iLegendary » 27 Jul 2011, 12:27

i cant get audio with ad1988bfix and dsdt.. ??
User avatar
MaLd0n
Site Admin
Site Admin
Posts: 14513
Joined: 05 Dec 2010, 19:35
CPU: i9-9900K
Motherboard: GA Z390 M GAMING
GPU: RX 590 8 GB
Location: Rio de Janeiro, Brazil
Contact:

Re: AppleHDA in Lion

Post by MaLd0n » 27 Jul 2011, 20:26

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
:guitar[External Link Removed for Guests]:guitar-[Local Link Removed for Guests]:guitar

Problems with Paypal Donate? Check [Local Link Removed for Guests]

-Donated? Send me one PM-
iLegendary
Posts: 6
Joined: 24 Jul 2011, 11:09

Re: AppleHDA in Lion

Post by iLegendary » 27 Jul 2011, 20:54

hmm.. so im guessing you just patched applehda for us? :| lol
and er.. im sure my dsdt is patched for hdef.. using autopatcher.
User avatar
MaLd0n
Site Admin
Site Admin
Posts: 14513
Joined: 05 Dec 2010, 19:35
CPU: i9-9900K
Motherboard: GA Z390 M GAMING
GPU: RX 590 8 GB
Location: Rio de Janeiro, Brazil
Contact:

Re: AppleHDA in Lion

Post by MaLd0n » 27 Jul 2011, 21:05

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
[Local Link Removed for Guests]

Snow
use the same files
se the first post
:guitar[External Link Removed for Guests]:guitar-[Local Link Removed for Guests]:guitar

Problems with Paypal Donate? Check [Local Link Removed for Guests]

-Donated? Send me one PM-
iLegendary
Posts: 6
Joined: 24 Jul 2011, 11:09

Re: AppleHDA in Lion

Post by iLegendary » 27 Jul 2011, 23:19

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

Re: AppleHDA in Lion

Post by iLegendary » 28 Jul 2011, 07:34

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

Re: AppleHDA in Lion

Post by iLegendary » 28 Jul 2011, 12:06

okay nvm it works. i just didn't patch hdef.. seeing as the auto patcher didn't do it for me, haha.

thanks a lot anyways! audio working as planned. :)
Tsurugi
Posts: 36
Joined: 16 Jul 2011, 15:00

Re: AppleHDA in Lion

Post by Tsurugi » 01 Aug 2011, 08:12

this mode is for enable AppleHDA for alc88x without problem, and avoid the kernel panic on reboot ?
Wilmiolo
Posts: 2
Joined: 27 Aug 2011, 18:25

Re: AppleHDA in Lion

Post by Wilmiolo » 27 Aug 2011, 18:29

Ayuda por favor, con ALC888 y Mac OS X Lion, cual es el "PIN Configuration" para que trabajen los puertos frontales,
por favor los necesito, muchas gracias
rohan_pce
Posts: 4
Joined: 26 May 2011, 01:41

Re: AppleHDA in Lion

Post by rohan_pce » 05 Sep 2011, 07:16

hi all i have an old alcinject.kext with patched applehda.kext which works fine fro me in snowleo but it dosent work for me in lion . I have attached both the kexts can anbody guide me how to patch apple hda from lion to get my audio working
my audio driver is realtek alc 880.
You do not have the required permissions to view the files attached to this post.
User avatar
oldnapalm
Olarila Staff
Olarila Staff
Posts: 1225
Joined: 05 Dec 2010, 20:49

Re: AppleHDA in Lion

Post by oldnapalm » 05 Sep 2011, 15:05

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

Code: [Local Link Removed for Guests]

                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)
                }
rohan_pce
Posts: 4
Joined: 26 May 2011, 01:41

Re: AppleHDA in Lion

Post by rohan_pce » 06 Sep 2011, 08:45

AppleHDA.kext/Contents/Resources/Platforms.xml

My resources Folder Does no have platforms.xml
User avatar
oldnapalm
Olarila Staff
Olarila Staff
Posts: 1225
Joined: 05 Dec 2010, 20:49

Re: AppleHDA in Lion

Post by oldnapalm » 06 Sep 2011, 17:32

rohan_pce wrote:AppleHDA.kext/Contents/Resources/Platforms.xml

My resources Folder Does no have platforms.xml
Then it's not a Lion AppleHDA.
User avatar
prcmelo
Posts: 31
Joined: 20 Jun 2011, 12:55
CPU: i7 4790
Motherboard: GA-H97-D3H
GPU: HD 6870
Location: Rio de Janeiro
Contact:

Re: AppleHDA in Lion

Post by prcmelo » 06 Sep 2011, 17:43

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...
User avatar
oldnapalm
Olarila Staff
Olarila Staff
Posts: 1225
Joined: 05 Dec 2010, 20:49

Re: AppleHDA in Lion

Post by oldnapalm » 06 Sep 2011, 17:54

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.
User avatar
prcmelo
Posts: 31
Joined: 20 Jun 2011, 12:55
CPU: i7 4790
Motherboard: GA-H97-D3H
GPU: HD 6870
Location: Rio de Janeiro
Contact:

Re: AppleHDA in Lion

Post by prcmelo » 06 Sep 2011, 18:06

oldnapalm wrote: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?
Post Reply

Return to “Lion (10.7)”