Help - Search - Members - Calendar
Full Version: [HOW TO] Patch AppleHDA - Knowledge Base
Project OS X Forums > OS X 10.6 (Snow Leopard) > Hardware Information > Sound
Pages: 1, 2, 3, 4, 5
jcgeraldi
I need a help from you. The Files Necessary to have a patch AppleHDA.Kext even reading the forum I could not understand how to get the ConfigData. And also, what version of the original kext I have to have to modify. I need the onboard sound to run protools 9. I really need a help. I'll post my files.
Sorry my English, I am Brazilian and I do not know much to write in English.

I have a notebook CCE corei7 sandybridge, 8gb mem, and Intel HD 3000.

Click to view attachment
neuroman
Click to view attachmentHelp please!!!!!!!

I have an HP Elitebook 8440p nearly perfectly working. It uses an IDT 92HD75B3X5

I have edited the DSDt and applied the fixes suggested and tried patching yhe appleHDA without being able to get it working.

I have tried every option of voodooHDA out there but they all give me kernel panics, specially when running on battery.

I am attaching the codec linux codec dump, graphviz output and hex conversions as well as the DSDT. I am begging for some help to see if I can get the onboard sound working.

Thank you very much.
robi
Hi I am having problems in making a patched apple hda working for my fujitsu s6410 in Lion alc262

Kext loads fine but no sound coming from speakers

If i plug headphone there is sound although it says internal speaker internal mic working fine
I take it there is something wrong with the pin config how do I convert my hda verb to config data so I can put it in hda infoplist????


I have attached my hda verb linux codec dump and ioreg details

should you need apple hda next let me know

Click to view attachment

Click to view attachment

Click to view attachment
blackbumer
QUOTE (bcc9 @ May 30 2011, 01:59 AM) *
I patched AppleHDA under 10.7 in 3 parts.

1. Patch the AppleHDA binary itself to match your codec.
2. Replace layoutXX.xml and Platforms.xml in AppleHDA.kext/Contents/Resources with the layout&pathmap XML you had from 10.6.
3. Use a revised legacy HDA kext for the rest (any codecaddressfilterarray or configdata matching)

Part 1 is more complicated than in 10.6 as some of the codec id range comparisions are getting in the way of the matching. To map my IDT codec to use the AD1984 class routines I had to patch two different codec ID comparisons. I wrote a perl script to do this all in 1 step.

Note that the numerically closest match to the IDT codec is ALC885, and so this can still be mapped with one codec ID comparison change ala 10.6. However in 10.7 I find that the ALC885 codec fails to work as a replacement for IDT, producing ALC885 specific assertion failure errors.


So I've attached a zip file containing what works for my IDT 92hd73c1 (dell xps):
patch-hda.pl which patches the AppleHDA binary
Resources/layout12.xml,Platforms.xml to be overwritten to the versions in /S/L/E/AppleHDA.kext/Contents/Resources
HDAIDT.kext "legacy" kext helper for part 3
Click to view attachment

Yes, I've been getting those ever since 10.6 AppleHDA changed requiring the codecid patch. I know you can patch AppleHDA to no-op the assertion messages but I'd really like to fix the underlying problem. If I understood exactly which class routine is mishandling things, perhaps we could just patch the vtable to use a different routine.


Hi bcc9
i have nearly same codec as you
i wanted to ask how to generate layout12.xml and platform.xml for my case?
i don't have 10.6 previously...

CODE
Found a device of class VoodooHDADevice: IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/HDEF@1B/VoodooHDADevice


Probing codec #0...
HDA Codec #0: IDT 92HD81B1X
HDA Codec ID: 0x111d7605
       Vendor: 0x111d
       Device: 0x7605
     Revision: 0x01
     Stepping: 0x05
PCI Subvendor: 0x1656103c
    startNode=1 endNode=2
    Found audio FG nid=1 startNode=10 endNode=35 total=25

Processing audio FG cad=0 nid=1...
Powering up...
Parsing audio FG...
GPIO: 0xc0000003 NumGPIO=3 NumGPO=0 NumGPI=0 GPIWake=1 GPIUnsol=1
nid 10 0x40f000f0 as 15 seq  0         Other  None jack  0 loc  0 color Unknown misc 0
nid 11 0x0221101f as  1 seq 15    Headphones  Jack jack  1 loc  2 color   Black misc 0
nid 12 0x02a11020 as  2 seq  0    Microphone  Jack jack  1 loc  2 color   Black misc 0
nid 13 0x40f000f0 as 15 seq  0         Other  None jack  0 loc  0 color Unknown misc 0
nid 14 0x40f000f0 as 15 seq  0         Other  None jack  0 loc  0 color Unknown misc 0
nid 15 0x92170110 as  1 seq  0       Speaker Fixed jack  7 loc 18 color Unknown misc 1
nid 16 0x40f000f0 as 15 seq  0         Other  None jack  0 loc  0 color Unknown misc 0
nid 17 0xd5a30130 as  3 seq  0    Microphone  Both jack  3 loc 21 color Unknown misc 1
nid 31 0x40f000f0 as 15 seq  0         Other  None jack  0 loc  0 color Unknown misc 0
nid 32 0x40f000f0 as 15 seq  0         Other  None jack  0 loc  0 color Unknown misc 0


i've changed pl file to match my codecid and patched appleHDA successfully, after i replaced layout12.xml and platform.xml with yours but didn't get any sound after reboot...

