Jump to content

AppleHDA HDMI Audio


  • Please log in to reply
70 replies to this topic

#1
toleda

toleda

    InsanelyMac Deity

  • Gurus
  • 2,063 posts
  • Gender:Male

AppleHDA HDMI Audio

Most audio codecs/most Intel/AMD/Nvidia graphics systems

Supports macOS: 10.13, 10.12, 10.11, 10.10, 10.9 and 10.8

 

OS X HDMI audio support for Intel HD3000 and newer, AMD HD5xxx and newer, Nvidia 4xx and newer, Intel/AMD and Intel/Nvidia graphics configurations. This guide provides files and instructions for enabling native macOS AppleHDA HDMI audio.  

 

Change Log

v1.1: 10/10/17 - 10.13 support, Kaby Lake/cloverHDM support.  dsdt, ssdt, bootloader HDMI audio methods deprecated

v1.0: 6/20/17 - Supports all versions of macOS, 10.8 to current

 

Recommendation

cloverHDMI: detects and installs the correct Intel, and/or, AMD or Nvidia ssdt(s) and patches the Intel framebuffer for the connected display(s) enabling persistent macOS HDMI audio (native AppleHDA and Clover required).

 

Notes/Nvidia:

 

  • Nvidia 10xx/web driver; no HDMI audio on HDMI port after boot. Use DPDVI2HDMI or DVI2HDMI adapters for HDMI audio (4K@60 HDMI requires active DP adapter).
  • macOS only supports video on one HDMI port on a Nvidia graphics card with more than one HDMI port. Use DP2HDMI or DVI2HDMI adapters for multiple HDMI displays (4K@60 HDMI requires active DP adapter).

Installation: see II. cloverHDMI, below

Support: see IV. Problem Reporting, below

 

I. Before You Start

  1. Make a bootable backup
  2. Connect the HDMI device, restart
  3. OS X does not provide HDMI audio controls (No volume, no mute, no balance, etc.)
  4. The connected HDMI device (TV, receiver, etc.) provides any and all audio control

II. cloverHDMI script detects and installs the correct ssdt(s) and Intel framebuffer patches for the connected HDMI display enabling macOS HDMI audio.

  1. cloverHDMI
    1. Download/View Raw: audio_cloverHDMI.command.zip
    2. Intel/AMD/Nvidia: HDMI audio ssdt > EFI/CLOVER/ACPI/patched/
    3. Intel: DP2HDMI framebuffer edits > EFI/CLOVER/config.plist/KernelAndKextPatches/
  2. Test Drive (saves HDMI audio ssdt and config.plist to Desktop)
    1. Set audio_cloverALC-HDMI-x0.command/gDebug=1
    2. Copy config.plist to Desktop
    3. Continue with 3. Installation/Step 3
  3. Installation
    1. Mount EFI
    2. SIP enabled, OK
    3. Intel: HDMI displays only, disconnect DP displays
    4. Double click
    5. Answer y/n questions
    6. Password
    7. Restart
  4. Terminal (output)
    1. cloverHDMI-Intel
    2. cloverHDMI-Intel&AMD:Nvidia
    3. cloverHDMI-AMD:Nvidia
  5. Support
    1. MacOS: see Requirements/1. macOS
    2. Intel/desktop series: see Requirements/3. Intel motherboards
    3. Graphics/HDMI audio:
      1. Intel HD Graphics (native GPU Power Management)
        • see VI. Intel HD Graphics
      2. AMD/default framebuffer (ATY,AMD,RadeonFramebuffer)
        • see VII. AMD Radeon Graphics
      3. Nvidia/Official/Web
        • see VIII. Nvidia GeForce Graphics
  6. Notes
    1. Current HDMI audio; no need to run script, does not remove other methods
    2. Attempted HDMI audio and not working; remove all previous attempts
    3. This method does not work on all systems; HDMI audio dsdt edits may be necessary

III. Tools

  1. IORegistryExplorer_v2.1.zip (View Raw)
  2. DPCIManager
  3. RehabMan/OS-X-MaciASL
  4. Property List Editors
    1. Xcode on the Mac App Store
    2. Property List Editor, PlistEdit Pro, etc.
    3. TextEdit, TextWrangler (last resort)
  5. Clover Wiki: Home

