Contribute
Register

Optimized AppleHDA for Realtek ALC 889 on Lion - Update

Status
Not open for further replies.

toleda

Moderator
Joined
May 19, 2010
Messages
22,834
Motherboard
Asus Maximus VII Impact
CPU
i7-4770K
Graphics
RX 560 + HD4600
Mac
  1. iMac
  2. MacBook Pro
  3. Mac mini
Classic Mac
  1. 512K
  2. LC
  3. Power Mac
Mobile Phone
  1. iOS
2787035531_066ba1ee85.jpeg
ALC889 edited Lion AppleHDA.kext


Update 6/25/2012 -
10.7.4 AppleHDA.kext available in MultiBeast 4.6.0 and newer


The ALC889 edited Lion AppleHDA.kext is available for Lion 10.7.2/.3 and motherboards with the Realtek ALC889 audio codec . Supports most Lion analog and digital audio capabilities. Users interested in capabilities beyond standard on board audio should consider this option, includes HDMi audio (discrete and HD3000 integrated), front panel audio and more. This kext supports three Audio IDs: Audio ID: 889 for full 889 analog audio on any 889 motherboard with or without discrete graphics card HDMI audio (Note 1), lAudio ID: 389 for 889 analog audio on a 889 Sandy Bridge motherboard with HD3000 HDMI audio (Note 2) and Audio ID 289 for 3 port 889 analog audio on any 889 motherboard with or without discrete graphics card HDMI audio (Note 1).

Changes
1. 10.7.4 AppleHDA.kext
2. Ivy Bridge Audio Support

Benefits
1. 889 on board audio
2. HDMI audio, if configured
3. Front panel audio with auto mute
4. Optical Surround Sound (Note 3)
5. Improved audio quality
6. Less popping
7. Easy installation
8. Nearly native

Requirements
1. 10.7.2 or newer - 64 bit kernel
2. ALC889 audio codec
3. dsdt w/HDEF/Layout-id is 0x79 0x03 0x00 0x00 (Note 5)
a. For HD3000 HDMI audio; dsdt w/HDEF/Layout-id is 0x85 0x01 0x00 0x00
b. For 3 port motherboard audio; dsdt w/HDEF/layout-id is 0x21 0x01 0x00 0x00

Which Audio ID?
1. Use Audio ID 289 for 3 audio port motherboards (on board, AMD or Nvidia HDMI audio)
2. Use Audio ID 389 only with HD3000 HDMI audio enabled
3. Use Audio ID 889 for all audio needs (on board, AMD or Nvidia HDMI audio)

Configurations
Audio_Configurations_889.png


Installation
Available in MultiBeast_v4.6 and newer
1. Select: Drivers & Bootloaders/Kexts & Enablers/Audio/Realtek ALC8xx//Patched AppleHDA/ALC889
If no DSDT or no DSDT/HDEF, select both 1 and 2. If DSDT installed, skip Step 2
2. Select: Drivers & Bootloaders/Kexts & Enablers/Audio/Realtek ALC8xx/Non-DSDT HDAEnabler/ALC889
3. Always select: System Utilities

Installation Notes
1. Backup S/L/E/AppleHDA.kext before System Update
2. If a Patched AppleHDA selected, do not Select ALC8xxHDA or AppleHDA Rollback.
3. if a DSDT is installed, do not install an enabler

Attachments
1. 889_Lion_AppleHDA/Read_Me_First-889_AppleHDA.kext
(Revised 7/8/12 - Audio_ID: 889, hex is 0x79, 0x03, 0x00, 0x00)
-Read_Me_First-889_AppleHDA.kext.pdf
2. 892_Lion_Audio_Screenshots; 889 functionality is the same as 892 functionality (x92 = x89)
opt_alc892_audio_screenshots.pdf
Customization
AppleHDA customization, see Customizing the Optimized Lion AppleHDA.kext
1. Add SPDIFIn
2. Manual Mic and Front Mic Selection
3. Manual Speaker and Headphone Selection
4. Add Boost to input (Mic/Rear. Mic/Front and/or Line In)
5. Substitute Gray (Side) for Black (Rear)
6. Add Line Out (Gray/Rear -Rear Speakers) for analog 7.1 Surround Sound
7. Substitute SPDIF-2 Wire Output
8. SPDIF Optical Output/Encoded Digital Audio
9. HDMI audio (AMD/Nvidia/HD3000) - Lion HDMI Audio

