Contribute
Register

Optimized AppleHDA for Realtek ALC 889 on Lion [OLD]

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

5/2/12 - An update is available for this AppleHDA.kext; see 889_Lion_AppleHDA

The ALC889 edited Lion AppleHDA.kext is available for Lion 10.7.2 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 two layout ids: layout_id 889 for full 889 analog audio on any 889 motherboard with or without discrete graphics card HDMI audio (Note 1) and layout_id 389 for 889 analog audio on a 889 Sandy Bridge motherboard with HD3000 HDMI audio (Note 2)

Changes
1. Improved audio quality on all inputs, see Audio Input Level Setting
2. New binary edit, more reliable and stable

Clarification
1. Supports Optical 5.1 Surround Sound (Dolby Digital/DTS - Note 5)

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

Requirements
1. 10.7.2 - 64 bit kernel
2. ALC889 audio codec
3. dsdt w/HDEF/Layout-id is 0x79 0x03 0x00 0x00
Note: For HD3000 HDMI audio; dsdt w/HDEF/Layout-id is 0x85 0x01 0x00 0x00

Capabilities
ALC889%20edited%20Lion%20AppleHDA.png


Audio Input Level Setting
1. Mic (Pink/Motherboard), Line In (Pink/Chassis) and Line In (Blue/Motherboard) levels are the same
2. Three Amplifiers in series
a. Source (mic, player, etc.): set volume high
b. OS X Input Amp (System Preferences/Sound/Input/device): set volume 50%
c. OS X Output Amp (System Preferences/Sound/Output/device, keyboard): set volume to personal preference

Options - AppleHDA binary
1. Standard - Less analog speaker popping, Digital Optical Stereo only
2. Encoded Digital Audio - VLC/Digital Optical surround, analog speakers not recommended
3. Native - no binary editing for audio codec, HDMI audio only (w/dsdt edits), kext testing

Installation
1. See Read_Me_First in 889Beta_Lion_AppleHDA.zip

Attachments
1. 889Beta_Lion_AppleHDA
889Beta_Lion_AppleHDA_v2.1.3-2.zip
2. 889Beta_Lion_Audio_Screenshots
alc889_audio_screenshots.pdf
10.7.2 Nvidia HDMI Audio Issue
If your system boots to a black screen or KPs after installing this kext, three choices:
1. Restore Original AppleHDA
a. Reboot with GraphicsEnabler=No
b. Install your AppleHDA.kext backup
c. See this thread noted below
2. Install Encoded Digital Audio AppleHDA binary per read_me_first instructions
a. Reboot with GraphicsEnabler=No
b. Install the Encoded Digital Audio AppleHDA.kext
c. If problem remains, see this thread noted below
3. See this thread (TBA)

Notes
1. HDMI audio dsdt and kext edits required. More info:http://www.tonymacx86.com/viewtopic.php?f=162&t=31664
2. HD3000 HDMI audio dsdt and kext edits required.
3. Use Applications/Utilities/Audio MIDI Setup to configure analog 5.1 surround sound with 3 Line Outs
4. Requires Platforms.xml edit, adds Grey LineOut and deletes SPDIFOut. Use Audio MIDI Setup to configure analog 7.1 surround sound with 4 Line Outs
5. 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, included in download.

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)
                }
            }
Audio ID:389, layout-id: 185
The new 389 layout-id is for HD 3000 HDMI + most onboard choices.

Code:
            Device (HDEF)
            {
                Name (_ADR, 0x001B0000)
                Method (_PRW, 0, NotSerialized)
                {
                    Return (Package (0x02)
                    {
                        0x0D, 
                        0x05
                    })
                }

                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x06)
                        {
                            "hda-gfx", 
                            Buffer (0x0A)
                            {
                                "onboard-2"
                            }, 

                            "layout-id", 
                            Buffer (0x04)
                            {
                                0x85, 0x01, 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

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

ALC889_edited_Lion_prefs-sound-output-1.png

ALC889_edited_Lion_prefs-sound-output2.png
 

Attachments

  • alc889_audio_screenshots.pdf
    715.9 KB · Views: 3,986
  • 889Beta_Lion_AppleHDA_v2.1.3-2.zip
    2.4 MB · Views: 10,846
Last edited by a moderator:
Re: New Optimized AppleHDA for Realtek ALC 889 on Lion

Thanks for this. Are we ever going to just be able to run Software Update without having to reinstall / rollback the AppleHDA? I miss that from my Snow Leopard days.
 
Re: New Optimized AppleHDA for Realtek ALC 889 on Lion

Hilbe said:
Thanks for this. Are we ever going to just be able to run Software Update without having to reinstall / rollback the AppleHDA? I miss that from my Snow Leopard days.
Regrettably no.
 
Re: New Optimized AppleHDA for Realtek ALC 889 on Lion

Macman, could you explain why? I'm just trying to understand... on my board (an older EP45-UD3R, ALC889) I have DSDT enabled audio that survives updates without any kext required. I don't know if something is different on newer boards that precludes a DSDT solution. I started another thread about it here: viewtopic.php?f=16&t=44933

Any info you could share with me would be greatly appreciated!
 
Re: New Optimized AppleHDA for Realtek ALC 889 on Lion

INSTALLER COMING SHORTLY.
 
Re: New Optimized AppleHDA for Realtek ALC 889 on Lion

Installed as described and works like a charm - also using Audio via DisplayPort. :headbang: Thanks!

audio01.png
audio02.png
audio03.png
 

Attachments

  • audio03.png
    audio03.png
    197 KB · Views: 29,594
  • audio02.png
    audio02.png
    132 KB · Views: 29,487
  • audio01.png
    audio01.png
    131.8 KB · Views: 29,522
Re: New Optimized AppleHDA for Realtek ALC 889 on Lion

Anyone verify this will work on the 889A? been running with a USB sound card since i upped to Lion because of the difficulties i had getting my sound card to work.
 
Re: New Optimized AppleHDA for Realtek ALC 889 on Lion

Kaneda13 said:
Anyone verify this will work on the 889A? been running with a USB sound card since i upped to Lion because of the difficulties i had getting my sound card to work.

This is for ALC 889 only. For 888b, 888, 889a, use the combination of DSDT, ALC8xxHDA, and AppleHDA Rollback.
 
Re: New Optimized AppleHDA for Realtek ALC 889 on Lion

tonymacx86 said:
Kaneda13 said:
Anyone verify this will work on the 889A? been running with a USB sound card since i upped to Lion because of the difficulties i had getting my sound card to work.

This is for ALC 889 only. For 888b, 888, 889a, use the combination of DSDT, ALC8xxHDA, and AppleHDA Rollback.

ahh, thanks. for now, i'll just keep with my USB sound, it works without fault.
 
Re: New Optimized AppleHDA for Realtek ALC 889 on Lion

This works great!! Perfect in fact. I don't know how Toleda figured how to split 5.1 Analogue and Digital surround for ALC889, but he is genius! I have been trying for a while now, only to get sound assertion warnings. Plus, and I tip my hat for this, no more iPhone Headset showing up in SP! I wasn't even close to figuring out how to remove that (even on my ALC888). Awesome work! :thumbup:
 
Status
Not open for further replies.
Back
Top