IV. Problem Reporting (post to this thread with requested information attached)

  1. Description of HDMI audio problem
  2. OS X version/motherboard model/BIOS version/processor/graphics
  3. Procedure/Guide used
  4. Installed S/L/E/AppleHDA.kext (10.11 and newer, search: show hidden files)
  5. Copy of IOReg - IOReg_v2.1/File/Save a Copy As…, verify file (Tools 1.)
  6. Screenshots
    1. DPCIManager/Status (Tools 2.)
    2. System Information/Hardware/Graphics/Displays
  7. DPCIManager/Misc/Boot Log
  8. MaciASL/File/Export Tableset As... (Tools 3.)
  9. Terminal/Shell/File/Export Text As. . . /audio_cloverHDMI-x0.command
  10. Chameleon  (if installed)
    1. Extra/org.chameleon.Boot.plist
    2. DPCIManager/Misc/Boot Log
    3. Extra/dsdt.aml (if installed)
    4. Extra/ssdt.aml
  11. Clover  (if installed)
    1. EFI/CLOVER/config.plist
    2. DPCIManager/Misc/Boot Log
    3. EFI/CLOVER/ACPI/Patched/dsdt.aml (if installed)
    4. EFI/CLOVER/ACPI/Patched/ssdt.aml
  12. Put all files in a folder, compress and attach to Post

V. Requirements

  1. macOS
    1. 10.13+, see 4. SIP/1.
    2. 10.12+, see 4. SIP/1.
    3. 10.11+, see 4. SIP/1.
    4. 10.10+, see 4. SIP/2.
    5. 10.9+
    6. 10.8+
  2. Native AppleHDA.kext (Restore native AppleHDA [Guide])
    1. With or without onboard audio
    2. Remove any audio kext enabler/HDAEnabler_.kext
    3. Remove any HDMI audio kext/HDMIAudio.kext
    4. Remove/Disable Clover audio/HDMI audio patches
      1. config.plist/ACPI/DSDT/Patches/Rename ???? to HDEF
      2. config.plist/ACPI/DSDT/Fixes/AddHDMI_8000000/NO
      3. config.plist/ACPI/DSDT/Fixes/FixDisplay_0100/NO
      4. config.plist/ACPI/DSDT/Fixes/FixHDA/NO
      5. config.plist/Devices/UseIntelHDMI/NO
  3. Intel Motherboards
    1. Desktop: 200/100/9/8/7/6/5 Series
    2. Workstation: X299/X99/X79/X58
    3. BRIX/NUC: HD540, HD6100, HD6000, HD5500, HD5200, HD5000, HD4000
  4. SIP (required to install/edit kexts and rebuild cache)
    1. 10.13/10.12/10.11:
      1. CLOVER/config.plist/
        • CsrActiveConfig/0x3 or 0x67
      2. Chameleon - Extra/org.chameleon.Boot.plist
        • CsrActiveConfig=3
    2. 10.10:
      1. Clover/config.plist/
        • Boot/Arguments/kext-dev-mode=1
      2. Chimera/Chameleon/Extra/org.chameleon.Boot.plist
        • Kernel Flags//kext-dev-mode=1

VI. Intel HD Graphics - HDMI, DP, DVI; max 2 (HD3000/HD4000 max: 1)

  1. ​Intel HD Graphics (desktop support; mobile, see VI. Notes/3.)
    1. HD6x0 (HD630/KBL, framebuffer edit required), 10.12.6 and newer
    2. HD5x0 (HD530/SKL framebuffer edit required). 10.11.4 and newer, HD540
      1. System Preferences/Sound/Output; HDMI shows as DP, DP shows as HDMI
      2. Supports 1x display, boot fails with 2x display; 2nd display hot plug works
    3. HD6000+ (BDW framebuffer edits required), HD6200, HD6100
    4. HD4600+ (Azul framebuffer edits required), HD5500, HD5200, HD5000, HD4400
      1. HD4600/HD4400/Mobile - no native support
        1. RehabMan/OS-X-Fake-PCI-ID
        2. RehabMan / OS-X-Fake-PCI-ID / Downloads — Bitbucket
    5. HD4000 (Capri framebuffer edits may be required)
    6. HD3000 (SNB framebuffer edits may be required)
    7. SKL/BDW/Azul/Capri/SNB kext edits
      1. see II. cloverHDMI, above
    8. HD2000/HD2500, not supported