i have this messages in dmesg
CODE
Sound assertion ""ERROR: EFI ROM did not publish 'hda-gfx' associative property!\\n"" failed in AppleHDACodecGeneric at line 350 goto ExitError
Sound assertion ""ERROR: EFI ROM did not publish 'hda-gfx' associative property!\\n"" failed in AppleHDACodecGeneric at line 350 goto ExitError
Transcript Offline - Buffer Pool Allocate [181000] failed
Sound assertion "false == codecFound" failed in AppleHDADriver at line 1449 goto handler
Sound assertion "false == codecFound" failed in AppleHDADriver at line 1449 goto handler
Sound assertion "0 == pathMap_aDriverInstance" failed in AppleHDADriver at line 2037 goto Exit
Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in AppleHDADriver at line 207 goto Exit
Sound assertion "false == me->completeStart ()" failed in AppleHDADriver at line 996 goto Exit
bcc9
QUOTE (blackbumer @ Aug 30 2011, 01:32 AM) *
Hi bcc9
i have nearly same codec as you
i wanted to ask how to generate layout12.xml and platform.xml for my case?
i don't have 10.6 previously...
The existing instructions (such as in post #1) for constructing pathmaps and layouts are basically the same as before, you are just placing the resulting XML information in different files (now layoutXX.xml and Platforms.xml).
Your "false == codecFound" assertion failure suggests to me that you don't even have the codec being matched; I wonder if you edited your DSDT to use layout 12 for your HDEF node (inject layout-id with value 12)? You are of course free to use whatever number you wish; I used 12 as that matches post #1.

I personally don't have time to help people with custom pathmap/layout editing.
bcc9
QUOTE (atlee @ Jul 25 2011, 05:42 AM) *
I always enjoy the script work you produce biggrin.gif great job.

Thanks smile.gif I even made a package installer which installs/patches everything automatically; of course it is specific to my laptop's codec.
bcc9
QUOTE (toleda @ Jul 18 2011, 04:41 PM) *
Is Encoded Digital Audio over optical available with your IDT patch?
I've never had spdif audio available on my laptop with idt codec. It isn't even available under windows.
QUOTE (toleda @ Jul 18 2011, 04:41 PM) *
You have asked previously about the Realtek codecs. The 262 worked in 10.6.x but returns an illegal format error in 10.7 with and without hdaidt. The 885 loads with no errors and has the encoded digital audio. However, selecting SystemsPreferences/Output causes Prefs to freeze. The next boot crawls along, sometimes getting to the desktop with no USB and all cores maxed. It appears changing the x85 to x92 in the AppleHDA binary cripples OSX. The logs show numerous iokit kernel dependencies. Any suggestions?
If it was me, I'd try all the built-in codecs and failing that, start a remote gdb debug session to see what exactly applehda is failing on.
robi
I managed to get sound from my speakers the easy way

I patched my hda with tartuga app and codec dump swapped AppleHDAHardwareConfigDriver.kext with the patched one and bang sound coming from speakers

only downside I lost ability to plug in external mic but inbuilt works ok rolleyes.gif
Mido
hi people
i want to patch AppleHDA for my audio codec "IDT 92HD87B1/3"
i don't have any thing for it except ubuntu dump for it and windows pinconfig

CODE
<00A71C20 00A71D10 00A71EA1 00A71F04 00B71C1F 00B71D10 00B71E21 00B71F04 00C71CF0 00C71D00 00C71E00 00C71F40 00D71C10 00D71D01 00D71E17 00D71F90 00F71CF2 00F71D00 00F71E00 00F71F40 01171C60 01171D01 01171EA3 01171FD5>



Click to view attachment
Click to view attachment

i use lion so i don't know what to make on layoutid.xml platform.xml info.plist


thanks smile.gif
pingus
Is someone who has patched AppleHda using codec id: IDT92HD75B2X5 ?

Cheers!
toleda
Lion HDMI audio for GTX 570 HD (EVGA)

P8H67i-Deluxe/GTX 570/i7-2600K/10.7.1/GE=Y/AppleHDA.kext_v2.1.x

Nvidia GT 570 HD Device_id:10de 0186 (as reported in System Profiler)
HDAU Device_id de10 0e09 (as reported in IOReg/HDAU)
IOHDACodecVendorID Device_id: de10 0018 (as reported in IOReg/HDAU

DSDT Edits:

CODE
            Device (PEGP)
            {
                Name (_ADR, 0x00010000)
                Name (_PRW, Package (0x02)
                {
                    0x09,
                    0x05
                })
                Device (GFX0)
                {
                    Name (_ADR, Zero)
                    Name (_SUN, One)
                    Method (_DSM, 4, NotSerialized)
                    {
                        Store (Package (0x06)
                            {
                                "@0,connector-type",
                                Buffer (0x04)
                                {
                                    0x00, 0x08, 0x00, 0x00
                                },

                                "@1,connector-type",
                                Buffer (0x04)
                                {
                                    0x00, 0x08, 0x00, 0x00
                                },

                                "hda-gfx",
                                Buffer (0x0A)
                                {
                                    "onboard-1"
                                }
                            }, Local0)
                        DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                        Return (Local0)
                    }
                }

                Device (HDAU)
                {
                    Name (_ADR, One)
                    Method (_DSM, 4, NotSerialized)
                    {
                        Store (Package (0x02)
                            {
                                "hda-gfx",
                                Buffer (0x0A)
                                {
                                    "onboard-1"
                                }
                            }, Local0)
                        DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                        Return (Local0)
                    }
                }
            }


Kext Edits:

a. NVDAGF1000Hal.kext/Contents/Info.plist
10de 0186 not present, editing required, GraphicsEnabler=Yes
TextEdit/add: 0x108610de&amp;0xffc0ffff to Info.plist/IOPCIPrimaryMatch

b. AppleHDA.kext/Contents/MacOS/AppleHDA binary
HexEdit/Find: 14 00 de 10 HexEdit/Replace:18 00 de 10 (4x)

c. AppleHDA.kext/Contents/Plugins/AppleHDAController.kext/Contents/MacOS/AppleHDAController binary
HexEdit/Find: de 10 ea 0b HexEdit/Replace: de 10 09 0e (4x)

Note: the GT 430 is supported natively in Lion; no kext editing required. DSDT edits are mandatory.
Zane
Hey bcc9,

Thanks for the script but i looked at the platform12.xml you provided and the device id of your card.

I thought you were supposed to use the Codec ID 287143542 instead of 287143541 for internal audio?

So why did you use 287143541 instead?

EDIT: Also i edited the layout12.xml with my respective device ID\'s in decimal which was

DevID: 287143432 (0x111d7608) IDT Audio

and

DevID: 268610049 (0x1002aa01) HDMI


I also patched the AppleHDA properly as your scripts says patched successfully and i used HexFiend to check if it was patched to 08761d11 and it was.

Now all i\'m left with is the Platforms.xml. I opened your Platforms.xml and after looking at it, i am not sure what to edit. I know that i have to add in NodeID and stuff but what is with the rest of the stuff? Where do i get the information from? Could you be more specific. I\'ll make a tutorial after i understand.

Previously you said

QUOTE
The existing instructions (such as in post #1) for constructing pathmaps and layouts are basically the same as before, you are just placing the resulting XML information in different files (now layoutXX.xml and Platforms.xml).
Your \"false == codecFound\" assertion failure suggests to me that you don\'t even have the codec being matched; I wonder if you edited your DSDT to use layout 12 for your HDEF node (inject layout-id with value 12)? You are of course free to use whatever number you wish; I used 12 as that matches post #1.

I personally don\'t have time to help people with custom pathmap/layout editing.


The existing instructions? I only see how the instructions describes how to get the correct pin configuration but it doesnt talk about adding it to anywhere except to AppleHDAController Info.plist and i can\'t find any relevant CodecID or ConfigData in the Platforms.xml. So if you have some spare time, could you explain?

I also figured that since we\'re both using IDT Audio, i would give your Platforms.xml a shot, but unfortunately i get this

CODE
Sep 16 03:21:10 localhost kernel[0]: Kext com.apple.driver.AppleHDAController might not load - kextd is currently unavailable.FakeSMC: opensource SMC device emulator by netkas (C) 2009
Sep 16 03:21:10 localhost kernel[0]: Kext com.apple.driver.AppleHDAController might not load - kextd is currently unavailable.
Sep 16 03:21:22 localhost kernel[0]: Sound assertion \"false == codecFound\" failed in AppleHDADriver at line 1449 goto handler
Sep 16 03:21:22 localhost kernel[0]: Sound assertion \"!result\" failed in AppleHDAPath at line 568 goto handler
Sep 16 03:21:22 localhost kernel[0]: Sound assertion \"!path->initPathFromXML ( path_aArrayOfNodeIdDictionaries, functionGroup )\" failed in AppleHDAPathSet at line 77 goto Exit
Sep 16 03:21:22 localhost kernel[0]: Sound assertion \"!pathSet->initPathSetFromXML ( pathSet_aArrayOfPathArrays, fHDAFunctionGroup )\" failed in AppleHDAEngine at line 1300 goto Exit
Sep 16 03:21:22 localhost kernel[0]: Sound assertion \"0 != buildPathSets ( pathGroupArray )\" failed in AppleHDAEngine at line 327 goto Exit
Sep 16 03:21:22 localhost kernel[0]: Sound assertion \"0 != result\" failed in AppleHDADriver at line 2134 goto Exit
Sep 16 03:21:22 localhost kernel[0]: Sound assertion \"0 != createAudioEngines ( fPathMap_aDriverInstance )\" failed in AppleHDADriver at line 207 goto Exit
Sep 16 03:21:22 localhost kernel[0]: Sound assertion \"false == me->completeStart ()\" failed in AppleHDADriver at line 996 goto Exit


Which is interesting because in the post you said above, you mentioned that it's like i didn't add the correct device ID's but i did. So yeah. Thanks for your help!

Also, do i still have to edit the AppleHDAHardwareConfigDriver.kext Info.plist ConfigData?

If anyone else can answer my above questions, i would be most thankful. smile.gif

I've also Included my edited AppleHDA, Codec verbs and my Decompiled DSDT.

EDIT 2: After Googling and reading and reading and reading. Finally i found a site which actually talks about something. I had to go and compare the 10.6.7 kext and 10.7.1 kext to understand. Maybe i missed it but i didn't see anyone mention that AppleHDAPlatformDriver.kext Info.plist was removed and was split into the layout xml's and that platform xmls. So now i'm trying to understand how to patch AppleHDAPlatformDrive.kext Info.plist so i can understand the platform xmls better.


EDIT 3: Now i understand how the values are obtained for the Platforms.xml however i want to ask How do you know which section is for Mic, Line In, etc? and why do you only edit one node?

EDIT 4: I looked at it even more and i noticed that all the nodes play a part. Should have known, but anyway now i know how the nodes are set-up. Can anyone tell me how do you know which node corresponds with which nodes? Like for example the Audio Output and Audio Mixer nodes. How do you know which Line Out to use or etc.


EDIT 5: I have read through everything and been to multiple forums even non english forums and i finally understand how everything works. Problem is, i cannot construct an AppleHDA. I keep getting errors

CODE
Sep 16 15:57:18 Zanes-MacBook-Pro kernel[0]: Sound assertion "!result" failed in AppleHDAPath at line 568 goto handler
Sep 16 15:57:18 Zanes-MacBook-Pro kernel[0]: Sound assertion "!path->initPathFromXML ( path_aArrayOfNodeIdDictionaries, functionGroup )" failed in AppleHDAPathSet at line 77 goto Exit
Sep 16 15:57:18 Zanes-MacBook-Pro kernel[0]: Sound assertion "!pathSet->initPathSetFromXML ( pathSet_aArrayOfPathArrays, fHDAFunctionGroup )" failed in AppleHDAEngine at line 1105 goto Exit
Sep 16 15:57:18 Zanes-MacBook-Pro kernel[0]: Sound assertion "0 != buildPathSets ( pathGroupArray )" failed in AppleHDAEngine at line 327 goto Exit
Sep 16 15:57:18 Zanes-MacBook-Pro kernel[0]: Sound assertion "0 != result" failed in AppleHDADriver at line 1999 goto Exit
Sep 16 15:57:18 Zanes-MacBook-Pro kernel[0]: Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in AppleHDADriver at line 204 goto Exit
Sep 16 15:57:18 Zanes-MacBook-Pro kernel[0]: Sound assertion "false == me->completeStart ()" failed in AppleHDADriver at line 861


I am very sure i patched it correctly. Anyone has any ideas about this?

@bcc9

Your patcher didn't work for my Codec ID apparently. I kept getting

CODE
Sep 16 02:51:28 Zanes-MacBook-Pro kernel[0]: Sound assertion "false == codecFound" failed in AppleHDADriver at line 1449 goto handler


i used HexFiend to patch 8b 19 d4 11 with my Codec ID and that error goes away. But the errors above still exists.

QUOTE
Is someone who has patched AppleHda using codec id: IDT92HD75B2X5 ?

Cheers!


I\'m working on it.

-Zane

Click to view attachment
Click to view attachment
Monkeys
EDIT - Sorry double post
Monkeys
I'm looking for some advice getting my conexant cx20585 working with the appleHDA for my Lenovo G560 laptop. I've got the internal speaker and headphones working perfectly, my problem now are the microphones.

I've fixed the verbs and added them to the configdata and added the correct nodes under pathmaps etc. I think I must be very close to having things working because when I load up Ableton Live, and record some sound, i do actually get some extremely quite sound coming through, and I know it's coming from the mic because when I tap on the mic area I can see the little green bars going up and down very slightly but its not really sound just sort of a very faint crackling that gets louder when I tap on the mic or yell into it..

It seems like there is no amplification of the mic signal or something, so only the very small signal is coming through. Also under audio preferences under the inputs tab there is no volume slider, it shows 'this device has no input controls'. So I think that has something to do with it, and i think there is a setting under the pathmaps that needs to be changed, but i have no idea what.

If anyone has heard or come across anything like this before and has any suggestions about what I can do to fix it I would greatly appreciate it! I've tried a bunch of different configurations with pathmaps but am at a bit of a loss as to where to go next.

Here's my linux dump and appleHDA if u want to take a look at them:

Click to view attachment

Zane
QUOTE (Monkeys @ Sep 18 2011, 04:39 PM) *
I'm looking for some advice getting my conexant cx20585 working with the appleHDA for my Lenovo G560 laptop. I've got the internal speaker and headphones working perfectly, my problem now are the microphones.

I've fixed the verbs and added them to the configdata and added the correct nodes under pathmaps etc. I think I must be very close to having things working because when I load up Ableton Live, and record some sound, i do actually get some extremely quite sound coming through, and I know it's coming from the mic because when I tap on the mic area I can see the little green bars going up and down very slightly but its not really sound just sort of a very faint crackling that gets louder when I tap on the mic or yell into it..

It seems like there is no amplification of the mic signal or something, so only the very small signal is coming through. Also under audio preferences under the inputs tab there is no volume slider, it shows 'this device has no input controls'. So I think that has something to do with it, and i think there is a setting under the pathmaps that needs to be changed, but i have no idea what.

If anyone has heard or come across anything like this before and has any suggestions about what I can do to fix it I would greatly appreciate it! I've tried a bunch of different configurations with pathmaps but am at a bit of a loss as to where to go next.

Here's my linux dump and appleHDA if u want to take a look at them:

Click to view attachment


I downloaded your file and took a look at it. If i'm not wrong, shouldn't the Boost Option be under the Microphone Node itself and not the Audio Mixer?

CODE
<key>Boost</key>
<integer>3</integer>


EDIT: Oh and also thank you very much. You seem like the only one to conform to standards. I got my IDT Audio working. wink.gif

EDIT 2: Doesn't work on 10.7.1

But anyone Looking for an AppleHDA kext for the IDT92HD75B2X5. Try the one i've attached below.

Click to view attachment
pingus
QUOTE (Zane @ Sep 20 2011, 01:45 AM) *
But anyone Looking for an AppleHDA kext for the IDT92HD75B2X5. Try the one i've attached below.

Click to view attachment


I have that codec ID IDT92HD75B2X5, for long time i was looking if someone has patched AppleHDA. I have tested your patched AppleHDA and i get a kernel panic, i attached the image with the kernel panic.

Click to view attachment

I am using Lion 10.7.1


Thank you.
fulminemizzega
Hi all.
I've an ASUS P8Z68-V PRO with ALC892. I found that the alc892 applehda patched kexts for lion are not working well with my motherboard: it's related to pin configuration. If you download this kext, http://www.kexts.com/view/1578-applehda_alc892_for_lion.html , you'll find that all the Audio Out (node 20-23) have been changed to Speaker (71e11). I think this has been done to have the headphone jack on front-panel working without the need to unplug the back line out. It looks like this solution works for almost all alc892, but I found some one with a P8Z68, and another one with my same motherboard having the same problem I had: sound freezes. After lots of trial-and-error I found that using Speaker instead of line out for node 20 (Green jack) creates freezes during audio playing, every 10 second, approximately. With this configuration, when I plug an headphone to the front-panel, OS X recognizes that I've plugged them in, and switches automatically to them. Listening to headphone has no freezes. Then, putting osx to sleep and waking up makes this behavior change: I've no freezes in back line out, but I've them on front-panel jack. I still don't understand why this happens, but anyway, I found a possible solution: set node 20-23 to line out. With this configuration, I've no freezes in both front and rear jacks, but if I want to use the front-panel HP out I need to unplug the back green line out. Clearly, I've had to add in layout892.xml a Line out. So, these are the codec verbs:

Jack Color Description Node PinDefault ReModified Verbs
--------------------------------------------------------------------------------------------------------
ATAPI Unknown SPDIF Out at Int ATAPI 17 0x11 0x99430140 01171c40 01171d00 01171e43 01171f19 *corr. from 90
1/8 Green Line Out at Ext Rear 20 0x14 0x01014010 01471c10 01471d40 01471e01 01471f01
1/8 Black Line Out at Ext Rear 21 0x15 0x01011012 01571c70 01571d10 01571e01 01571f01
1/8 Orange Line Out at Ext Rear 22 0x16 0x01016011 01671c80 01671d60 01671e01 01671f01
1/8 Grey Line Out at Ext Rear 23 0x17 0x01012014 01771c90 01771d20 01771e01 01771f01
1/8 Pink Mic**at Ext Rear 24 0x18 0x27367504 01871c50 01871d90 01871e81 01871f01 *trasf. to line in
1/8 Pink Mic at Ext Front 25 0x19 0x44145760 01971c60 01971d90 01971ea1 01971f82 *corr. from 01
1/8 Blue Line In at Ext Rear 26 0x1a 0x0181305f 01a71ca0 01a71d30 01a71e81 01a71f01
1/8 Green HP Out at Ext Front 27 0x1b 0x35736608 01b71c20 01b71d40 01b71e21 01b71f02 *corr. from 01
Optical Orange SPDIF Out at Ext Rear 30 0x1e 0x01456130 01e71c30 01e71d60 01e71e45 01e71f01
--------------------------------------------------------------------------------------------------------
: modified f sector, removed NODE 29, node 24 transformed to back line in from back mic, node 25 transformed to internal

These are the codec verbs from the kext I linked:

Jack Color Description Node Verbs
ATAPI Unkn SPDIF Out at ATAPI 17 0x11 11171C90 11171D01 11171E43 11171F09
1/8" Green Speaker? at Ext Rear 20 0x14 11471C00 11471D40 11471E11 11471F01
1/8" Black Speaker? at Ext Rear 21 0x15 11571C10 11571D10 11571E11 11571F01
1/8" Orange Speaker? at Ext Rear 22 0x16 11671C20 11671D60 11671E11 11671F01
1/8" Grey Speaker? at Ext Rear 23 0x17 11771C30 11771D20 11771E11 11771F01
1/8" Pink? Line in at Ext Rear 24 0x18 11871C40 11871D90 11871E81 11871F01
1/8" Pink BuiltIn Mic In Front� 25 0x19 11971C50 11971D90 11971EA1 11971F92
1/8" Blue Line in at Ext Rear 26 0x1A 11A71C60 11A71D30 11A71E81 11A71F01
1/8" Green HP Out at Ext Front 27 0x1B 11B71C70 11B71D40 11B71E21 11B71F02
Optical Grey SPDIF Out at Ext Rear 30 0x1E 11E71C80 11E71D21 11E71E45 11E71F01

What should I do? Anyone has an idea about why there are these freezes? Before this findings I had already asked here: www.insanelymac.com/forum/index.php?showtopic=258121
I'm sorry I'm not able to give you the link to the right post, I'm not able to reach insanelymac.com... My posts are the latest, from tommy6x.

PS Attached codec verbs txts for better reading...
PPS Does anyone know where a good guide about layout*.xml and platform.xml editing is?
Click to view attachment Click to view attachment
toleda
QUOTE (fulminemizzega @ Sep 27 2011, 01:52 PM) *
Hi all.
I've an ASUS P8Z68-V PRO with ALC892. I found that the alc892 applehda patched kexts for lion are not working well with my motherboard: it's related to pin configuration.

Attached is a kext I've been using on my P8H67-I and H55N-USB3 motherboards. I have not had the dropout problem you describe. It does not do encoded digital audio on spdif but stereo works fine. Line outs are orange and black. Front and rear work with switching. Pink front (mic in) shows as line in (kext code that can't be changed). ATIPI is not available. I have a version that provides orange and grey line outs and a third version with orange, grey and black but no spdif. I'm interested in your feedback.

Credit: bcc9 hda

Click to view attachment
fulminemizzega
QUOTE (toleda @ Sep 29 2011, 08:15 AM) *
Attached is a kext I've been using on my P8H67-I and H55N-USB3 motherboards. I have not had the dropout problem you describe. It does not do encoded digital audio on spdif but stereo works fine. Line outs are orange and black. Front and rear work with switching. Pink front (mic in) shows as line in (kext code that can't be changed). ATIPI is not available. I have a version that provides orange and grey line outs and a third version with orange, grey and black but no spdif. I'm interested in your feedback.

Credit: bcc9 hda

Click to view attachment


I've tested your kext, and it works as I described before: I've freezes when I use the rear green output, while the HP out is ok. After sleep, rear works, hp has freezes. When I set the rear line out to Speaker, I get this behavior. What changes if in your codec verbs CAd is 2, while in mine is 0? Also I found that you have a different PathMaps, other than removed ATAPI: for line in I've used 9-34-26, while you're using the 8-35-26, with the same first two nodes equal to mic pathmaps...
How should I choose the right pathmap? There are some thing I don't understand in the codec graph: for example I have node 24 (mic in) that goes to 35 and 34, but it's attached to a blue line to node 35... what does this mean? Also, from node 35 to node 8 there's a grey termination, from 34 to 9 it's blue... Do these colors have to be considered for pathmaps?
I think a solution would be telling OSX that the rear green is a line out, not a speaker, but he has to give priority to front panel HP out jack detection... is it possible something similar with pathmaps, or in layout.xml?
I've attached my AppleHDA and codec graph.
Click to view attachment
pingus
QUOTE (Zane @ Sep 20 2011, 01:45 AM) *
But anyone Looking for an AppleHDA kext for the IDT92HD75B2X5. Try the one i've attached below.

Click to view attachment



Thank you very much Zane for the hard work. wink.gif The sound it's working rolleyes.gif but there is two problems (at least at me):

1) too many kernel panics (i attached the photo up) - 8/10 are kerenl panic sad.gif
2) The microphone doesn't work. (In System Preferences --> Sound --> Input is says Internal MIcrophone - Buit-in)


