I will try to be brief with the description, but at the same time I will explain the problem in detail.
I have a hackintosh system since 10.7, and to activate sound on this hack I use a package of kexts that I downloaded here.
By installing those four kexts, I got fully functional sound, including not only the traditional 1.8" plugs outputs, but SPDIF and Digital Optical too, with no crackling sound, and excellent volume in full 5.1 sound.
That package of four kexts have been working through all versions of Lion and Mountain Lion. When I needed to upgrade the system to a newer version, I just only have to reinstall those kexts, and done: sound working great.
But now with Mavericks (10.9) it's a different story.
I upgraded from 10.8.5 to 10.9, and when I installed those four kexts and rebooted, I found that the system gets stuck at boot. I tried to boot it with different flags and multiple combinations, but none of that worked. So, I reinstalled the system by restoring a TimeMachine backup, and tried again. Same result.
I've been trying different things since then, and I cannot activate sound as with previous versions. So, I decided to track down the problem, and I found that the culprit is AppleHDA.kext of that package. If I install the other 3 kexts, I get no sound but I can boot the system just fine. If I install AppleHDA.kext from that package, the system becomes unbootable. But I need those four to get the sound working as in previous OS X versions if I wamt to use the same activation method.
This is a list of things that I already tried with no success:
-Found another AppleHDA.kext patched for AD2000b that is supported by 10.9 and installed it along the other 3 kexts, but it didn't work.
-Installed AppleHDA.kext patched for AD2000b and patched my DSDT HDEF code from Layout-id 12 (0c) to Layout-id 99 (63) as instructed here on this same forum by ErmaC, but it doesn't work for me, since I have an Asus Rampage II Gene motherboard, and it's Intel X58 based, and I read that for Intel X58 motherboards I need to inject HDEF with an HDEF injector. That leads me to the next step.
-Installed again the AppleHDA.kext patched for AD2000b, and activate the module HDAEnabler.dylib in Chameleon. Inserted the key "HDAEnable=Yes" in org.chameleon.boot.plist and restarted. Nothing. Then I've added the key "HDEFLayoutID=63" and restarted. Still nothing. (Also tried putting 63000000 and 00000063). I tried the same but with the key "HDAULayoutID=63" instead of HDEF. And even tried with the two together.
These are some things I saw:
In About this Mac - More Info - System Information - Hardware - Audio, I can see that the audio information is recognized there, as an Intel HD Audio, with ID 12. No matter if I try the DSDT HDEF edit from 12 to 99, or the HDEF injection with Chameleon, I still see the same information and the same ID number.
BUT if I install HDAEnabler.kext, and HDEFEnabler.kext from the first package (the 4 kexts package), then the ID number for the audio device change to 889. I don't know if that info could help to find a solution, but jut to be sure I'm trying to put everything here.
-I can't use the 4 kext package that I've been using so far, because the file AppleHDA.kext from that package breaks the boot process of Mavericks and the only solution is to reinstall the system or restore to a TimeMachine backup.
-I can't use the AppleHDA.kext patched for AD2000b with support for Mavericks or to patch my own file, because I cannot find a way to change the Layout-id for HDEF on my system from 12 to 99, as needed for that file to work.
If anyone knows how can I solve this problem (and many others with the same mobo or other similar versions), please share your knowledge, that would be awesone.
Thank you in advance.
EDIT: After trying different things all the night, and reading multiple forums messages, I found the solution! The newer AppleHDA.kext, and HDAEnabler.kext modified to put LayoutID=99. Nothing more. It works great.
Files attached ready to use for anyone with the same problem.