VII. AMD Radeon Graphics - HDMI, DP; max 6

  1. AMD RX 5xx4xx/HD R7-R9 3xx/R7-R9 2xx/HD 7xxx/HD 6xxx/HD 5xxx (* default framebuffer)
    1. AMD TrueAudio supported 10.10.4 and newer
      1. AMD9520Controller.kext/GCN1.2/Vega
        • 10.13: HDMI audio working
        • 10.12: HDMI audio not working
      2. AMD9510Controller.kext/GCN1.2/Polaris
        • 10.13: HDMI/DP audio working
        • 10.12: HDMI/DP audio not working
      3. AMD9000Controller.kext/GCN1.2/Tonga/TrueAudio
        • HDMI/DP working
      4. AMD8000Controller.kext/GCN1.1/Hawaii/Bonaire/TrueAudio
    2. AppleHDAController and AMD70000Controller/AMD60000Controller/AMD50000Controller edits may be required, see
      1. Editing custom personalities for ATI Radeon HD[45]xxx
      2. [HOW TO] Modification of AMD FB + Clover injection - ATi

VIII. Nvidia GeForce Graphics - HDMI, DP, DVI; max 4

  1. Nvidia 10xx/9xx/7xx/6xx/5xx/4xx
    1. 10xx/9xx/750/750Ti; Nvidia Web drivers required
      1. 10xx/Nvidia web driver; no HDMI audio on HDMI port after boot, fixes:
        • Hot plug HDMI display after Desktop appears
        • DVI2HDMI adapter
        • DP2HDMI adapter
    2. GTS 450, GTX 550/550ti, GTX 560/560ti; no native support
      1. 560/560ti/Quadro 4000: Patch AppleHDAController binary
        • Find: de 10 ea 0b
        • Rplc: de 10 e5 0b
      2. 550/550ti: Patch AppleHDA binary
        • Find: 14 00 de 10
        • Rplc: 15 00 de 10
      3. 450: no known fix

IX. Uninstall AppleHDA HDMI Audio - Remove method

  1. Intel, remove:
    • EFI/CLOVER/ACPI/patched/SSDT-HDMI-HD....aml
    • EFI/CLOVER/KernelAndKextPatches/KextsToPatch/AppleIntelxxxGraphics...kext
  2. AMD, remove:
    • EFI/CLOVER/ACPI/patched/SSDT-HDMI-AMD-....-.aml
    • EFI/CLOVER/KernelAndKextPatches/KextsToPatch/AMDxxxxController.kext
  3. Nvidia, remove:
    • EFI/CLOVER/ACPI/patched/SSDT-HDMI-NVIDIA-....-.aml

X. Additional Information

  1. HDMI audio: audio_hdmi_guides
  2. HDEF audio: audio_ALC_guides

XI. Deprecated Methods

ssdt injection - Most systems; install ssdt and restart

  1. Download [Guide]-OSX-hdmi_audio-hdef_audio-ssdt.pdf.zip
  2. Note - BIOS/OS X updates do not effect ssdts
  3. edited ssdts, see dsdt/ssdt HDMI audio Guides below
    1. HD6x0: audio_hdmi_200series

    2. HD5x0: audio_hdmi_100series
    3. ssdt_hdmi-hd6000+
    4. ssdt_hdmi-hd4600+
    5. ssdt_hdmi-hd4000
    6. ssdt_hdmi-hd3000
    7. ssdt_hdmi-amd
    8. ssdt_hdmi-nvidia
    9. ssdt_hdef
  4. kext edits, if required, see dsdt/ssdt HDMI audio Guides below

dsdt edits - All systems: extract dsdt, patch, install edited dsdt

  1. Download[Guide]-OSX-hdmi_audio-hdef_audio-dsdt.pdf.zip
  2. Notes
    1. BIOS update require same dsdt edits on new installed BIOS
    2. OS X updates do not effect dsdts.
    3. All Intel systems have a dsdt
    4. AMD/Nvidia HDMI audio is installed
  3. dsdt edits/MaciASL, see dsdt/ssdt HDMI audio Guides below
  4. kext edits, if required, see dsdt/ssdt HDMI audio Guides below

Bootloader HDMI audio

  1. All supported configurations
    1. Clover
      1. with dsdt/ssdt and kext patches, above
  2. HD5x0 (Clover only, credit: RehabMan)
    1. [Guide]_HD5x0-hdmi_audio_(clover_or_ssdt).pdf
  3. HD4000/HD3000
    1. Clover/EFI/CLOVER/Config.plist
      1. Devices/Audio/Inject/3
      2. Devices/UseIntelHDMI/YES
      3. Graphics/Inject/Intel/YES
    2. Chameleon: Extra/org.chameleon.Boot.plist
      1. HDAEnabler=Yes
      2. HDEFLayoutID=03000000
  4. AMD/Nvidia (1st 2 ports only)
    1. Chameleon: Extra/org.chameleon.Boot.plist
      1. EnableHDMIAudio=Yes