When plugin the headphones i hear a strange sound (only when plugin the headphones) but it's working well. The sound it's working well, i didn't think this sound card will ever work on OS X mellow.gif


Is your microphone working Zane? Or only mine it's not working. How could i get rid of those kernel panics? blink.gif


Thanks again Zane. wink.gif
manmal
hi guyz! Is it possible to patch applehda for this codec (alc269vb) for lion(1071,1072) in your opinion?

Codec: Realtek ALC269VB
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x10ec0269
Subsystem Id: 0x10431063

May you help me to do it please?

i also have pinout config (from vista/7 already swapped) and dump from linux (in attachment).
Which dsdt modification should i do ?

thanks!
mal

Click to view attachment
Click to view attachment
Ajhu
I don't understand what to do in this step


QUOTE
To get your codec dump use the shipped voodoohdahelper tool with -dump flag (./voodoohdahelper -dump)


And seriously where can i get voodoohdahelper tool? i googled it and couldn't find it anywhere!
Gringo Vermelho
Work on your Google skillz, I found it in 20 seconds.

Click to view attachment
mirv
I'm so close in getting this working in Lion for ALC882 . However, the kexts have changed in Lion therefore this guide doesn't quite work anymore.. I'm not sure if its that ConfigData param but it seems though the false == codecFound refers to its not finding the codec for the card
mirv
also am i missing something or does the guide not say what you need the dump from voodoohelper for?
Noiprox
Hello,

