Riley Freeman Posted February 21, 2012 Share Posted February 21, 2012 This has been driving me nuts since moving from 10.6.8. I thought I had my layout, platform and applehardwareconfigdriver files perfect and would be able to use them to patch AppleHDA in the future. But they refuse to work in any of the AppleHDA kexts since 10.6.8. I can't see anything wrong with them, but they just do not work (sound assertions in kernel log and no devices). I have to rollback to the 10.6.8 kext to get audio and I'd much rather patch the current kext. Here's the old kext that I'm using and I've attached just the files to this post. Can someone PLEASE look through these and tell me WTF is going on. It's not the end of the world as I can get audio by rollback, but I want to know why these are not working. 10.6.8.zip Link to comment Share on other sites More sharing options...
Riley Freeman Posted July 12, 2012 Author Share Posted July 12, 2012 I found out the problem. Binpatching out ALC885 no longer works. I needed to use ALC262 instead. Link to comment Share on other sites More sharing options...
Rampage Dev Posted July 16, 2012 Share Posted July 16, 2012 Can you upload the kext and DSDT patch you used in Lion for ALC883. Thanks. Link to comment Share on other sites More sharing options...
Riley Freeman Posted July 17, 2012 Author Share Posted July 17, 2012 I'm on Mountain Lion now but you can patch your Lion kext easily enough. Just use the plist and xml files I've linked above and binpatch your Lion kext using the following command: sudo perl -pi -e 's|\x62\x02\xec\x10|\x83\x08\xec\x10|g' /System/Library/Extensions/AppleHDA.kext/Contents/MacOS/AppleHDA This is the DSDT patch I'm using: Method (_DSM, 4, NotSerialized) { Store (Package (0x04) { "layout-id", Buffer (0x04) { 0x0C, 0x00, 0x00, 0x00 }, "PinConfigurations", Buffer (Zero) {} }, Local0) DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0)) Return (Local0) } You can also use the ALC883 patch that comes with the DSDT editor here. 1 Link to comment Share on other sites More sharing options...
VCH888 Posted July 20, 2012 Share Posted July 20, 2012 you may try sudo perl -pi -e 's|\x85\x08\xec\x10|\x83\x08\xec\x10|g' /System/Library/Extensions/AppleHDA.kext/Contents/MacOS/AppleHDA sudo perl -pi -e 's|\x84\x08\xec\x10|\x82\x08\xec\x10|g' /System/Library/Extensions/AppleHDA.kext/Contents/MacOS/AppleHDA I did for my ALC662. May thank to TimeWalker (TimeWalker75a) and people @ applelife for some idea. Link to comment Share on other sites More sharing options...
BenzinNZ Posted July 27, 2012 Share Posted July 27, 2012 I'm on Mountain Lion now but you can patch your Lion kext easily enough. Just use the plist and xml files I've linked above and binpatch your Lion kext using the following command: sudo perl -pi -e 's|\x62\x02\xec\x10|\x83\x08\xec\x10|g' /System/Library/Extensions/AppleHDA.kext/Contents/MacOS/AppleHDA This is the DSDT patch I'm using: Method (_DSM, 4, NotSerialized) { Store (Package (0x04) { "layout-id", Buffer (0x04) { 0x0C, 0x00, 0x00, 0x00 }, "PinConfigurations", Buffer (Zero) {} }, Local0) DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0)) Return (Local0) } You can also use the ALC883 patch that comes with the DSDT editor here. For those of us running ML at the moment, is the process pretty much the same? Pretty much shove the attached files into the AppleHDA.kext and patch it using the command quoted? Edit: Turns out i'm really lost and googling around there appears to be many guides, so just an idea of where to put the two xml files and the plist file would be great Link to comment Share on other sites More sharing options...
Riley Freeman Posted July 27, 2012 Author Share Posted July 27, 2012 More or less. For ML you have to zlib compress the xml files. Use Revogirl's script (attached) to do this: perl zlib.pl deflate layout12.xml > layout12.xml.zlib perl zlib.pl deflate platforms.xml > platforms.xml.zlib The xml.zlib files go into AppleHDA.kext/Contents/Resources The Info.plist goes into AppleHDA.kext/Contents/Plugins/AppleHDAHardwareConfigDriver.kext/Contents zlib.pl.zip Link to comment Share on other sites More sharing options...
insideru Posted July 28, 2012 Share Posted July 28, 2012 Hey Riley, can you please post your current DSDT.aml and AppleHDA.kext file for ML? I have the exact same board and intend to upgrate to ML in the next couple days, when my SSD arrives. Cheers, Link to comment Share on other sites More sharing options...
Riley Freeman Posted July 29, 2012 Author Share Posted July 29, 2012 It's better to build your own DSDT but if it helps get you started, here they are. I've included the Marvell LAN legacy kext as well. My DSDT has a fix for this as well as the ESB2 SATA fix (so internal drives don't show as external). This is the same DSDT I've been using since 10.6. dsdt_kexts.zip Link to comment Share on other sites More sharing options...
insideru Posted July 29, 2012 Share Posted July 29, 2012 Cheers mate, I'm using my own dsdt, i'm just interested in seeing the differences After many failed attempts (and trust me i've been trying this for an year, since Lion hit), I've successfully patched the current version AppleHDA for Lion using your tip in post #4. And now you give me the ML version before even installing it, You sir have my eternal gratitude. Link to comment Share on other sites More sharing options...
Riley Freeman Posted July 30, 2012 Author Share Posted July 30, 2012 Glad to help. I was in the same boat with AppleHDA. Didn't know why my edits wouldn't work in Lion or ML. Was chuffed when I found out it was just a case of patching out a different codec. Link to comment Share on other sites More sharing options...
baalrugh Posted July 30, 2012 Share Posted July 30, 2012 Hello Sir Riley, Thx a lot. With all explanations and your many posts, I managed to have sound on my ML. No sounds assertions also! Best regards Baalrugh Link to comment Share on other sites More sharing options...
Recommended Posts