Contribute
Register

New Optimized AppleHDA for Realtek ALC 892 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
ALC892 edited Lion AppleHDA.kext

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

The ALC892 edited Lion AppleHDA.kext is available for Lion 10.7.2 and motherboards with the Realtek ALC892 audio codec . Supports most Lion analog and digital audio capabilities. Users interested in capabilities beyond standard on board audio, such as, HDMI audio (discrete and HD3000 integrated), front panel audio and more, should consider this option. This kext supports two layout ids: layout_id 892 for full 892 analog audio on any 892 motherboard with or without discrete graphics card HDMI audio (Note 1) and layout_id 392 for 892 analog audio on 892 Sandy Bridge motherboards with HD3000 HDMI audio (Note 2).

Update 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 (DD/DTS - Note 5)

Benefits
1. 892 on board audio
2. HDMI audio, if configured
3. Front panel switching
4. Optical Surround Soundå
5. Improved audio quality
6. Less popping
7. Easy installation
8. Nearly native

Requirements
1. Realtek ALC892 audio codec
2. 10.7.2 - 64 bit kernel
3. dsdt w/HDEF/Layout_id is 0x7C 0x03 0x00 0x00
For HD3000 HDMI audio; dsdt w/HDEF/Layout_id is 0x88 0x01 0x00 0x00

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


Note: System Preferences/Sound/Output/Input and Keyboard - Mute is not available.

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
2. Native - no binary editing for audio codec, HDMI audio only (w/dsdt edits), kext testing

Installation
1. Downloads/892Beta_Lion_AppleHDA/See Read_Me_First-892_AppleHDA.kext

Attachments
1. 892Beta_Lion_AppleHDA
892Beta_Lion_AppleHDA_v2.1.3-2.zip
2. 892Beta_Lion_Audio_Screenshots
alc892_audio_screenshots.pdf
10.7.2 Nvidia HDMI Audio Issue

If your system boots to a black screen after installing this kext
1. Restore Original AppleHDA
a. Reboot with GraphicsEnabler=No
b. Install your AppleHDA.kext backup
2. See this thread (TBA)

Notes
1. HDMI audio dsdt and kext edits required
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 Dolby Digital/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 - no working solution at this time.

HDEF Edits:
Audio ID:892, layout-id: 37C
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)
                            {
                                0x7C, 0x03, 0x00, 0x00
                            }, 

                            "PinConfigurations", 
                            Buffer (Zero) {}
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }
Audio ID:392, layout-id: 188
HD3000 HDMI audio only
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)
                            {
                                0x88, 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
ALC892%20edited%20Lion%20prefs-sound-input.png

ALC892_edited_Lion_prefs-sound-output.png

ALC892_edited_Lion_prefs-sound-output2.png
 

Attachments

  • alc892_audio_screenshots.pdf
    753.4 KB · Views: 1,884
  • 892Beta_Lion_AppleHDA_v2.1.3-2.zip
    1.9 MB · Views: 4,470
Last edited by a moderator:
Re: New Optimized AppleHDA for Realtek ALC 892 on Lion

I've lost the ability to mute my speakers. In System Preferences->Sound the Mute checkbox is greyed out.


Sound-Preferences.png



It was working before using a binpatched AppleHDA with custom platform and layout xmls files.

I have the proper DSDT edit with layout id 7C 03. In case it helps in troubleshooting, i have an ATI HD6850 with HDMI audio out to an LCD.

System Specs:
ASUS P8Z68-V
Intel i7 2600K
16GB 1600 DDR3
ATI HD6850
 
Re: New Optimized AppleHDA for Realtek ALC 892 on Lion

rcork said:
I've lost the ability to mute my speakers. In System Preferences->Sound the Mute checkbox is greyed out.
That is noted above: "Note: System Preferences/Sound/Output/Input and Keyboard - Mute is not available." The previous way to fix that problem was add a second amp in the path maps, however, that causes sound assertion errors and in some configurations, boot failures. Haven't found an alternative.
 
Re: New Optimized AppleHDA for Realtek ALC 892 on Lion

I guess i'll just stick with my binpatched AppleHDA
 
Re: New Optimized AppleHDA for Realtek ALC 892 on Lion

This worked like a champ for me...THANKS SO MUCH!
 
Re: New Optimized AppleHDA for Realtek ALC 892 on Lion

Not working here too, it shows no devices on system prefs and midi settings, i wish i could make hdmi audio to work on my p8p67, asus eah6850.

I tried to delete all other hda kexts, install and reinstall this but no success.
 
Re: New Optimized AppleHDA for Realtek ALC 892 on Lion

johnnydvc said:
Not working here too, it shows no devices on system prefs and midi settings, i wish i could make hdmi audio to work on my p8p67, asus eah6850.

I tried to delete all other hda kexts, install and reinstall this but no success.
Reply with dsdt. HDMI audio:http://www.tonymacx86.com/viewtopic.php?f=162&t=31664
 
Re: New Optimized AppleHDA for Realtek ALC 892 on Lion

mrhevor said:
Is it wrong? How can I patch AppleHDA with this id?
It can be depend by the 892 firmware version?
It is wrong. Use the layout-id in the first post: 0x3C 0x03 0x00 0x00
You don't need anything else in HDEF.
Move HDEF after BR20 and before USBE.
 
Re: New Optimized AppleHDA for Realtek ALC 892 on Lion

Was not working at first.

Had to go through the DSDT editing tutorial to get this to work.

After modifying DSDT and restarting, was working fine.

Any chance of 5.1 SPDIF optical in the future?

should i keep my hopes up? ;)

i5 2500k
P8P67 Rev. B3 (892)
4GB DDR3 1600
USB Boot Hard Drive
 
Status
Not open for further replies.
Back
Top