I have been working on this for several weeks now, attempting to get my ALC883 audio working in Lion (Specifically it is onboard audio in my LG R500 laptop) but it seems to be a little harder to get working than the standard ALC883. I have attempted all versions of VoodooHDA but they all give me kernel panics. In Snow Leo they also gave me panics or mic feedback but I was able to use a modified AppleHDA in Snow Leo to get it working. I have used all available modifications, rollbacks, bin patching etc I can find but still no luck.

I will attach a copy of my original DSDT pulled from the bios that does contain a simple HDEF as well as one with HDEF removed and some with pinconfigs I have attempted.

The ones with pinconfigs result in correct information in the System Information of Lion but nothing I do can resolve the "No Output Devices Found" in the sound options.

I'll also attach the codec dump and verbs from linux and IOREG output from the working Snow Leo and non-working Lion and also the working Snow Leo AppleHDA/HDEnabler and the non-working Lion AppleHDA.

If anyone can point me in the right direction of anything else to try it would be appreciated as at this point I seem to be out of luck.

Thank you,

Click to view attachment
terramir
QUOTE (THe KiNG @ Dec 30 2010, 05:42 AM) *
The guide is incomplete with a purpose, to make you think.
It cover the most important stuff, rest is a child play once you understand...
I know most want to be serve with A-Z guide, but if all would be like that, then no new hacker will born and only few people would be interested to develop/find/hack, rest would wait to be served.