dsdt/ssdt HDMI audio Guides(download appropriate guide from repo)

  1. HD6000+/Desktop/BRIX/NUC: audio_hdmi_9series
  2. HD4600+/Desktop/BRIX/NUC: audio_hdmi_8series
  3. HD4000/Desktop/BRIX/NUC: audio_hdmi_hd4000
  4. HD3000/Desktop: audio_hdmi_hd3000
  5. 5 Series/X58/X79/X99/Desktop: audio_hdmi_5series (dsdt edits only)
  6. Discrete Graphics (if installed)
    1. [Guide]-OSX-AMD-hdmi_audio.pdf.zip
    2. [Guide]-OSX-Nvidia-hdmi_audio.pdf.zip

Credit:

TimeWalker75a Post #118, Intel HD Graphics 4600 (Haswell) working displayport

PikeRAlpha Haswell HDAU solution | Pike's Universum

bcc9 Post #11, http://www.insanelym....ort/?p=1934889

VCH888, Post 760 ALC889A, Gigabyte (Intel): now having a working front mic - Page 38 - Sound - InsanelyMac Forum



#2
Sharky04

Sharky04

    InsanelyMac Protégé

  • Members
  • Pip
  • 4 posts

1. Description of problem

 

No HDMI Audio Device (only 3x Realtek Line Out and 1x Realtek Digital Output)

 

2. OS/Hardware

 

Sierra 10.12.5, GA-P55M-UD2 Rev 1.0 F11, Core i7 860 Lynnfield, Geforce 560 Ti Fermi

 

3. Procedure

 

 
Patched this in Clover Configurator:
 
AppleHDAController binary
Find: de 10 ea 0b
Rplc: de 10 e5 0b
 
Then used the audio_cloverHDMI script (output attached). The script downloaded and installed a kext.
 
After reboot still no hdmi audio device.
 
4. AppleHDA.kext
 
S/L/E/AppleHDA.kext is installed with added patches by audio_cloverALC-130 to make Realtek Sound functional
 
5. IOReg is attached
 
6. Screenshots attached
 
7. Boot log attached
 
8. MaciASL
 
I was not sure here if I had to load my DSDT.aml into MaciASL before exporting, I did!
 
9. Terminal audio_cloverHDMI output attached
 
10. Chameleon not installed
 
11. config.plist, boot log, dsdt.aml all attached (ssdt.aml not on system)

Attached Files



#3
toleda

toleda

    InsanelyMac Deity

  • Gurus
  • 2,063 posts
  • Gender:Male

 

No HDMI Audio Device 

 
Patched this in Clover Configurator:
 
AppleHDAController binary
Find: de 10 ea 0b
Rplc: de 10 e5 0b
 

Try:

AppleHDAController binary
Find: de 10 ea 0b
Rplc: de 10 0c 0e


#4
Sharky04

Sharky04

    InsanelyMac Protégé

  • Members
  • Pip
  • 4 posts

Thanks for the suggestion.

 

After changing the bytes in the patch the DCPI manager now displays Nvidia (unknown) in the second row instead of nothing as before, but unfortunately there is still no HDMI audio device in settings.

Attached Files



#5
Sharky04

Sharky04

    InsanelyMac Protégé

  • Members
  • Pip
  • 4 posts

Got it finally working by disabling AppleHDA patches in configurator! RealTek analog devices are now gone, but HDMI sound device is present and working!

 

 

 

Attached Files



#6
toleda

toleda

    InsanelyMac Deity

  • Gurus
  • 2,063 posts
  • Gender:Male

Got it finally working by disabling AppleHDA patches in configurator! 

Not related, more likely a kernel cache problem.  

Back up config.plist, run cloverALC, add back HDMI patch, restart.



#7
Sharky04

Sharky04

    InsanelyMac Protégé

  • Members
  • Pip
  • 4 posts

You are right! Done as you have suggested, and now both RealTek and HDMI devices are available!



#8
toleda

toleda

    InsanelyMac Deity

  • Gurus
  • 2,063 posts
  • Gender:Male

both RealTek and HDMI devices are available!

Thanks, Post #1 updated with correct Controller edit.



#9
hottt

hottt

    InsanelyMac Protégé

  • Members
  • Pip
  • 3 posts

