Contribute
Register

Audio - HDMI Audio AppleHDA [Guide]

Status
Not open for further replies.
Hello Toleda


I have the hackintosh of a friend with this configuration


CPU: i7 3770k
Motherboard: Gigabyte z77x-ud5h rev 1.1
BIOS version: F15Q (last version)
Onboard video: disabled
Discret video: MSI nVidia GTX650 1024 Mb
Bootloader: Clover (last version)
ALC codec: 898
OS: Mavericks 10.9.5


... and I want activate audio HDMI using the graphic card nVidia.


The onboard audio is working using this method

Realtek ALC AppleHDA Audio Patch Methods - select one (requires native S/L/E/AppleHDA.kext)
1. realtekALC/patch in place: script detects the codec and patches the native AppleHDA.kext for ALC onboard audio. Run the same script to restore audio after Software Update.


  1. realtekALC/patch in place
    1. Bootloaders: Chimera, Chameleon, Clover
    2. Software Update: run same script after update restart
    3. More Info: toleda/audio_RealtekALC
    4. Installation - realtekALC
      1. Download: (View Raw) audio_realtekALC-110.command.zip
      2. Double click: Downloads/audio_realtekALC-110.command
      3. Password?
      4. Confirm Realtek ALC (y/n): (885, 887, 888, 889, 892, 898, 1150 only)
      5. Legacy_v100202 (y/n): (887, 888 only)
      6. Enable HD4600 HDMI audio (y/n): (887, 892, 898, 1150 only)
      7. Verify Patched AppleHDA kext installed
        1. S/L/E/AppleHDA.kext_vx.x-toledaALCxxx
      8. Restart
      9. Verify ALC onboard audio
        1. System Preferences/Sound/Output/select audio device


Could you say the method to follow for enable the HDMI audio using only the video card nVidia?

Thanks in advanced

Greetings
 
Could you say the method to follow for enable the HDMI audio using only the video card nVidia?
See Post #1/Part A/HD4000/7series
Download HD4000 pdf and dsdt method pdf
See Note/Note/1. MaciASL/dsdt patches

Support; see Post #1/Problem Reporting
 
No HDMI audio edits in the attached dsdt.

True, i must have ignored that when I try to compile the DSDT i get:
Code:
10396, 6085, Object not found or not accessible from scope (_SB.PCI0.PEG0)
Code:
10396, 6116, Forward references from Scope operator not allowed (_SB.PCI0.PEG0)

However PEG0 is present. !?!?!
 
Recommended to apply HDMI audio patches before PJALM.
For your dsdt, edit the AMI-HD4000-AMD-Nvidia-A3 patch:
Code:
HD4000/AMI-HD4000-AMD-Nvidia-A3

edit patch #4. add:
                "@4,connector-type", Buffer() { 0x00, 0x08, 0x00, 0x00 },\n
                "@5,connector-type", Buffer() { 0x00, 0x08, 0x00, 0x00 },\n

remove patch #6:
# 6. Insert HDMI audio injection into device HDEF (HD4K HDMI audio - Part 2/2)
into method label _DSM parent_adr 0x001B0000 remove_entry;
into device name_adr 0x001B0000 insert
begin
    Method (_DSM, 4, NotSerialized)\n
    {\n
        If (LEqual (Arg2, Zero)) { Return (Buffer() { 0x03 } ) }\n
        Return (Package()\n
        {\n
                "layout-id", Buffer() { 0x03, 0x00, 0x00, 0x00 },\n
                "PinConfigurations", Buffer(Zero) {},\n
              "hda-gfx", Buffer() { "onboard-1" },\n
        })\n
    }\n
end;

Apply

paste:
into scope label _SB.PCI0.PEG0 set_label begin _SB.PCI0.PEGP end

Apply
Close
Compile
 
I need a little help with getting the HDMI to work or to let me know that is a lost cause. With a patched AppleHDA and some DSDT patches my HDMI video is working, following the guide results in no audio and a crash when HDMI is connected. I'm attaching files for both states.

1.- Laptop crashes (kernel panic attached screen shoot) when rebooted with HDMI cable or connecting the cable when OS X booted.
No Audio when booting without HDMI cable plugged in.
Audio and HDMI video with patched AppleHDA.kext.
2.- Mac OS X 10.10.4 / Laptop Lenovo Ideapad P580 / BIOS 5ECN96WW(V9.01) White list removed + advanced options enabled / Intel Core i5-3210M / Intel HD 4000
3.- Several the one that worked was this one http://www.insanelymac.com/forum/topic/298663-applehda-for-yosemite/, then I tried some more for the HDMI, the last was this thread.
4.- Attached ioreg files for boot with HDMI patches and with only patched AppleHDA kext.
5.- Attached DPCIManager pic and System Information pic for both instances
6.- Attached modified AppleHDA.kext and clean AppleHDA.kext
7.- None
8.- Using Clover
9.- Attached config.plist, log, DSDT and SSDT.aml for both working and not working

Thanks in advance.
 

Attachments

  • Only HDMI video.zip
    3.6 MB · Views: 76
  • Patched HDMI video.zip
    5 MB · Views: 74
Thanks Toleda by your hard effort

Works perfectly :thumbup:


Greetings
 
I need a little help with getting the HDMI to work
No idea what is causing the panic.
HDMI audio works with the native AppleHDA.kext.
Without a HDMI device connected in IOReg, problem solving is not possible.
 
No idea what is causing the panic.
HDMI audio works with the native AppleHDA.kext.
Without a HDMI device connected in IOReg, problem solving is not possible.

I'm attaching a IOReg of my hack with the HDMI connected with the patched AppleHDA, at least this is what I understood from your post. Sound works but no HDMI sound option.
 

Attachments

  • With Apatched AppleHDA and HDMI connected.ioreg
    1.6 MB · Views: 47
  • Speakers but no HDMI sound.png
    Speakers but no HDMI sound.png
    36.8 KB · Views: 85
Status
Not open for further replies.
Back
Top