Yes you tried and failed, I did the same first time, and 599 time, but on 600 try I got it working and finally understand.
You don't need to try that much, as I said most of the part is covered, once you get the verbs part finished, looking on codecgraph will be easy to get the rest of the part.

@ codecowboy I dunno how to prepare food, that dosen't mean you will see me on food forums asking for someone to prepare my food, if you wanna eat proper stuff you must learn how to do it, or order prepared food (read apple).

And I do encourage you to use it. smile.gif

Good luck!

@King Really ! Even if this guide was complete it would still teach and get them to learn the problem in the osx community as large you not the only guilty one, there are three kinds of info in the community which hinder the progress of the osx community at large which is sad, because I think we could have a lot more systems up and running perfectly if this was not the case
#1 The info is incomplete and assuming that others reading have knowledge that actually can't even be found googling for 10 days or when it's available it requires that you read stuff that is 400 pages long (think intel apci spec for dsdt editing)
#2 the info stops before it is finished and then you have to go hunting for the rest and when you can't find it you have to beg people to finish the work for you which really bites. (this is what you did and well it's not cool) that people then have to download other peoples dsdt's and audio dumps and then reverse engineer patches from other people in order to fix this properly on codecs that no one has supported yet.
#3 The whole tutorial consists of do this this and this and use these files you download here and there with no explanation which also bites, because nothing is learned this way.
I agree with you that spoon feeding is not the point but there is insufficient base knowledge available in order to complete what you have had people start, unless you find people that posted their audio dumps and then download patches that other people did and then check where they modify things but the problem is that this way you could mess things up so seriously that you could fry 100's of dollars worth of hardware.
and on another note voodooHDA is not a better solution, matter of fact it is a very bad solution it causes conflicts and kernel panics galore, it is probably the only solution for many folks because no-one has bothered to create a complete tutorial but it causes more problems and loses us real talent in the long run.
People give up on the scene because they cannot learn the basics required I am a little more persistent and I will learn this if it's the last thing I do, but when I finally have I will put the info in one place so people can actually learn this stuff. What you have given is a frustration tool that loses us more then we as a community at large gain.
We gained tmongol aka VCH888 through yours and other tutorials but we probably lost 100's of other talents and 1000's of contributors because they just couldn't make it work stably and gave up sad.gif
This is my opinion if you want to ban me for it from this forum so be it but it's called freedom of speech
terramir
PS: I lost a complete system because I had to use someone else's patched Kext and something went wrong if this tutorial was complete I would have done it the right way and not lost that 160 dollar ion motherboard. worked great for about three weeks then the whole thing fry'ed during one video playback and voodooHDA did not work to do anything but stuttering.
sanky
QUOTE (Monkeys @ Sep 18 2011, 08:39 AM) *
I'm looking for some advice getting my conexant cx20585 working with the appleHDA for my Lenovo G560 laptop. I've got the internal speaker and headphones working perfectly, my problem now are the microphones.

I've fixed the verbs and added them to the configdata and added the correct nodes under pathmaps etc. I think I must be very close to having things working because when I load up Ableton Live, and record some sound, i do actually get some extremely quite sound coming through, and I know it's coming from the mic because when I tap on the mic area I can see the little green bars going up and down very slightly but its not really sound just sort of a very faint crackling that gets louder when I tap on the mic or yell into it..

It seems like there is no amplification of the mic signal or something, so only the very small signal is coming through. Also under audio preferences under the inputs tab there is no volume slider, it shows 'this device has no input controls'. So I think that has something to do with it, and i think there is a setting under the pathmaps that needs to be changed, but i have no idea what.

If anyone has heard or come across anything like this before and has any suggestions about what I can do to fix it I would greatly appreciate it! I've tried a bunch of different configurations with pathmaps but am at a bit of a loss as to where to go next.

Here's my linux dump and appleHDA if u want to take a look at them:

Click to view attachment


Hi i also have a Lenovo G460 with Conexant CX20585 running 10.7.2 and have managed to get the audio working with voodoohda 2.7.3. Everything works- mic, speakers, headphone jack and mic jack and also auto switching but i get random KP's due to voodooHDA. I have corrected the pin configurations also. can u please attach again your applehda. Thanks
xtraa
QUOTE (terramir @ Nov 27 2011, 10:21 PM) *
@King Really !

