Contribute
Register

Haswell NUC HDMI audio

Status
Not open for further replies.
Joined
May 27, 2010
Messages
2,364
Motherboard
Dell Optiplex 9030 All in One
CPU
i5-4690K
Graphics
HD 4600
Mac
  1. Mac mini
Classic Mac
  1. iMac
Mobile Phone
  1. iOS
First, thank you to SJ_Underwater for getting a compile on the new Haswell DSDT, Toleda for patching and Rehabman for advice over on the DSDT thread.
I woke up this morning to a first HDMI DSDT - excellent.
Here are the results of me trying it.
DP on the NUC is port 6, HDMI is port 5. DP audio on port 6 is working with the DSDT and the following frame buffer, but HDMI audio over port 5 is not.

03 00 22 0D 00 03 03 03 00 00 00 02 00 00 00 01
00 00 00 00 00 00 00 40 99 14 00 00 99 14 00 00
00 00 00 00 00 00 00 00 01 05 12 00 00 04 00 00
07 01 00 00 02 04 14 00 00 08 00 00 06 00 00 00
03 06 12 00 00 08 00 00 06 00 00 00 FF 00 01 00
01 00 00 00 40 00 00 00 02 00 00 00 01 01 00 00
04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 0E 00 00 00


IOJones and screen shots attached.
 

Attachments

  • iojones.zip
    4.9 MB · Views: 163
  • DSDT.zip
    20.8 KB · Views: 175
03 00 22 0D 00 03 03 03 00 00 00 02 00 00 00 01
00 00 00 00 00 00 00 40 99 14 00 00 99 14 00 00
00 00 00 00 00 00 00 00 01 05 12 00 00 08 00 00
07 01 00 00 02 04 14 00 00 08 00 00 06 00 00 00
03 06 12 00 00 08 00 00 06 00 00 00 FF 00 01 00
01 00 00 00 40 00 00 00 02 00 00 00 01 01 00 00
04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 0E 00 00 00

Very happy to report this change (i.e. change of connector type on port 5 from DP to HDMI) gives dual audio out now [HDMI on port 5, DP on port 6] - so both video output ports now working with accompanying audio.
 
Very happy to report this change (i.e. change of connector type on port 5 from DP to HDMI) gives dual audio out now [HDMI on port 5, DP on port 6] - so both video output ports now working with accompanying audio.
Suggestion, edit only port 0x5 for the HDMI connector, port 0x6 is native DP.

HexEdit, HexFiend, etc.
Port 0x5 DP > HDMI

Find: 03 00 22 0D
Find: 01 05 12 00 00 04 00 00 87 00 00 00
Repl: 01 05 12 00 00 08 00 00 06 00 00 00

After edit:
00 00 00 00 00 00 00 40 99 14 00 00 99 14 00 00
00 00 00 00 00 00 00 00 01 05 12 00 00 08 00 00
06 00 00 00
02 04 14 00 00 04 00 00 87 00 00 00
03 06 10 00 00 04 00 00 11 00 00 00 FF 00 01 00
01 00 00 00 40 00 00 00 02 00 00 00 01 01 00 00
04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 0E 00 00 00

Note: Do not apply Note 2.1 Azul edit in Haswell HDMI Audio. This edit applies to the native Azul framebuffer only.
 
Suggestion, edit only port 0x5 for the HDMI connector, port 0x6 is native DP.

HexEdit, HexFiend, etc.
Port 0x5 DP > HDMI

Find: 03 00 22 0D
Find: 01 05 12 00 00 04 00 00 87 00 00 00
Repl: 01 05 12 00 00 08 00 00 06 00 00 00

After edit:
00 00 00 00 00 00 00 40 99 14 00 00 99 14 00 00
00 00 00 00 00 00 00 00 01 05 12 00 00 08 00 00
06 00 00 00
02 04 14 00 00 04 00 00 87 00 00 00
03 06 10 00 00 04 00 00 11 00 00 00 FF 00 01 00
01 00 00 00 40 00 00 00 02 00 00 00 01 01 00 00
04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 0E 00 00 00