10.7.2/.3 Nvidia HDMI Audio Information
If your system boots to a black screen after installing this kext:
1. Reboot with GraphicsEnabler=No
2. Install your AppleHDA.kext backup
3. See this thread (TBA)

Notes
1. HDMI audio dsdt and kext edits required, more information viewtopic.php?f=162&t=31664.
2. HD3000 HDMI audio dsdt and kext edits required.
3. SPDIFOut Encoded Digital Audio (Surround Sound) requires DD/DTS source, DD/DTS player (Plex, XBMC, Boxee) and DD/DTS sound system. Audi MIDI Setup/Audio Devices/Digital Output/ always shows 2 Channel Stereo. VLC encoded digital audio requires the edited Optical Surround/AppleHDA binary. See the Customization Guide (Part 8) - above.
4. For Audio ID: 889, a non-dsdt Enabler can be be installed in S/L/E with MultiBeast.

HDEF Edits:
Audio ID:889, layout-id: 379
The default 889 layout-id is for maximum onboard choices.
Code:
           Device (HDEF)
            {
                Name (_ADR, 0x001B0000)
                Method (_PRW, 0, NotSerialized)
                {
                    Return (Package (0x02)
                    {
                        0x0D, 
                        0x05
                    })
                }

                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x04)
                        {
                            "layout-id", 
                            Buffer (0x04)
                            {
                                0x79, 0x03, 0x00, 0x00
                            }, 

                            "PinConfigurations", 
                            Buffer (Zero) {}
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }

Credits
VHC888 http://www.insanelymac.com/forum/index.php?showtopic=140941
.:ErmaC:. http://www.insanelymac.com/forum/in...0ae2&showtopic=266531&view=findpost&p=1752351
blueking http://tonymacx86.com/viewtopic.php?p=244839#p244839
BigDonkey http://tonymacx86.com/viewtopic.php?p=244748#p244748
RevoGirl http://revogirl.wordpress.com/2012/01/15/how-to-patch-applehda-for-892-and-898-one-file/#respond
Galan-od http://www.tonymacx86.com/viewtopic.php?p=344481#p344481

Screenshots
ALC889%20edited%20Lion%20prefs-sound-input.png

ALC889_edited_Lion_prefs-sound-output-1.png

ALC889_edited_Lion_prefs-sound-output2.png
 

Attachments

  • opt_alc892_audio_screenshots.pdf
    973.2 KB · Views: 530
  • -Read_Me_First-889_AppleHDA.kext.pdf
    29.9 KB · Views: 877
Last edited by a moderator:
Hi, Can you help me out? I can't get sound to work at all. I attached my IOREG

I'm on a new motherboard and i hope it isn't the mono.
 

Attachments

  • Thomas’s Mac Pro.zip
    377.1 KB · Views: 215
diskx said:
Hi, Can you help me out? I can't get sound to work at all. I attached my IOREG

I'm on a new motherboard and i hope it isn't the mono.
There is no on board audio codec showing in IOReg, likely a hardware failure. The codec showing is the HD3000 HDMI audio codec.
 
Oh wow, well this is the second time this has happened with this motherboard. I guess either, a new motherboard is in order or a usb device.
 
Nice! Works great! Thanks (once) again!
 
3. SPDIFOut Encoded Digital Audio (Surround Sound) requires DD/DTS source, DD/DTS player (Plex, XBMC, Boxee) and DD/DTS sound system. Audi MIDI Setup/Audio Devices/Digital Output/ always shows 2 Channel Stereo. VLC encoded digital audio requires optional Optical Surround/AppleHDA binary


where is the optional applehda binary? i can't find it
 
xelanaiznac said:
where is the optional applehda binary? i can't find it
Artifact from the previous version. A customization guide will be available soon. In the meantime, these are the steps:
1. Download 885_Lion_AppleHDA from 885_Lion_AppleHDA
2. 889 SPDIFOut/Encoded Digital Audio - in Terminal, type:
sudo perl -pi -e 's|\x85\x08\xec\x10|\x89\x08\xec\x10|g' Downloads/885_Lion_AppleHDA/AppleHDA.kext/Contents/MacOS/AppleHDA
3. Enter password
4. Copy Downloads/885_Lion_AppleHDA/AppleHDA.kext to Desktop
5. Run KextBeast
6. Restart
 
Its works for Asus maximus vi extreme p69?

:? :? :? :? :? :? :? :?
 
Status
Not open for further replies.
Back
Top