...Full quote...

stuttering


Full ack. You totally nailed it with a perfect line of reasoning. smile.gif

xtraa
Ash
I've Patched AppleHDA (10.7.2) from information in existing legacy kext (Snow Leopard). This is for ALC269 dev id [10ec:0269] but shows up as [8086:1c20] 8086:1c20 Name: 6 Series/C200 Series Chipset Family High Definition Audio Controller. HDMI shows up as: - Codec: Intel CougarPoint HDMI, Address: 3, AFG Function Id: 0x1 (unsol 0), Vendor Id: 0x80862805.

With the new patched kext I have no sound and need help debugging. i've included the kext, platforms.xml, layout269.xml, info.plist in AppleHDAHardwareConfig.kext also I've included all codec dumps from my laptop unfortunately my codec does not work well with the verbit script and I find it hard to manipulate the layouts and platforms as my internal/external mic does not work please provide feedback.

Just for those who are not too sure about patching AppleHDA in Lion: -

SL kext v1.8.0 onwards (roughly) all info for layouts and platforms that used to live in AppleHDA.kext/Contents/Plugins/AppleHDAPlatformDriver.kext/info.plist. Now exists in AppleHDA.kext/Contents/Resources/platforms.xml and layoutXXX.xml substitute XXX with layout id.

So in brief you need to have correct: -
1. layout12.xml (12 is a commonly used in mods)
2. platform.xml
3. info.plist in AppleHDAHardwareConfig.kext needs to have correct codec id (in decimal) and layout id.
4. Binpatch AppleHDA binary to have your PCI device id (in hex) e.g. 85 08 EC 10 for ALC885 [10ec:0885] replace 85 08 EC 10 with your dev id in hex.

Kind Regards,
Ash

Click to view attachment

EDIT:- if we can get this working, HDMI Audio should follow as I have included the relavent DSDT edits and HDMI shows up in system profiler in audio (built-in)
acero
hi,
a little patch for alc888S vc laptop with 10.6.8 applehda,it s not really needed as mine power fine after wake from sleep but i like it to power on boot.

i changed a jump at offset 1278A7 from 7435 to 7535 in hda binary.
it s a function that set power state ,search immediate value ,705(used to set power state),you find a main function : (ZN12AppleHDANode13setPowerStateEmb)
,there 6 results for search.
i tried already to tweak 885 power state with no effect,this patch was my last try and work so far....sound at startup.

if someone have a better idea to patch and i ll be happy to read it.

i do not refund your dead audio if you kill it. huh.gif
bye.
Specter
Hello everybody. I have a MSI X58 Pro-E and it has the ALC889 codec, but I have used lots of patched AppleHDA for ALC889 and I still can't hear anything, although the IORegistry information doesn't show any problems.

Can anyone help me to patch it and make it works?

Thanks in advance.

PD: I'm using the last stable version of Lion, 10.7.3.
Specter
QUOTE (Specter @ Feb 14 2012, 11:32 PM) *
Hello everybody. I have a MSI X58 Pro-E and it has the ALC889 codec, but I have used lots of patched AppleHDA for ALC889 and I still can't hear anything, although the IORegistry information doesn't show any problems.

Can anyone help me to patch it and make it works?

Thanks in advance.

PD: I'm using the last stable version of Lion, 10.7.3.


Could anybody help me, please??
maleorderbride
I am trying to get ALC898 working.

I have learned quite a bit with King's guide, MasterChief's, and some comments from Kizwan. However, I have not gotten AppleHDA to work with my ALC898.

I have system profiler and system preferences showing up as I desire for inputs/outputs, but no audio makes it out.

I have edited the Info.plist with my fixed verbs, appleHDA binary for my deviceID (0x10ec0899), edited AppleHDAController for my deviceID.

Added a Layout.xml and path map in Platforms.xml.

The only node I am trying to get working right now is my green rear 2.1 jack (but everything else is laid out as well).

Green jack is:
0x14 with connections at 0x0c*. 20 ->12->2 in path map, but still no audio. Results are the same with both of the below attempts.

Files:

Current Attempt: AppleHDA, assertion errors, IOreg
http://dl.dropbox.com/u/6316213/ALC898_Toleda2_Results.zip

Original Attempt:
AppleHDA with all edits, IOreg, CodecDump, CodecDump.svg: http://dl.dropbox.com/u/6316213/Attempt_9.zip


This seems to be the specific sound assertion that is related to the problem:

Mar 1 15:24:18 Cyras-Mac-Pro kernel[0]: Sound assertion "false == streamInfo->IsActive" failed in AppleHDAController at line 5729 goto Exit
Mar 1 15:24:18 Cyras-Mac-Pro kernel[0]: Sound assertion "false == streamInfo->IsActive" failed in AppleHDAController at line 5813 goto Exit
Mar 1 15:24:18 Cyras-Mac-Pro kernel[0]: Sound assertion "0 != fController->getAudioStreamLinkPositionInBuffer ( this, &position )" failed in IOHDAStream at line 401 goto handler

A few hits in google, but nothing that seems promising.

