OK guys, this is the
full monty for the ALC888 (running perfectly on my Shuttle XPC SG31G2V2):
find hex 0x85, 0x08, 0xEC, 0x10
patch to 0x88, 0x08, 0xEC, 0x10
cd /System/Library/Extensions/AppleHDA.kext/Contents/MacOS/
sudo cp -pX AppleHDA ~AppleHDA
sudo perl -pi -e 's|\x85\x08\xec\x10|\x88\x08\xec\x10|g' AppleHDA
/* Fixed */ Device (HDEF)
{
Name (_ADR, 0x001B0000)
Method (_PRW, 0, NotSerialized)
{
Return (Package (0x02)
{
0x05,
0x04 // Original value 0x05
})
}
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x0E)
{
"codec-id",
Buffer (0x04) {0x88, 0x08, 0xEC, 0x10}, // Codec ALC888 = 0x10EC0888 (283904136)
"device_type",
Buffer (0x06) {"audio"},
"layout-id",
Buffer (0x04) {0x78, 0x03, 0x00, 0x00}, // Layout ALC888 = 0x00000378
// "model",
// Buffer (0x1A) {"Realtek ALC888 Controller"},
"subsystem-vendor-id",
Buffer (0x04) {0x6B, 0x10, 0x00, 0x00}, // Subsystem = [106b:00a0] Apple device
"subsystem-id",
Buffer (0x04) {0xA0, 0x00, 0x00, 0x00}, // Subsystem = [106b:00a0] Apple device
"platformFamily",
Buffer (0x01) {Zero},
"PinConfigurations",
Buffer (0x01) {Zero}
}, Local0)
MCDP (Arg2, RefOf (Local0))
Return (Local0)
}
}
So
janek202, this proggie only loads what users here send you, right? It doesn't actually insert stuff into Platforms.xml but rather replaces the needed files, correct? The only thing it does by itself is to bin-patch?
Attached
layout888.xml and
Platforms.xml as well.
Thank you and all members here.