I haven't made much progress with audio. It seems that the 1% left is what always takes most of the time to figure out.
I followed this guide (
http://forum.osxlatitude.com/index.php?/topic/1946-complete-applehda-patching-guide/) to create the layout1.xml and Platforms.xml (attached).
Here is the information I extracted from the codec_ALC269VC.txt:
1. CODEC : Realtek ALC269VC
2. ADDRESS : 0
3. VENDOR ID : Hex: 0x1458fa50 [Decimal: 341375568]
4. PIN COMPLEX NODES WITH CONTROL NAMES
Node 0x15: Pin Default 0x02211010 EAPD 0x2 Control: name="Master Playback Switch" Connection: 2 0x0c* 0x0d
Extract Verb data: 10 10 21 02
Corrected Verb data: 10 10 21 02
Node 0x1e: Pin Default 0x02451120 Control: name="SPDIF Phantom Jack" Connection: 1 0x06
Extract Verb data: 20 11 45 02 (Note 2 11->10)
Corrected Verb data: 20 10 45 02
Final Verb Data:
Node 15: 10 10 21 02
Node 1e: 20 10 45 02
Node 15: EAPD : 02
Calculating the Codec verb commands :
Formula for calculating the Codec verbs is:
Codec Address + NodeID + Verb Commands + Verb data
Node 15:
01571c10
01571d10
01571e21
01571f02
Node 1e:
01e71c20
01e71d10
01e71e45
01e71f02
Verb Command for EAPD at Node 15:
01570c02
calculated verb command for AppleHDA patch:
<01571c10 01571d10 01571e21 01571f02 01570c02
01e71c20 01e71d10 01e71e45 01e71f02>
Final codec with disabled pin complex nodes that are not used (Verb data for disabled node is F0 00 00 40):
Node ids: 12, 14, 17, 18, 19, 1a, 1b, 1d
<01271cf0 01271d00 01271e00 01271f40
01471cf0 01471d00 01471e00 01471f40
01571c10 01571d10 01571e21 01571f02 01570c02
01771cf0 01771d00 01771e00 01771f40
01871cf0 01871d00 01871e00 01871f40
01971cf0 01971d00 01971e00 01971f40
01a71cf0 01a71d00 01a71e00 01a71f40
01b71cf0 01b71d00 01b71e00 01b71f40
01d71cf0 01d71d00 01d71e00 01d71f40
01e71c20 01e71d10 01e71e45 01e71f02>
5. AUDIO MIXER/SELECTOR NODES :
Node 0x0b [Audio Mixer] Connection: 5 0x18 0x19 0x1a 0x1b 0x1d
Node 0x0c [Audio Mixer] Connection: 2 0x02 0x0b
Node 0x0d [Audio Mixer] Connection: 2 0x03 0x0b
Node 0x0f [Audio Mixer] Connection: 2 0x02 0x0b
Node 0x22 [Audio Mixer] Connection: 7 0x18 0x19 0x1a 0x1b 0x1d 0x0b 0x12
Node 0x23 [Audio Mixer] Connection: 6 0x18 0x19 0x1a 0x1b 0x1d 0x0b
6. AUDIO OUTPUT NODES :
Node 0x02 [Audio Output] Control: name="Master Playback Volume"
Node 0x03 [Audio Output]
Node 0x06 [Audio Output] Control: name="IEC958 Playback Con Mask"
Control: name="IEC958 Playback Pro Mask"
Control: name="IEC958 Playback Default"
Control: name="IEC958 Playback Switch"
Control: name="IEC958 Default PCM Playback Switch"
Device: name="ALC269VC Digital"
7. AUDIO INPUT NODES :
Node 0x08 [Audio Input] Connection: 1 0x23
Node 0x09 [Audio Input] Connection: 1 0x22
Pathmaps
Output:
Master Playback Volume
0x15->0x0c->0x02, Decimal - 21->12->2
SPDIF
0x1e->0x06, Decimal - 30->6
Input:
None. all complex nodes that the audio mixer leads too are disabled
Once I got Platforms.xml and layout1.xml ready, I compressed and put it back into AppleHDA.kext.
I then followed this guide from toleda (
http://www.tonymacx86.com/hdmi-audio/112469-mavericks-hdmi-audio-applehda-guide-31.html) to clean the dstdt.aml, apply the hdmi patch to dsdt.aml and apply the binary patches (audio_hdmi_hd5k-azul-90_patch.command,audio_hdmi_hd5K-hda-90_patch.command). I moved both patched kexts into clover bootloader as well as the dsdt.aml.
During the first boot I got a couple of assertions on AppleHDA.kext, the output devices were there in system preferences, input devices were empty as expected. I could not select any of the output devices and no sound would come out of the headphones. I do not have an hdmi monitor so I could not test hdmi audio.
Second reboot, same assertions but no output devices on system preferences.
I am attaching some of the files I used for this process.