Hi, I have a problem. GTX 1050Ti does not have hdmi audio. Motherboard Z97-C
When hdmiaudio.kext is added, hdmi output appears, but unfortunately there are no playable devices. I have a TV 21 "LG. On windows everything works.

 

4b2dc600a73a7.jpg

 

80a4d66ac3c90.jpg



#10
toleda

toleda

    InsanelyMac Deity

  • Gurus
  • 2,063 posts
  • Gender:Male

When hdmiaudio.kext is added,

Only Post #1 methods support with this thread., oiff topic. 



#11
RhanCandia

RhanCandia

    InsanelyMac Protégé

  • Members
  • Pip
  • 8 posts

1. No HDMI Audio on GTX 1060 (used to work on my 960, upgraded, now it’s not working)

 

2. 10.12.6 / H110M-H DDR4 / F20a / i3-6100 / GTX 1060

 

3. http://www.insanelym...hda-hdmi-audio/

 

4. S/L/E/AppleHDA.kext is installed with added patches by audio_cloverALC-120 to make Realtek Sound functional

 

 

* Everything else is attached.

Attached Files



#12
toleda

toleda

    InsanelyMac Deity

  • Gurus
  • 2,063 posts
  • Gender:Male

1. No HDMI Audio on GTX 1060 

Nvidia web driver/Pascal: HDMI audio on HDMI port does not work on boot.

Fixes:

1. DP2HDMI adapter

2. DVI2HDMI adapter

3. Hot plug HDMI connector after boot

 

ioreg.txt is not helpful See Post #1/Problem Reporting/5. Copy of IOReg - IOReg_v2.1/File/Save a Copy As…, verify file (Tools 1.)

Attach new IOReg



#13
RhanCandia

RhanCandia

    InsanelyMac Protégé

  • Members
  • Pip
  • 8 posts

Nvidia web driver/Pascal: HDMI audio on HDMI port does not work on boot.

Fixes:

1. DP2HDMI adapter

2. DVI2HDMI adapter

3. Hot plug HDMI connector after boot

 

ioreg.txt is not helpful See Post #1/Problem Reporting/5. Copy of IOReg - IOReg_v2.1/File/Save a Copy As…, verify file (Tools 1.)

Attach new IOReg

 

Tried hot plugging HDMI but no luck. Haven't tried and cant settle with workaround 1 and 2.

I can't figure out how IOReg tool works. Will s screenshot help? See attached.

Attached Files



#14
toleda

toleda

    InsanelyMac Deity

  • Gurus
  • 2,063 posts
  • Gender:Male

 can't figure out how IOReg tool works. Will s screenshot help? See attached.

Menu Bar

IORegistryExplorer/

File/

Save a Copy As…

Attach the saved file.



#15
RhanCandia

RhanCandia

    InsanelyMac Protégé

  • Members
  • Pip
  • 8 posts

That's exactly how did it for the first ioreg file I attached. Here's another attempt.

 

PS: Just remove the .txt extension. Couldn't upload an IOreg file directly.

Attached Files



#16
toleda

toleda

    InsanelyMac Deity

  • Gurus
  • 2,063 posts
  • Gender:Male

 Just remove the .txt extension. Couldn't upload an IOreg file directly.

Useless. Attach .zip.



#17
RhanCandia

RhanCandia

    InsanelyMac Protégé

  • Members
  • Pip
  • 8 posts

Useless. Attach .zip.

 

Here you go. Thanks.

Attached Files



#18
toleda

toleda

    InsanelyMac Deity

  • Gurus
  • 2,063 posts
  • Gender:Male

Here you go.

IOReg is correct.

10xx/Nvidia web driver; no HDMI audio on HDMI port after boot, fixes:
1. DP2HDMI adapter
2. DVI2HDMI adapter
3. Hot plug HDMI display after Desktop appears



#19
RhanCandia

RhanCandia

    InsanelyMac Protégé

  • Members
  • Pip
  • 8 posts

IOReg is correct.

10xx/Nvidia web driver; no HDMI audio on HDMI port after boot, fixes:
1. DP2HDMI adapter
2. DVI2HDMI adapter
3. Hot plug HDMI display after Desktop appears

 

Thanks. Hot plugging isn't working for me. I guess I'm out of luck. I don't have a DP or DVI port right now.



#20
toleda

toleda

    InsanelyMac Deity

  • Gurus
  • 2,063 posts
  • Gender:Male

v1.1: 10/10/17 - 10.13 support, Kaby Lake/cloverHDM support.  dsdt, ssdt, bootloader HDMI audio methods deprecated







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2017 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy