Jump to content

ALC883 - What's changed since Lion?


  • Please log in to reply
11 replies to this topic

#1
Riley Freeman

Riley Freeman

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 936 posts
  • Gender:Male
  • Location:The Streets
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.

Attached Files



#2
Riley Freeman

Riley Freeman

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 936 posts
  • Gender:Male
  • Location:The Streets
I found out the problem. Binpatching out ALC885 no longer works. I needed to use ALC262 instead.

#3
Rampage Dev

Rampage Dev

    InsanelyMac Deity

  • Local Moderators
  • 2,084 posts
  • Gender:Male
  • Interests:AKern@RampageDev.com
Can you upload the kext and DSDT patch you used in Lion for ALC883. Thanks.

#4
Riley Freeman

Riley Freeman

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 936 posts
  • Gender:Male
  • Location:The Streets
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:

Spoiler


You can also use the ALC883 patch that comes with the DSDT editor here.

#5
VCH888

VCH888

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 585 posts
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.

#6
BenzinNZ

BenzinNZ

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 posts

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:

Spoiler


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 :D

#7
Riley Freeman

Riley Freeman

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 936 posts
  • Gender:Male
  • Location:The Streets
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

Attached Files



#8
insideru

insideru

    InsanelyMac Protégé

  • Members
  • Pip
  • 6 posts
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,

#9
Riley Freeman

Riley Freeman

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 936 posts
  • Gender:Male
  • Location:The Streets
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.

Attached Files



#10
insideru

insideru

    InsanelyMac Protégé

  • Members
  • Pip
  • 6 posts
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.

#11
Riley Freeman

Riley Freeman

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 936 posts
  • Gender:Male
  • Location:The Streets
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.

#12
baalrugh

baalrugh

    InsanelyMac Protégé

  • Members
  • PipPip
  • 50 posts
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





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy