Contribute
Register

Optimized AppleHDA for Realtek ALC 898 on Lion - New

Status
Not open for further replies.

toleda

Moderator
Joined
May 19, 2010
Messages
22,928
Motherboard
Asus Maximus VII Impact
CPU
Core 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
ALC898 edited Lion AppleHDA.kext

The ALC898 edited Lion AppleHDA.kext is available for Lion 10.7.4 and motherboards with the Realtek ALC898 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 three Audio IDs: Audio ID: 898 for full 898 analog audio on any 898 motherboard with or without discrete graphics card HDMI audio (Note 1), lAudio ID: 392 for 898 analog audio on a 898 Sandy Bridge motherboard with HD3000 HDMI audio (Note 2) and Audio ID 292 for 3 port 898 analog audio on any 898 motherboard with or without discrete graphics card HDMI audio (Note 1).

Initial Release
1.10.7.4 AppleHDA.kext

Benefits
1. 898 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. 10.7.4 or newer - 64 bit kernel
2. Realtek ALC898 audio codec
3. dsdt w/HDEF/Layout_id is 0x82 0x03 0x00 0x00 (no dsdt, Note 4)
a. For HD3000 HDMI audio; dsdt w/HDEF/Layout_id is 0x8E 0x01 0x00 0x00
b. For 3 port motherboard audio; dsdt w/HDEF/layout-id is 0x2A 0x01 0x00 0x00

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

Configurations
Audio_Configurations_898.png


Installation
Available in MultiBeast_v4.6 and newer
1. Select: Drivers & Bootloaders/Kexts & Enablers/Audio/Realtek ALC8xx//Patched AppleHDA/ALC898
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/ALC898
3. Always select: System Utilities
4. Select: Install
5. Audio ID: 898, goto Step 6.
a. Audio ID: 398 (HD3000 HDMI audio); edit dsdt.aml/HDEF/layout-id to 0x8E, 0x01, 0x00, 0x00
b. Audio ID: 298 (3 port analog audio); dsdt w/HDEF/layout-id is 0x2A, 0x01, 0x00, 0x00
6. Restart

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. 898_Lion_AppleHDA/Read_Me_First-898_AppleHDA.kext
-Read_Me_First-898_AppleHDA.pdf
AppleHDA Customization
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 - Not available for 898
9. HDMI audio (AMD/Nvidia/HD3000) - Lion HDMI Audio

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 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.
4. For Audio ID: 898, a non-dsdt Enabler can be be installed in S/L/E with MultiBeast.