Note: Do not apply Note 2.1 Azul edit in Haswell HDMI Audio. This edit applies to the native Azul framebuffer only.

Agreed. I have edited my Framebuffer according to your simplified suggestion and all is good.

:)

PS That DSDT is certainly one of the nastier ones I have seen. It was a great job for you and SJ_Underwater to edit it for compiling.
 
Hello

I don't understand what I need to do to get hdmi audio to work :(
Could you guide me a little to what to do with the contents in your posts minihack
Thanks in advance!

/David
 
Hello

I don't understand what I need to do to get hdmi audio to work :(
Could you guide me a little to what to do with the contents in your posts minihack
Thanks in advance!

/David

Okay,
It is basically all in Toledas guide.
You need (a)
The DSDT in your extra file
(b) If you have the native AppleHDA Mavericks kext (check by doing a right click on it and "Get Info" for version) and patch it according to the instruction Toleda gives.
(c) Patch the relevant frame buffer in AppleIntrelframebufferAzul.kext.

If you want a quick fix though just install the attached kexts as i have already patched them and use the HDMI dsdt.
 

Attachments

  • NUCkexts.zip
    1.4 MB · Views: 167
Okay,
It is basically all in Toledas guide.
You need (a)
The DSDT in your extra file
(b) If you have the native AppleHDA Mavericks kext (check by doing a right click on it and "Get Info" for version) and patch it according to the instruction Toleda gives.
(c) Patch the relevant frame buffer in AppleIntrelframebufferAzul.kext.

If you want a quick fix though just install the attached kexts as i have already patched them and use the HDMI dsdt.

Im probably doing something very wrong :) but with that dsdt in my extra folder OSX wont boot. So I have to boot the usb stick and go to terminal and delete the dsdt

Kind regards
David
 
Hmmm - maybe post your plist to check.

..and make sure you are using IntelAzulFB=10 (if you are using Chameleon).
 
Testers needed.

NUC HDMI audio/ssdt version
Download/View Raw
audio_hdmi_8series/ssdt_8series/audio_ssdt-hdmi-nuc_hd5k-amd-nvidia-1_v1.zip at master · toleda/audio_hdmi_8series


Install per guide.
HDA and Azul patches required.
Reply with IOReg/IOJones.

Hi Toleda, minihack.

Thanks for the help with getting this working.

I'm trying to simplify it in my own mind, so I can add it to the install guide. My understanding so far to enable our HDMI audio is like so :

Require 3 tasks completing which are :

1. Clean compiled DSDT with HDMI audio patch applied
2. Patched native AppleHDA
3. Patched IntelAzulFB

To achieve this use the following files from your repository :

1. has5-dsdt-aml-8_series-nuc_compiler_fixes.txt
2. has4-dsdt-8_series_nuc_hdmi_audio-1.txt
3. audio_hdmi_hd5k-hda-90_patch.command
4. audio_nuc_hdmi_hd5k-azul-90_patch.command
5. audio_ssdt-hdmi-nuc_hd5k-amd-nvidia-1_v1.zip

And do the following :

1. Apply has5-dsdt-aml-8_series-nuc_compiler_fixes.txt to raw extracted DSDT and run compile command on it.
2. Apply has4-dsdt-8_series_nuc_hdmi_audio-1.txt to output of above and compile again
3. Install resulting DSDT file to /Extra
4. Run 'audio_hdmi_hd5k-hda-90_patch.command' to patch native AppleHDA.kext
5. Run 'audio_nuc_hdmi_hd5k-azul-90_patch.command' to patch IntelAzulFB.kext
6. Add SSDT-1 from 'audio_ssdt-hdmi-nuc_hd5k-amd-nvidia-1_v1.zip' to /Extra
7. DropSSDT in org.chameleon.boot.plist
8. Reboot

Is this the full and complete procedure to enable ?

I don't have an HDMI monitor/screen here so can't test it myself.

Also, would it be ok to include the above files as part of my Install Pack ?

Thanks.
 
Status
Not open for further replies.
Back
Top