toleda
Moderator
- Joined
- May 19, 2010
- Messages
- 22,831
- Motherboard
- Asus Maximus VII Impact
- CPU
- i7-4770K
- Graphics
- RX 560 + HD4600
- Mac
- Classic Mac
- Mobile Phone
Customizing the Mountain Lion
Optimized AppleHDA.kext
Customizing the Mountain Lion Optimized AppleHDA.kext for Realtek ALC8xx Audio
Note: SPDIF Encoded Digital Audio patch is not working on the current AppleHDA.kext. See Post #25 for more information.
There have been numerous requests for additional AppleHDA.kext functionality. Often the requests can be satisfied with changes to the property lists embedded in AppleHDA.kext. This guide offers solutions for removing the automatic switching on inputs and outputs, adding and changing speaker configurations and increased SPDIF digital audio flexibility. All solutions are based on the Optimized AppleHDA.kexts for Realtek 885, 887, 888, 889, 892 and 898 audio codecs.
Guidelines
1. This is not a how to guide. It tells what something looks likes before and what it should look like after the edit. The how is left to the reader.
OS X Surround Sound
1. OS X volume control and mute (OSD, System Preferences, keyboard, mouse, Apple Remote, etc.)
1a. Supports volume control/mute for connected analog stereo speakers only
1b. No volume control/mute support for digital audio or aggregate devices
1b1. Use the controls and/or remote for the audio device attached making sound
1b2. There is no known way around this; don't ask. For DD/DTS, this restriction is the same for Windows
2. Surround Sound in OS X requires
2a. DD/DTS source (movies, iTunes/AC3, etc.)
2b. DD/DTS player (Plex, XBMC, Boxee, VLC - see 5 below)
2c. DD/DTS sound system.
3. Analog 5.1/7.1 Surround Sound tonymacx86 Forum • View topic - Universal 5.1-channel analogue audio
4. Audi MIDI Setup/Audio Devices/Digital Output/ always shows 2 Channel Stereo.
5. VLC encoded digital audio requires the edited Optical Surround/AppleHDA binary (See Procedure 8)
Requirements
1. 10.8 or newer - 64 bit kernel
2. Any optimized AppleHDA.kext v2.3.0 or newer
3. Working ML Optimized AppleHDA audio
Tools
1. Property List Editor (PLE) -
1a. Mac OS X Retail Install Disc v10.6 or v10.6.3 (Optional Installs/Xcode)
1b. http://sveinbjorn.org/install_proper..._mac_os_x_lion
2. PLE Alternatives
2a. PListEdit Pro Fat Cat Software – PlistEdit Pro
2b. Pref Setter Pref Setter
2c. Applications/TextEdit
3. zlib_terminal, (see Attachment 2)
Procedures
0. AppleHDA.kext Assumptions, Structure and Documents
1 Add SPDIFIn - not supported
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 892 or 898
9. HDMI audio (AMD/Nvidia/HD3000/HD4000) Mountain Lion HDMI Audio
10. 2x HD3000/HD4000 HDMI Audio
Appendix:. ML Optimized AppleHDA.kext/PathMaps
Installation
1. Backup S/L/E/AppleHDA.kext
2. Copy edited AppleHDA..kext to Desktop
3. Run KextBeast
4. Restart
Attachments
1. View attachment ML-Customizing the Realtek ALC AppleHDA.pdf.zip
2. View attachment zlib_terminal.zip
Editing Tip
1. To ensure successful pasting of printed data into a plist
1a. paste first to TextEdit and make plain text (Format/Plain Text)
1b. copy from TextEdit and paste into plist
Credits
THe KiNG HOW TO] Patch AppleHDA - Knowledge Base - Project OS X Forums
VHC888 ALC889A, Gigabyte (Intel): now having a working front mic - InsanelyMac Forum
RevoGirl
Change Log
v0.1 - 10/8/12 - Draft
v0.2 -10/10/2012 - Procedure 8 correction
v0.3 - 10/18/12 - 0c4. Item/PathMapID Table and Item/CodecID Table correction
v0.4 - 10/25/12 - Clarify PathMap and ConfigData edits