Jump to content

ALC883 - What's changed since Lion?


Riley Freeman
 Share

12 posts in this topic

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

Link to comment
Share on other sites

  • 4 months later...

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.

  • Like 1
Link to comment
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.

Link to comment
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

Link to comment
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

Link to comment
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

Link to comment
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.

Link to comment
Share on other sites

 Share

×
×
  • Create New...