Mountain Lion HDMI Audio - AMI DSDT

Discussion in 'HDMI Audio' started by toleda, Sep 4, 2012.

Tags:
  1. toleda

    toleda Moderator

    Joined:
    May 20, 2010
    Messages:
    20,359
    Mobo:
    Asus Maximus VII Impact
    CPU:
    Core i7-4770K
    Graphics:
    HD7750 + HD4600
    Mac:
    iMac, MacBook Pro, Mac mini
    Classic Mac:
    512K, LC, Power Mac
    Mobile Phone:
    iOS
    Sep 4, 2012 at 1:08 AM #1
    toleda

    toleda Moderator

    Joined:
    May 20, 2010
    Messages:
    20,359
    Mobo:
    Asus Maximus VII Impact
    CPU:
    Core i7-4770K
    Graphics:
    HD7750 + HD4600
    Mac:
    iMac, MacBook Pro, Mac mini
    Classic Mac:
    512K, LC, Power Mac
    Mobile Phone:
    iOS
    [​IMG]
    AMI HDMI Audio
    OS X HDMI audio/AMI dsdt edits

    v2 Mavericks HDMI Audio Guides
    See Post #1 Mavericks: HDMI Audio - AppleHDA [Guide]

    v1 Mavericks HDMI Audio Guides (Deprecated - 10/1/2014)
    This guide is no longer supported
    Do not expect a reply if you post to this thread.

    Update 6/6/13 - New guide, see Easy Guide] ML: UEFI HDMI Audio
    toleda/audio_hdmi_uefi · GitHub
    Configure MaciASL/Preferences/Sources/+ with URL:
    Code (Text):
    https://raw.github.com/toleda/audio_hdmi_uefi/master

    Update 3/22/13 - ML: HDMI Audio - New Guides


    HD4000/7 Series MB dsdt edits - Desktop/Laptop/Intel NUC
    toleda/audio_hdmi_hd4000 · GitHub
    Configure MaciASL/Preferences/Sources/+ with URL:
    Code (Text):
    https://raw.github.com/toleda/audio_hdmi_hd4000/master
    HD3000/6 Series MB dsdt edits - Desktop
    toleda/audio_hdmi_hd3000 · GitHub
    Configure MaciASL/Preferences/Sources/+ with URL:
    Code (Text):
    https://raw.github.com/toleda/audio_hdmi_hd3000/master
    5 Series MB dsdt edits - Desktop
    toleda/audio_hdmi_5series · GitHub
    Configure MaciASL/Preferences/Sources/+ with URL:
    Code (Text):
    https://raw.github.com/toleda/audio_hdmi_5series/master
    Mountain Lion HDMI Audio - AMI dsdt, Extra/dsdt.aml (1st line)
    DefinitionBlock ("./dsdt.aml", "DSDT", 2, "ALASKA", "A M I", 0x00000014)

    Introducing a new simple and easy HDMI Audio dsdt editing tool for OS X HDMI audio. Based on MaciASL, the Apply button automatically adds the HDMI audio dsdt edits to your dsdt. This version edits AMI dsdts

    Benefits
    1. Automated HDMI audio dsdt editing
    2. Installs HD3000 or HD4000 integrated graphics HDMI audio dsdt edits
    3. Installs AMD/Nvidia discrete graphics card HDMI audio dsdt edits
    4. No copy, no paste, no finding the right place to paste….

    Before You Start:
    1. OS X does not provide HDMI audio controls (No volume, no mute, no balance, etc.)
    2. The connected HDMI device (TV, receiver, etc.) provides any and all audio controls

    Requirements
    1. Intel
    1a. Ivy Bridge motherboard (7 Series)
    1b. Sandy Bridge motherboard (6 series)
    1c. Core i/Nehalem motherboard (5 Series)
    2. OS X
    2a. Mountain Lion - 10.8 and newer
    2b. Lion - 10.7.4 and newer
    3. dsdt - no compile errors and no exceptions
    4. Motherboard onboard audio codec
    4a. Realtek supported audio codecs (8xy): 885, 887, 888, 889, 892, 898
    4b. Unsupported audio codecs: ML HDMI audio works with any unsupported codec, no onboard audio
    5. AppleHDA.kext (one of the following)
    5a. ML: Native AppleHDA.kext (unsupported audio codecs)
    5b. ML: MultiBeast 5.1.3 or newer/Audio/Realtek ALC8xx/With DSDT/ALC...
    5c. Lion: MultiBeast 4.6.1 Drivers & Bootloaders/Kexts & Enablers/Audio/Realtek ALC8xx/Patched AppleHDA/ALC...
    6. OS X recognized and enabled graphics with HDMI codec.
    7. Chimera - 1.11 or newer

    Special HDMI Audio Considerations
    1. AMD/Nvidia/Intel
    1a. HDMI audio works with or without onboard audio working
    1b. For unknown reasons, some systems do not successfully enable HDMI audio
    2. AMD
    2a. AMD and Nvidia dsdt edits are the same
    2b. HDMI Device_ID and/or Framebuffer edits may be required.
    2c. DVI ports do not support HDMI audio
    2d. Surround sound (Encoded Digital Audio) does not work with GE=No
    3. Nvidia
    3a. AMD and Nvidia dsdt edits are the same
    3b. All Nvidia HDMI device-ids native to ML AppleHDA
    3c. HDMI audio available on all ports (DVI2HDMI adapter)
    4. Intel
    4a. dsdt edits are different for HD3000 and HD4000
    4b. Framebuffer edits may be required for 1 or 2 HDMI outputs
    4c. 2x HDMI audio available by deleting one audio output device (Line Out or Optical)
    5. HDMI audio support not available with
    5a. Multiple discrete graphics cards
    5b. Discrete graphics cards installed in a slot other than the primary slot (X16)

    Tools
    1. MaciASL (dsdt editor) MaciASL - Browse Files at SourceForge.net
    2. IORegistryExplorer see [Guide] How to Make a Copy of IOReg
    3. Applications/Utilities/Console
    4. Applications/TextEdit
    5. Carbon Copy Cloner or SuperDuper

    Mountain Lion Audio ID (10.8 AppleHDA.kext_v2.3.0 or newer)
    1. AMD/Nvidia HDMI audio
    1a. Audio ID: 1 for 5/6 port on board audio
    1b. Audio ID: 2 for 3 port on board audio
    2. HD3000/HD4000 HDMI audio
    2a. Audio ID: 3 for 3/5/6 port onboard audio

    Mountain Lion Audio ID (10.7.4 AppleHDA.kext_v2.2.0 only)
    1. See Note 1 below

    Lion Audio ID (10.7.4 AppleHDA.kext_v2.2.0 only, available at MultiBeast 4.6.1)
    1. See Note 1 below

    Installation - Detailed
    1. See Downloads/ML_hdmi_audio_dsdt_editing_kit/Read Me First- ML_hdmi_audio_dsdt_edits-AMI

    Attachments
    1. ML_HDMI Audio Edits - AMI dsdts
    1a. View attachment HD4000_AMI_EFI_hdmi_audio_dsdt_editing_kit.zip
    1b. View attachment HD3000_AMI_EFI_hdmi_audio_dsdt_editing_kit.zip
    1c. View attachment HD3000_AMI_BIOS_hdmi_audio_dsdt_editing_kit.zip
    1d. View attachment 5-Series_AMI_BIOS_hdmi_audio_dsdt_editing_kit.zip
    2. Special Configurations
    2a. View attachment HD4000 graphics on 6 Series.zip
    2b. View attachment HD3000 graphics on 7 Series.zip

    Mountain Lion HDMI Audio dsdt Edits - Two Steps
    1. Preparation
    2. Apply dsdt edits

    Mountain Lion HDMI Audio dsdt Edits - Preparation
    1. Backup dsdt.aml
    2. Make bootable backup of system (Carbon Copy Cloner or SuperDuper)
    3. Make a copy of IOReg

    Key Information/IOReg
    1. Determine discrete graphics device names and address
    1a. Example: PEG0@1
    2. Determine integrated graphics device names and address (N/A - 5 series)
    2a. Example: GFX0@2
    3. Verify MEIDriver (6 and 7 Series only)
    3a. Example: MEI device_id 3a1e
    4. Verify HDEF
    4a. Example: HDEF/layout-id 0x001 0x00 0x00 0x00
    4b. If no HDEF, see ML: How to Add or Edit dsdt/HDEF
    5. Determine motherboard audio codec device_id
    5a. Example: IOReg/10ec0899

    Evaluate HDMI Audio dsdt edit file with Key Information/IOReg
    1. Example: 7 Series EFI
    1a. layout-id: 0x01, 0x00, 0x00, 0x00 < 0x82, 0x03, 0x00, 0x00
    1b. discrete graphics: PEGP@1 < PEGO@1
    1c. integrated graphics: IGPU@2 < GFX0@2

    Mountain Lion HDMI Audio - dsdt Edits

    Edit Patch file - TextEdit
    1. TextEdit/Open Desktop/.….._hdmi_audio_dsdt_editing_kit/hdmi_audio_ami….txt
    2. TextEdit/Edit layout-id/01 to 02 or 03
    3. TextEdit/discrete graphics/Find PEG0/Replace (table above) - if necessary
    4. TextEdit/integrated graphics/Find GFX0/Replace (table above) - if necessary
    5. Verify edits
    6. Save

    Apply Patch file - MaciASL1. MaciASL/File/Open dsdt.aml
    2. MaciASL/Patch/Open Desktop/.….._hdmi_audio_dsdt_editing_kit/hdmi_audio_ami….txt
    3. MaciASL/Patch/Apply
    4. MaciASL/Compile
    If necessary, Special Configuration/HD4000 graphics on 6 Series or HD3000 graphics on 7 Series
    5. MaciASL/Patch/Open HD4000 graphics on 6 Series or HD3000 graphics on 7 Series
    5a. MaciASL/Patch/Apply
    5b. MaciASL/Compile

    Verify Edits - MaciASL
    1. MaciASL/Edit/Find HDEF (1x), represented as Device (HDEF)
    2. MaciASL/Edit/Find PEGP (1x), represented as Device (PEGP)
    3. MaciASL/Edit/Find GFX0 (1x), represented as Device (GFX0)
    4. MaciASL/Edit/Find HDAU (1x), represented as Device (HDAU)
    5. MaciASL/Edit/Find IGPU (1x), Next, until represented as Device (IGPU) - N/A 5 Series dsdt

    Save dsdt - MaciASL
    1. MaciASL/File/Save .aml As… Desktop/.….._hdmi_audio_dsdt_editing_kit/dsdt. aml (add extension)

    Install dsdt.aml - MaciASL1. MaciASL/File/Save .aml As…Extra/dsdt.aml (add extension)

    Mountain Lion HDMI Audio - Kext Edits

    Mountain Lion HDMI Audio - Kext Edits
    1. No kext edits required (AppleHDA.kext, AppleIntelFramebufferCapri.kext, AppleIntelSNBGraphicsFB.kext)
    2. Exception; some supported AMD graphics may required framebuffer edits, see Lion HDMI Audio - Part 3a: Kext Edits - AMD (Mountain Lion procedure same as Lion)

    Lion HDMI Audio - Kext Edits
    1. Lion HDMI Audio - Part 3a: Kext Edits - AMD
    2. Lion HDMI Audio - Part 3b: Kext Edits - Nvidia
    3. Lion HDMI Audio - Part 3c: Kext Edits - Intel HD3000 Revised

    Mountain Lion HDMI Audio - Verify S/L/E and org.chameleon.Boot.plist
    1. Delete any and all audio enablers (HDAEnabler8??), helpers (ALC8??), etc.; AppleHDA.kext only.
    2. Delete any and all graphics enablers and property injectors. DSDT injection only.

    Mountain Lion HDMI Audio - Restart

    Mountain Lion HDMI Audio - Verify HDMI Audio
    1. System Preferences/Sound/Outputs
    [​IMG]

    Troubleshooting
    1. Verify HDMI device connected
    1a. System Information/Graphics/Display/HDMI device name/Television/Yes
    2. Verify Extra/dsdt.aml is
    2a. a .aml file
    2b. edited
    3. Run IOReg
    3a. Verify Devices (see Verify Edits - DSDT Editor above)
    4. Problem Reporting
    4a. Motherboard/processor/OS and version/graphics
    4b. Procedure/Guide Used
    4c. dsdt
    4d. copy of IOReg

    Notes
    1. For Lion AppleHDA.kext (10.7.4, v2.2.0) Audio IDs see Optimized Realtek Lion 10.7.4 AppleHDA

    dsdt Edits
    -Read Me First- ML_hdmi_audio_dsdt_edits-Award

    Credits:
    VCH888; http://www.insanelymac.com/forum/index.php?showtopic=140941&view=findpost&p=1448833
    proteinshake: http://www.insanelymac.com/forum/index.php?showtopic=280372
     
    Last edited by a moderator: Sep 27, 2016
  2. beavjamz89

    beavjamz89

    Joined:
    Sep 1, 2012
    Messages:
    16
    Mobo:
    GA-q77-d2h
    CPU:
    i5 3570k Ivy Bridge
    Graphics:
    Intel HD 4000 (onboard)
    Mac:
    Mac mini
    Sep 8, 2012 at 7:47 AM #2
    beavjamz89

    beavjamz89

    Joined:
    Sep 1, 2012
    Messages:
    16
    Mobo:
    GA-q77-d2h
    CPU:
    i5 3570k Ivy Bridge
    Graphics:
    Intel HD 4000 (onboard)
    Mac:
    Mac mini
    Toleda your awesome at what you do, but I'm missing something when going through your guide to get my HDMI audio working.

    Everything on my build is working except the audio over hdmi. I have used MultiBeast with the "w/out DSDT-ALC887" and all onboard audio seems to be working fine (with the occasionaly "pop" when an audio blip will play) but I really would like to get the HDMI audio functioning so I can put this build to rest.

    So far I have verified the following through IOReg: GFX0@2, MEI device_id 3a1e, and HDEF/layout-id "<77 03 00 00>" I also have DSDT editor. But I must be missing something yet or am getting lost in some process.

    Would you be able to simplify a set of instructions or specify a patch for my build with ML, Ivy Bridge, and UEFI (GA-Q77-D2H).

    You're the subject matter expert on this and I would greatly appreciate anything you could help me with.
    Thanks in advance!
     
  3. beavjamz89

    beavjamz89

    Joined:
    Sep 1, 2012
    Messages:
    16
    Mobo:
    GA-q77-d2h
    CPU:
    i5 3570k Ivy Bridge
    Graphics:
    Intel HD 4000 (onboard)
    Mac:
    Mac mini
    Sep 8, 2012 at 7:26 PM #3
    beavjamz89

    beavjamz89

    Joined:
    Sep 1, 2012
    Messages:
    16
    Mobo:
    GA-q77-d2h
    CPU:
    i5 3570k Ivy Bridge
    Graphics:
    Intel HD 4000 (onboard)
    Mac:
    Mac mini
    I got the "HDMI / Display Port Output" to show up in Audio/Devices, but I don't have the selection in system preferences/sound. Also, my SPIDF option went away, and now I have "Optical digital-out port"

    Any help in getting the HDMI/Display Port Output to show up in System Preferences/Sound would be greatly appreciated!
     
  4. toleda

    toleda Moderator

    Joined:
    May 20, 2010
    Messages:
    20,359
    Mobo:
    Asus Maximus VII Impact
    CPU:
    Core i7-4770K
    Graphics:
    HD7750 + HD4600
    Mac:
    iMac, MacBook Pro, Mac mini
    Classic Mac:
    512K, LC, Power Mac
    Mobile Phone:
    iOS
    Sep 8, 2012 at 9:49 PM #4
    toleda

    toleda Moderator

    Joined:
    May 20, 2010
    Messages:
    20,359
    Mobo:
    Asus Maximus VII Impact
    CPU:
    Core i7-4770K
    Graphics:
    HD7750 + HD4600
    Mac:
    iMac, MacBook Pro, Mac mini
    Classic Mac:
    512K, LC, Power Mac
    Mobile Phone:
    iOS
    You are not on Voodoo. Optical Digital-Out is SPDIF Toslink out. Attach a copy of IOReg. Guide] How to Make a Copy of IOReg.
     
  5. beavjamz89

    beavjamz89

    Joined:
    Sep 1, 2012
    Messages:
    16
    Mobo:
    GA-q77-d2h
    CPU:
    i5 3570k Ivy Bridge
    Graphics:
    Intel HD 4000 (onboard)
    Mac:
    Mac mini
    Sep 8, 2012 at 11:42 PM #5
    beavjamz89

    beavjamz89

    Joined:
    Sep 1, 2012
    Messages:
    16
    Mobo:
    GA-q77-d2h
    CPU:
    i5 3570k Ivy Bridge
    Graphics:
    Intel HD 4000 (onboard)
    Mac:
    Mac mini
    View attachment IOReg broken HDMI audio.zip

    Hi toleda, I have attached the IOreg file. The only reason I mentioned the SPDIF/ Digital Optical out note, is because before I did the DSDT edit, my other sound option was listed as "SPIDIF" and not "Digital Optical Out". I didn't know if that would have made any difference in trouble shooting the problem here that the listing changed from SPDIF to the digital optical.

    Thanks!
     
  6. toleda

    toleda Moderator

    Joined:
    May 20, 2010
    Messages:
    20,359
    Mobo:
    Asus Maximus VII Impact
    CPU:
    Core i7-4770K
    Graphics:
    HD7750 + HD4600
    Mac:
    iMac, MacBook Pro, Mac mini
    Classic Mac:
    512K, LC, Power Mac
    Mobile Phone:
    iOS
    Sep 9, 2012 at 12:13 AM #6
    toleda

    toleda Moderator

    Joined:
    May 20, 2010
    Messages:
    20,359
    Mobo:
    Asus Maximus VII Impact
    CPU:
    Core i7-4770K
    Graphics:
    HD7750 + HD4600
    Mac:
    iMac, MacBook Pro, Mac mini
    Classic Mac:
    512K, LC, Power Mac
    Mobile Phone:
    iOS
    HD4000 HDMI audio is not broken, the Audio_ID is wrong. Set it to 887 for 887 onboard audio and AMD/Nvidia HDMI audio. The Audio_ID is 387 for 887 onboard audio and HD3000/HD4000 HDMI audio.

    Edit dsdt/HDEF/layout-id:
    from 0x77, 0x03, 0x00, 0x00
    to 0x83, 0x01, 0x00, 0x00.
    Install dsdt and restart.

    Note, when you install the ML_AppleHDA_v2.3.0, the layout-id changes to 0x03, 0x00, 0x00, 0x00.
     
  7. beavjamz89

    beavjamz89

    Joined:
    Sep 1, 2012
    Messages:
    16
    Mobo:
    GA-q77-d2h
    CPU:
    i5 3570k Ivy Bridge
    Graphics:
    Intel HD 4000 (onboard)
    Mac:
    Mac mini
    Sep 9, 2012 at 2:36 AM #7
    beavjamz89

    beavjamz89

    Joined:
    Sep 1, 2012
    Messages:
    16
    Mobo:
    GA-q77-d2h
    CPU:
    i5 3570k Ivy Bridge
    Graphics:
    Intel HD 4000 (onboard)
    Mac:
    Mac mini
    okay, great. I'll give that a try.
     
  8. surfstu

    surfstu

    Joined:
    Jun 17, 2010
    Messages:
    94
    Mobo:
    z77 ds3h
    CPU:
    3570k
    Graphics:
    HD4000
    Sep 11, 2012 at 3:52 AM #8
    surfstu

    surfstu

    Joined:
    Jun 17, 2010
    Messages:
    94
    Mobo:
    z77 ds3h
    CPU:
    3570k
    Graphics:
    HD4000
    hi Toleda,

    I have Z77 ds3h and HD3000 (2500k)

    Just wandered if you know whether the incompatibility between Z77 and HD3000 will cause any unforseen issues with this guide.

    I have succesfully enabled the graphics by changing the MEI device ids in AppleIntelSNBGraphicsFB.kext and AppleIntelFramebufferCapri.kext using this great guide:

    www.tonymacx86.com/150-enabling-hd-...therboards-hd-4000-6-series-motherboards.html

    Have also enabled 887 Audio using patched AppleHDA v2.3.0 and HDAEnabler1

    Have studied your guide and compiled a clean dsdt, the system boots fine.

    I then ran Mountain Lion HDMI Audio patch for IVY Bridge and the HD3000 on Z77 patch in dsdteditor

    I then deleted HDAEnabler1 and rebuilt cache

    Now the system will not boot, I can of course use DSDT=null at chimera to boot with no onboard audio

    Where am i going wrong? Have attached clean working dsdt, edited dsdt (not working) and IOreg

    cheers Stu
     

    Attached Files:

  9. toleda

    toleda Moderator

    Joined:
    May 20, 2010
    Messages:
    20,359
    Mobo:
    Asus Maximus VII Impact
    CPU:
    Core i7-4770K
    Graphics:
    HD7750 + HD4600
    Mac:
    iMac, MacBook Pro, Mac mini
    Classic Mac:
    512K, LC, Power Mac
    Mobile Phone:
    iOS
    Sep 11, 2012 at 4:35 AM #9
    toleda

    toleda Moderator

    Joined:
    May 20, 2010
    Messages:
    20,359
    Mobo:
    Asus Maximus VII Impact
    CPU:
    Core i7-4770K
    Graphics:
    HD7750 + HD4600
    Mac:
    iMac, MacBook Pro, Mac mini
    Classic Mac:
    512K, LC, Power Mac
    Mobile Phone:
    iOS
    There is a problem. You should not use the 7 series edit kit for HD3000. The reason you can't get to the Desktop is the wrong graphics kexts are loading. Try this:

    1. Start with the native dsdt and take it to an error free compile
    2. Download the HD3000_AMI_EFI_hdmi_audio_dsdt_editing_kit
    3. Apply the patch per the Guide
    4. Install the new dsdt
    5. Because you have already patched the correct kexts, no dsdt edit is required for MEI at this time
    6. Restart.

    Reply with the new edited dsdt and a new IOReg.
     
  10. surfstu

    surfstu

    Joined:
    Jun 17, 2010
    Messages:
    94
    Mobo:
    z77 ds3h
    CPU:
    3570k
    Graphics:
    HD4000
    Sep 11, 2012 at 11:35 AM #10
    surfstu

    surfstu

    Joined:
    Jun 17, 2010
    Messages:
    94
    Mobo:
    z77 ds3h
    CPU:
    3570k
    Graphics:
    HD4000
    Thank you for your time...

    I have reinstalled HDAEnabler1.kext (is this correct?)

    I have used a clean DSDT and applied hdmi_audio_ami_efi_hd3000.txt patch without any edits

    Rebooted and saved ioreg

    I have attached the new edited dsdt and ioreg

    cheers Stu
     

    Attached Files:

Share This Page