Hello,
i just tried to make my VT2021 work with AppleHDA using the Files that you provided but as it seems it doesnt work for me.
I followed your Guide/Readme.txt Step-By-Step and i am sure DSDT injection is working, but AppleHDA won't load for me.
So here is what the Console gives me:
Jun 2 20:28:12 macintosh kernel[0]: Sound assertion in AppleHDADriver at line 2094
Jun 2 20:28:12 macintosh kernel[0]: Sound assertion in AppleHDADriver at line 214
Jun 2 20:28:12 macintosh kernel[0]: Sound assertion in AppleHDADriver at line 1050
Jun 2 20:38:13 macintosh kernel[0]: Sound assertion in AppleHDAPath at line 1331
Jun 2 20:38:13 macintosh kernel[0]: Sound assertion in AppleHDAEngine at line 507
Jun 2 20:38:13 macintosh kernel[0]: Sound assertion in AppleHDAEngine at line 6726
Jun 2 20:38:13 macintosh kernel[0]: Sound assertion in AppleHDAEngine at line 6671
Jun 2 20:38:13 macintosh kernel[0]: Sound assertion in AppleHDAEngine at line 694
Jun 2 20:38:13 macintosh kernel[0]: Sound assertion in AppleHDADriver at line 2191
Jun 2 20:38:13 macintosh kernel[0]: Sound assertion in AppleHDADriver at line 214
Jun 2 20:38:13 macintosh kernel[0]: Sound assertion in AppleHDADriver at line 1050
Jun 2 20:44:45 macintosh kernel[0]: Sound assertion in AppleHDADriver at line 1504
Jun 2 20:44:45 macintosh kernel[0]: Sound assertion in AppleHDADriver at line 2094
Jun 2 20:44:45 macintosh kernel[0]: Sound assertion in AppleHDADriver at line 214
Jun 2 20:44:45 macintosh kernel[0]: Sound assertion in AppleHDADriver at line 1050
Jun 2 20:51:17 macintosh kernel[0]: Sound assertion in AppleHDAPath at line 1331
Jun 2 20:51:17 macintosh kernel[0]: Sound assertion in AppleHDAEngine at line 507
Jun 2 20:51:18 macintosh kernel[0]: Sound assertion in AppleHDAEngine at line 6726
Jun 2 20:51:18 macintosh kernel[0]: Sound assertion in AppleHDAEngine at line 6671
Jun 2 20:51:18 macintosh kernel[0]: Sound assertion in AppleHDAEngine at line 694
Jun 2 20:51:18 macintosh kernel[0]: Sound assertion in AppleHDADriver at line 2191
Jun 2 20:51:18 macintosh kernel[0]: Sound assertion in AppleHDADriver at line 214
Jun 2 20:51:18 macintosh kernel[0]: Sound assertion in AppleHDADriver at line 1050
Jun 2 20:55:51 macintosh kernel[0]: Sound assertion in AppleHDAPath at line 1331
Jun 2 20:55:51 macintosh kernel[0]: Sound assertion in AppleHDAEngine at line 507
Jun 2 20:55:52 macintosh kernel[0]: Sound assertion in AppleHDAEngine at line 6726
Jun 2 20:55:52 macintosh kernel[0]: Sound assertion in AppleHDAEngine at line 6671
Jun 2 20:55:52 macintosh kernel[0]: Sound assertion in AppleHDAEngine at line 694
Jun 2 20:55:52 macintosh kernel[0]: Sound assertion in AppleHDADriver at line 2191
Jun 2 20:55:52 macintosh kernel[0]: Sound assertion in AppleHDADriver at line 214
Jun 2 20:55:52 macintosh kernel[0]: Sound assertion in AppleHDADriver at line 1050
The HDA-Device shows up in System Profiler, and even shows some Input and Output Ports.
But no Input or Output Device shows up in Audio/Sound Settings.
Since i already tried to make VIA VT2021 work with AppleHDA im am not suprised, because i know the Console Messages and behavior.
So when i just follow your Guide/Readme.txt HDA and Outputs show up in System Profiler but i can't use them.
When i add my own Verbs for Layout12 in AppleHDAHardwareConfigDriver.kext System freezes for about 2 Minutes after boot, i am able
to move my Cursor, but there is no reaction on Click or Keyboard-Input.
Console Output is something like this:
Jun 2 21:03:11 macintosh kernel[0]: IOHIDSystem: postEvent LLEventQueue overflow.
Jun 2 21:05:07 macintosh kernel[0]: IOHIDSystem: postEvent LLEventQueue overflow.
So i just want to find out if i am doing something wrong or i just missed a Step.
So here is what i tried Step for Step.
1. Edited my DSDT
Device (HDEF)
{
Name (_ADR, 0x001B0000)
OperationRegion (HDAR, PCI_Config, 0x4C, 0x10)
Field (HDAR, WordAcc, NoLock, Preserve)
{
DCKA, 1,
Offset (0x01),
DCKM, 1,
, 6,
DCKS, 1,
Offset (0x08),
, 15,
PMES, 1
}
Method (_PRW, 0, NotSerialized)
{
Return (Package (0x02)
{
0x0D,
0x05
})
}
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)
}
}
I am sure that there is no mistake here, since Audio Device shows up in System Profiler with In- and Output Ports and AppleHDA gives me Messages on the Console.
2. Binary Patching.
I just entered the Command provided in your Readme.txt. Here is a point where i am not so sure what to do, i entered both commands without a big understanding
of whats happening here. Do i really need to run both commands? Or is it depending on something?
sudo perl -pi -e 's|\x84\x19\xd4\x11|\x41\x04\x06\x11|g' /System/Library/Extensions/AppleHDA.kext/Contents/MacOS/AppleHDA
sudo perl -pi -e 's|\x83\x19\xd4\x11|\x00\x00\x00\x00|g' /System/Library/Extensions/AppleHDA.kext/Contents/MacOS/AppleHDA
3. Copying the layout12.xml and Platform.xml to /System/Library/Extensions/AppleHDA.kext/Contents/Resources/
I am also sure that i made no mistake here, since it didnt work for me i also tried copying all layout*.xml files to this path but it still didn't work for me.
I guess when i just use Layout ID 12 in DSDT i just need to copy Layout12.xml + Platform.xml. Am i right?
4. I skipped the whole 10.8 DP3 Part since i am using 10.7.4
10.8 DP3 or later Credits to revogirl for making perl script of zlib.pl
copy layout###.xml.zlib and Platform.xml.zlib to /System/Library/Extensions/AppleHDA.kext/Contents/Resources/
example;
sudo cp /where the file is/layout12.xml.zlib /System/Library/Extensions/AppleHDA.kext/Contents/Resources/
Terminal command: zlib.pl
perl zlib.pl inflate layout12.xml.zlib > layout12.xml
perl zlib.pl deflate layout12.xml > layout12.xml.zlib
5. I skipped the zlib.pl part since there was no layout12.xml.zlib provided in your ZIP-File.
6. Copied VIA2021.kext to /S/L/E and changed/fixed owner and permissions for VIA2021.kext and AppleHDA.kext
So here is the Question, do i need to add my Device/Codec ID to the Info.plist in VIA2021.kext? In my case the DeviceID is 0x1e208086.
7. Tried adding the Verbs you provided in VT2021-0 Document to Layout 12 in AppleHDAHardwareConfigDriver.kext but still no joy.
8. Tried adding the Verbs i use with VoodooHDA to AppleHDAHardwareConfigDriver.kext but System freezes for about 2-3 Minutes after Boot
and there is no reaction on mouseclick or keyboard input.
Maybe i just missed a Step somewhere, or at least i hope so, since i am really looking forward to using AppleHDA for my VT 2021
Thanks and Bye
Edit: As it seems i am using a different Mainboard, Gigabyte GA-Z77X-UD3H-WB WiFi but the Board also uses a VIA VT2020 / VT2021 Audio Chipset.