HDEF Edits:
Audio ID:898, layout-id: 382
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)
                            {
                                0x82, 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
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
P8Z77-I Deluxe/ALC898/Audio ID: 298 (3 port audio)
ALC898_edited_Lion_prefs-sound-input-1.png

ALC898_edited_Lion_prefs-sound-output-1.png

ALC898_edited_Lion_prefs-sound-output-2.png
 

Attachments

  • -Read_Me_First-898_AppleHDA.pdf
    31.3 KB · Views: 1,123
Last edited by a moderator:
Joined
May 24, 2012
Messages
3
Motherboard
GA-Z77X-UD5H
CPU
Intel Core i7 3770K
Graphics
AMD Radeon HD 6870
Mac
  1. MacBook
  2. MacBook Air
  3. MacBook Pro
Classic Mac
  1. Power Mac
Mobile Phone
  1. iOS
  2. Other
This new optimized AppleHDA worked for me. I also tried doing the AppleHDA customization which also worked. I was now able to setup the Analog 7.1 Surround Sound. Cheers! :headbang:
 
Joined
Feb 1, 2012
Messages
271
Motherboard
Gigabyte Z77X-UD5H
CPU
Intel Core i7 3770k
Graphics
Asus GTX 780 DC2
Mac
  1. MacBook Pro
  2. Mac mini
Classic Mac
  1. iBook
  2. Power Mac
Mobile Phone
  1. iOS
I found another hard drive and i installed a fresh version of Lion and installed the drivers and i had no difference and the green jack still doesn't work for me. I also didn't install a DSDT this time so maybe it will work with one but i'm wanting to avoid that.
 
Joined
Nov 28, 2011
Messages
331
Motherboard
GA-Z77X-UD5H-Clover
CPU
i7-2600K @ 4.6GHz OC
Graphics
GTX 1060
Mac
  1. MacBook Pro
Classic Mac
  1. Power Mac
Mobile Phone
  1. iOS
chadthman said:
I found another hard drive and i installed a fresh version of Lion and installed the drivers and i had no difference and the green jack still doesn't work for me. I also didn't install a DSDT this time so maybe it will work with one but i'm wanting to avoid that.
Without DSDT
Same result with the same mobo and no DSDT. Still orange/black output and no front.

With DSDT (from bios F7 - sorry not F4 as indicated before -)
With modification described in the post and layout 0x82, 0x03, 0x00, 0x00 -> No change orange/black.
With 0x2A, 0x01, 0x00, 0x00 -> green is working (3rd output in the list of the driver). Front is still not working.

The problem is probably of not having the right layout for this Mobo.
Does someone know how to determine it? I can compile the DSDT/ try and report.
 
Joined
Dec 3, 2010
Messages
17
Motherboard
Gigabyte Z370 AORUS Gaming 7
CPU
i7-8700K
Graphics
RX580
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
I have a Z77X-UD5H with Bios version F8 and 10.7.4 with Bridge Helper 5.0. I used MultiBeast 4.5.1 with no DSDT to install ... -> Realtek ALC8xx -> Non-DSDT HDAEnabler -> ALC898 and ... -> Realtek ALC8xx -> Patched AppleHDA -> ALC898. Audio works out the orange jack in the back, but not from front panel. Haven't tried the HDA customization yet.
 

jpa

Joined
Jun 13, 2010
Messages
873
Motherboard
10.8
CPU
i7 930
Graphics
6870
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
thanks for great job.

alc889 update coming?
 
Joined
Nov 28, 2011
Messages
331
Motherboard
GA-Z77X-UD5H-Clover
CPU
i7-2600K @ 4.6GHz OC
Graphics
GTX 1060
Mac
  1. MacBook Pro
Classic Mac
  1. Power Mac
Mobile Phone
  1. iOS
kotfu said:
I have a Z77X-UD5H with Bios version F8 and 10.7.4 with Bridge Helper 5.0. I used MultiBeast 4.5.1 with no DSDT to install ... -> Realtek ALC8xx -> Non-DSDT HDAEnabler -> ALC898 and ... -> Realtek ALC8xx -> Patched AppleHDA -> ALC898. Audio works out the orange jack in the back, but not from front panel. Haven't tried the HDA customization yet.
Same as my experience. You should have the black working also.
With DSDT, I got the green working but not the front (see my previous post).
 

toleda

Moderator
Joined
May 19, 2010
Messages
22,928
Motherboard
Asus Maximus VII Impact
CPU
Core 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
MarcelBidon said:
With modification described in the post and layout 0x82, 0x03, 0x00, 0x00 -> No change orange/black.
With 0x2A, 0x01, 0x00, 0x00 -> green is working (3rd output in the list of the driver). Front is still not working.

The problem is probably of not having the right layout for this Mobo.
Does someone know how to determine it? I can compile the DSDT/ try and report.
This information is very useful. It appears Gigabyte my have a created a unique pin configuration for the GA-Z77X-UD5H. Perhaps we can figure out why they did. Since you have 6 port audio, Audio ID 898 is better. Looking at System Preferences/Sound/Outputs, with iTunes playing, try each output with all six audio jacks on the motherboard. Reply with the working jack color for the following outputs:
Internal Speakers
Line Out
Line Out

Example, I understand the black port works with the third line out. See if other ports work and with what port color. You can try front panel, however, it is unlikely to work because of this problem. Thanks for your help.
 
Status
Not open for further replies.
Top