Is anyone familiar with this assertion or have any ideas I could try?
tmacyunn1
@manmal
I have the same audio card with you, but i check your out which has different codec data with me. I have get my ALC269 at intel 6 serial chip audio card work with internal speaker, internal microphone, headphone, work out(external microphone disabled so as HDMI audio doesn't work too.). And it works only with 10.6.2 version AppleHDA, i try to use others doesn't get good luck.
Also i think this card is so weird, for example, I must boot Mac OS X first can get internal speaker and headphone auto switch work, or only can internal speaker work, there is one more thing that the 10.6.2 version driver doesn't work with the kernel flags as UseKernelCache=No, that is to say, if you use the kernel parameter, you will get auto restart, it is so annoyed about it.
I see you codec, i think the right way of patching is:
CODE
Output:
0x02>0x0c>0x21 //HP OUT
0x03>0x0d>0x1B  //Internal Speaker

Input
0x19>0x23>0x08 //Internal Mic (change to LineIn or disable)
0x18>0x22>0x09 //External Mic

The Pin default data fix can be done by reading the King's topic ,also i will upload mine, too.
Last, i recommend that you use the 10.6.2 version AppleHDA to do it so, if you succeed with it ,then you can try 10.6.x or 10.7.x version.

@Ash
I see your codec graph and the path map, you got wrong link in the Mic combine, the Node 25 is a [N/A] device, so i suggest you try this below :
CODE
Output (decimal):
2>12>20     //Internal speaker
3>13>33     // HP out

Input:
9>34>24    // External Mic (change to LineIn or disable)
8>35>27    // Internal Mic


Here is my work.
Click to view attachment
Click to view attachment
Click to view attachment
tmacyunn1
Sorry the screenshot is large than limitation, upload again. ALC269
Marchrius
Hi all! smile.gif

My name is Matteo (aka Marchrius)

I have an ALC888 on an Acer Aspire 6930G.

I have an AppleHDA.kext patched (2.1.3f7) for my card.

The PinConfig, form Windows is:
[code][/code]

The Ubuntu 11.10 dump file is:
Click to view attachment

The CodecID in DSDT is 888 (0x78 0x03 0x00 0x00)

In Preferences>Audio I have:
Click to view attachment
Click to view attachment

The audio is good. The Speaker and the Headphone works (no switch, I must change the preference in Sudio settings). The Line In (Blue) and Internal Mic don't works. (The Mic in (Pink) works).

How I can resolve this problem? :/
Ash
QUOTE (tmacyunn1 @ Mar 3 2012, 11:38 AM) *
@manmal
I have the same audio card with you, but i check your out which has different codec data with me. I have get my ALC269 at intel 6 serial chip audio card work with internal speaker, internal microphone, headphone, work out(external microphone disabled so as HDMI audio doesn't work too.). And it works only with 10.6.2 version AppleHDA, i try to use others doesn't get good luck.
Also i think this card is so weird, for example, I must boot Mac OS X first can get internal speaker and headphone auto switch work, or only can internal speaker work, there is one more thing that the 10.6.2 version driver doesn't work with the kernel flags as UseKernelCache=No, that is to say, if you use the kernel parameter, you will get auto restart, it is so annoyed about it.
I see you codec, i think the right way of patching is:
CODE
Output:
0x02>0x0c>0x21 //HP OUT
0x03>0x0d>0x1B  //Internal Speaker

Input
0x19>0x23>0x08 //Internal Mic (change to LineIn or disable)
0x18>0x22>0x09 //External Mic

The Pin default data fix can be done by reading the King's topic ,also i will upload mine, too.
Last, i recommend that you use the 10.6.2 version AppleHDA to do it so, if you succeed with it ,then you can try 10.6.x or 10.7.x version.

@Ash
I see your codec graph and the path map, you got wrong link in the Mic combine, the Node 25 is a [N/A] device, so i suggest you try this below :
CODE
Output (decimal):
2>12>20     //Internal speaker
3>13>33     // HP out

Input:
9>34>24    // External Mic (change to LineIn or disable)
8>35>27    // Internal Mic


Here is my work.
Click to view attachment
Click to view attachment
Click to view attachment

@tmacyunn1

Thanks for the great info.

Spot on there: -

QUOTE
CODE
Output (decimal):
2>12>20     //Internal speaker
3>13>33     // HP out

Input:
9>34>24    // External Mic (change to LineIn or disable)
8>35>27    // Internal Mic


I cannot get Internal mic to work I tried boost and enable amp but no luck. in legacy kext external mic/line-in works.

Now I am able to modify pathmaps and get them Working
I can confirm using lion 10.7.3 kext Binpatch worked, HDMI audio works, Internal Speakers and Headphones work.
just no input. really not sure whats going on need help sorting out pathmaps for input especially internal mic.

Here's my kext for ALC271X for 10.7.3: - Click to view attachment

inside are verbs from windows, linux dumps and voodoohda dump
manmal
@tmacyun , @ash

Thanks a lot tmacyun!!
I have it working (but no input too) but i have a really annoying problem : after resume from sleep audio disappears and i don't know how to reactivate it.
Any suggestion how to fix it to have audio working after resume-from-sleep?
thanks!
Mal
DineshMG
QUOTE (Ash @ Apr 3 2012, 02:35 AM) *
@tmacyunn1

Thanks for the great info.

Spot on there: -



I cannot get Internal mic to work I tried boost and enable amp but no luck. in legacy kext external mic/line-in works.

Now I am able to modify pathmaps and get them Working
I can confirm using lion 10.7.3 kext Binpatch worked, HDMI audio works, Internal Speakers and Headphones work.
just no input. really not sure whats going on need help sorting out pathmaps for input especially internal mic.

Here's my kext for ALC271X for 10.7.3: - Click to view attachment

inside are verbs from windows, linux dumps and voodoohda dump


Hi,

I have made the inputs as well working for ALC269 but I have used your patched AppleHDA bin inside MacOS folder. So, if I try to
patch kextmyself then its not working at all. So, I would like to know how did you bin patched AppleHDA bin? Can you provide
details about what you have done to the AppleHDA bin and which version is it? If you provide this then I can help you to fix
your codec as well since we have very well similarities in pin configs. Looking forward for your information on bin patch of
your attached AppleHDA bin.

Ash
QUOTE (DineshMG @ Apr 25 2012, 04:15 PM) *
Hi,

I have made the inputs as well working for ALC269 but I have used your patched AppleHDA bin inside MacOS folder. So, if I try to
patch kextmyself then its not working at all. So, I would like to know how did you bin patched AppleHDA bin? Can you provide
details about what you have done to the AppleHDA bin and which version is it? If you provide this then I can help you to fix
your codec as well since we have very well similarities in pin configs. Looking forward for your information on bin patch of
your attached AppleHDA bin.


For those struggling with ALC269 or similar,

@DineshMG

Can you upload the full kext or the platforms.xml and layouts at least, would be helpful so I can do some debugging/testing for assertion errors and test for correct pins.

for Binary Patching (blame apple for hard coding these onto the codec and not doing what ms did for UAA HDA codecs:-

Get a hex editor like Hex Fiend or HexEdit easily found at macupdate google it

Open up AppleHDA binary and use the Find and Replace function
CODE
Replace

85 08 EC 10

with

69 02 EC 10

Use Replace all to change all occurances to match your Device ID.

Using HDA Wizard

Link: -
http://www.insanelymac.com/forum/index.php?showtopic=266531
This tool is really good for updates lets say you install 10.7.4 and you need to patch new kext. You will need your existing info.plist from AppleHDAHardwareConfig.kext your layoutXXX.xml and Platforms.xml

Then tick binpatch and choose custom and paste the text below
CODE
's|\x85\x08\xec\x10|\x69\x02\xec\x10|g'

Note binpatch works best on a vanilla or untouched binary. if you use an already patched binary then you need to change
CODE
\x85\x08\xec\x10 e.g. to
\x89\x08\xec\x10 (binary was already patched for e.g. ALC889)
to the reflect changes


Using Terminal, the classic way is to use the following command: -
CODE
sudo perl -pi -e 's|\x85\x08\xec\x10|\x69\x02\xec\x10|g' /System/Library/Extensions/AppleHDA.kext/Contents/MacOS/AppleHDA


Cheers,
Ash
DineshMG
QUOTE (Ash @ Apr 26 2012, 12:47 AM) *
For those struggling with ALC269 or similar,

@DineshMG

Can you upload the full kext or the platforms.xml and layouts at least, would be helpful so I can do some debugging/testing for assertion errors and test for correct pins.

for Binary Patching (blame apple for hard coding these onto the codec and not doing what ms did for UAA HDA codecs:-

Get a hex editor like Hex Fiend or HexEdit easily found at macupdate google it

Open up AppleHDA binary and use the Find and Replace function
CODE
Replace

85 08 EC 10

with

69 02 EC 10

Use Replace all to change all occurances to match your Device ID.

Using HDA Wizard

Link: -
http://www.insanelymac.com/forum/index.php?showtopic=266531
This tool is really good for updates lets say you install 10.7.4 and you need to patch new kext. You will need your existing info.plist from AppleHDAHardwareConfig.kext your layoutXXX.xml and Platforms.xml

Then tick binpatch and choose custom and paste the text below
CODE
's|\x85\x08\xec\x10|\x69\x02\xec\x10|g'

Note binpatch works best on a vanilla or untouched binary. if you use an already patched binary then you need to change
CODE
\x85\x08\xec\x10 e.g. to
\x89\x08\xec\x10 (binary was already patched for e.g. ALC889)
to the reflect changes


Using Terminal, the classic way is to use the following command: -
CODE
sudo perl -pi -e 's|\x85\x08\xec\x10|\x69\x02\xec\x10|g' /System/Library/Extensions/AppleHDA.kext/Contents/MacOS/AppleHDA


Cheers,
Ash


Hi ash,

Thanks for your reply and regarding this bin patch I did this like you said above but it did not work however your bin patched AppleHDA binary is working. So, I don't know why its not working the bin patch like above on an original kext for me?

If you could can you patch the kext to the this linked oneAppleHDA ? So, I could know what I'm doing wrong? please do this one help.

And I will upload my kext and all other layouts etc., once we are done with the above patch since I'm doing some experiments on these right now.
And also I have a problem with AppleHDA, which is the speaker audio not working after sleep, Any ideas to fix this?
Ash
QUOTE (DineshMG @ Apr 26 2012, 05:56 AM) *
Hi ash,

Thanks for your reply and regarding this bin patch I did this like you said above but it did not work however your bin patched AppleHDA binary is working. So, I don't know why its not working the bin patch like above on an original kext for me?

If you could can you patch the kext to the this linked oneAppleHDA ? So, I could know what I'm doing wrong? please do this one help.

And I will upload my kext and all other layouts etc., once we are done with the above patch since I'm doing some experiments on these right now.
And also I have a problem with AppleHDA, which is the speaker audio not working after sleep, Any ideas to fix this?


What SMBIOS are you using? Have you tried other SMBIOS and investigate effects?

Possible SMBIOS macbookpro8,2 macbookpro8,1 macmini5,1

Whats the laptop make and model?
DineshMG
QUOTE (Ash @ Apr 26 2012, 03:52 PM) *
What SMBIOS are you using? Have you tried other SMBIOS and investigate effects?

Possible SMBIOS macbookpro8,2 macbookpro8,1 macmini5,1

Whats the laptop make and model?



I'm using smbios Macbookpro8,2 and my laptop is Asus K53SC, I have compared your patched bin with 10.7.3 and 10.7.2 bin and I found that

your patched bin is from 10.7.2 not 10.7.3,so could you please upload the untouched version of your previous patched kexr?


And as I promised here is my kext working with all except sound not coming from speakers after sleep.
ALC269 :AppleHDA

please suggest something for the sleep problem of sound.



Thanks
Ash
QUOTE (DineshMG @ Apr 27 2012, 10:17 AM) *
I'm using smbios Macbookpro8,2 and my laptop is Asus K53SC, I have compared your patched bin with 10.7.3 and 10.7.2 bin and I found that

your patched bin is from 10.7.2 not 10.7.3,so could you please upload the untouched version of your previous patched kexr?


And as I promised here is my kext working with all except sound not coming from speakers after sleep.
ALC269 :AppleHDA

please suggest something for the sleep problem of sound.


Thanks


I had a look at the AppleHDA and found something was wrong with the patching

here is the revised patch
CODE
cd /YOURFOLDER/AppleHDA.kext/Contents/MacOS

sudo perl -pi -e 's|\x85\x08\xec\x10|\x69\x02\xec\x10|g' AppleHDA

followed by : -
sudo perl -pi -e 's|\xff\x87\xec\x1a|\x69\x02\xec\x10|g' AppleHDA
sudo perl -pi -e 's|\x74\x19\xad\x15|\x92\x08\xec\x10|g' AppleHDA

sudo perl -pi -e 's|\x0f\x8f\x47\x02\x00\x00|\x0f\x84\xad\x01\x00\x00|g' AppleHDA
sudo perl -pi -e 's|\x0f\x8f\xf1\x03\x00\x00|\x0f\x84\xa1\x01\x00\x00|g' AppleHDA

sudo perl -pi -e 's|\x0f\x8f\x2e\x02\x00\x00|\x0f\x84\xad\x01\x00\x00|g' AppleHDA
sudo perl -pi -e 's|\x0f\x8f\xa6\x03\x00\x00|\x0f\x84\xa1\x01\x00\x00|g' AppleHDA

sudo perl -pi -e 's|\x83\x19\xd4\x11|\x00\x00\x00\x00|g' AppleHDA
sudo perl -pi -e 's|\x84\x19\xd4\x11|\x69\x02\xec\x10|g' AppleHDA

If you apply correct patch for alc892 this code snippet allows you to get two codecs working in 1 kext.

credits RevoGirl

As requested: -

link: - AppleHDA Vanilla Binpatch only

Cheers,
DineshMG
QUOTE (Ash @ Apr 28 2012, 01:31 PM) *
I had a look at the AppleHDA and found something was wrong with the patching

here is the revised patch
CODE
cd /YOURFOLDER/AppleHDA.kext/Contents/MacOS

sudo perl -pi -e 's|\x85\x08\xec\x10|\x69\x02\xec\x10|g' AppleHDA

followed by : -
sudo perl -pi -e 's|\xff\x87\xec\x1a|\x69\x02\xec\x10|g' AppleHDA
sudo perl -pi -e 's|\x74\x19\xad\x15|\x92\x08\xec\x10|g' AppleHDA

sudo perl -pi -e 's|\x0f\x8f\x47\x02\x00\x00|\x0f\x84\xad\x01\x00\x00|g' AppleHDA
sudo perl -pi -e 's|\x0f\x8f\xf1\x03\x00\x00|\x0f\x84\xa1\x01\x00\x00|g' AppleHDA

sudo perl -pi -e 's|\x0f\x8f\x2e\x02\x00\x00|\x0f\x84\xad\x01\x00\x00|g' AppleHDA
sudo perl -pi -e 's|\x0f\x8f\xa6\x03\x00\x00|\x0f\x84\xa1\x01\x00\x00|g' AppleHDA

sudo perl -pi -e 's|\x83\x19\xd4\x11|\x00\x00\x00\x00|g' AppleHDA
sudo perl -pi -e 's|\x84\x19\xd4\x11|\x69\x02\xec\x10|g' AppleHDA

If you apply correct patch for alc892 this code snippet allows you to get two codecs working in 1 kext.

credits RevoGirl

As requested: -

link: - AppleHDA Vanilla Binpatch only

Cheers,


Thanks ash for your revised patch but I already figured out this using hex fiend. And I would like to ask you

about the sound not coming after sleep issue, do have this problem? do you know how to fix this?

Ash
I have had many users reporting this problem on multiple forums and need everybodys help in sorting it out

some say it's their DSDT that is causing this, others think the kext is bad. There's a possibility the way OS X handles power management ALC885 might be a reason not sure about the cause, It's propbably best to consult a developer who has the laptop with Realtek ALC269. My chip is branded as ALC271X but uses same device id 10EC 0269.

I do not have this issue. Only issue I have is no mic internal or external just doesn't get detected might be a GPIO problem i'm not sure need assistance

@DineshMG - if you post guides on other forums please give credits to the original developers that help to patch AppleHDA like TheKing, toleda, Tmacyunn1, RevoGirl and other who's names I have missed please give me a should a shout, apologies if I have missed you out.

I can confirm after sleep jack detection stops working, I believe this is related
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.