Jump to content
InsanelyMac Forum
  • Announcements

    • Allan

      Solution to create a topic or post.   04/24/2018

      Hello guys. The majority of you are having issues to create a topic or post here. This are a problem with our current theme InsanelyMac.  Now the theme will be the Default IPS. Sorry for any inconvenience.
Riley Freeman

ALC883 - What's changed since Lion?

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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,

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing   0 members

    No registered users viewing this page.



×