Jump to content

Mavericks Realtek ALC AppleHDA Audio

AppleHDA Realtek ALC audio sound

  • Please log in to reply
227 replies to this topic

#1
toleda

toleda

    InsanelyMac Legend

  • Gurus
  • 632 posts
  • Gender:Male

Mavericks: Audio - Realtek ALC AppleHDA

For Realtek ALC885 through ALC1150 on board audio codecs

 

Change Log

  1. v1.4 - 3/5/2014 - Clover Patched Realtek ALC, install once and done, credit: abxite

  2. v1.3 - 3/1/2014 - Mavericks 10.9.2 AppleHDA Patches Available

  3. v1.2 - 1/23/14 - Realtek ALC AppleHDA Support kext Solution, credit: PikeRAlpha

  4. v1.1 - 12/22/13 - Mavericks 10.9.1 AppleHDA Patches Available

  5. v1.0 - 10/23/13 - Mavericks Release

Mavericks/New Feature

  1. "Internal Microphone" - Noise Cancelation selectable, credit: EvgeniX
  2. AMD HD7xxx HDMI audio support

New User/First Time/Mavericks Audio

  1. Determine motherboard audio codec (Realtek ALCxxx)
    1. Source: User manual, specifications, website
    2. Supported: ALC885, 887, 888, 889, 892, 898 or 1150
    3. Audio Codec is: ALCxxx
  2. Recommended Audio Selections
    1. Audio ID: 1
    2. Kext Injection
    3. ALCxxx

Requirements

  1. OS X versions supported:
    1. Mavericks/10.9.2/AppleHDA.kext_v2.6.0, see Notes 1 and 2, below
    2. Mavericks/10.9.1/AppleHDA.kext_v2.5.3, see Notes 1 and 2, below
    3. Mavericks/10.9/AppleHDA.kext_v2.5.2, see Notes 1 and 2, below
  2. Realtek ALC, one of the following Device_ID - Codec Name
    1. Supported motherboard on board audio codecs
      1. 10ec0885 - ALC885/ALC889a
      2. 10ec0887 (v100202 and v100302) - ALC887/ALC888b
      3. 10ec0888 (v100202 and v100302) - ALC888/ALC888s
      4. 10ec0889 - ALC889
      5. 10ec0892 - ALC892
      6. 10ec0899 - ALC898
      7. 10ec0900 - ALC1150
    2. Verification, see Notes 3, below
    3. Installation, see Realtek ALC AppleHDA.kext Installation, below
  3. Supported Audio-IDs (Audio_ID = layout-id), select one
    1. Audio IDs
      1. Audio_ID: 1 - 5/6 port Realtek ALC onboard audio and HD5K/AMD/Nvidia HDMI audio
      2. Audio_ID: 2 - 3 port Realtek ALC onboard audio and HD5K/AMD/Nvidia HDMI audio
      3. Audio_ID: 3 - 3/5/6 port Realtek ALC onboard audio and HD3K/HD4K/AMD/Nvidia HDMI audio
    2. Details
      1. Audio_IDs: 1 and 2 support analog 5.1 surround sound, 3 does not
      2. Audio_IDs: 1, 2 and 3 require HDMI audio dsdt edits/ssdts for HDMI audio
  4. Audio_ID Injection, select one
    1. Supported Realtek ALC Injection methods, see Realtek ALC AppleHDA Audio Injection
      1. HDEF/kext/No dsdt/HDAEnabler_.kext = Audio_ID
      2. HDEF/dsdt/layout-id = Audio_ID,
      3. HDEF/ssdt/layout-id = Audio_ID
      4. HDEF/Clover/Config.plist/Devices/Audio/Inject = Audio_ID
      5. HDEF/Chameleon Installer/Customize/Setting/HDEF Layout/

    2. Verification, see Notes 4, below

 

Realtek ALC AppleHDA Audio - 3 methods, select one

  1. Patched AppleHDA.kext, see Realtek ALC AppleHDA.kext Installation
  2. AppleHDA Support kext, see Realtek ALC AppleHDA Support kext Installation
  3. Clover Patched Realtek ALC, see Clover Patched Realtek ALC Installation

Realtek ALC AppleHDA.kext Installation

 

The Realtek ALC AppleHDA.kext in place patches the native AppleHDA.kext  for full ALC onboard, HDMI and DP audio.  The patched AppleHDA.kext provides pin configuration, layout and pathmap injection and audio codec binary patching for supported onboard audio codecs.  Two patched AppleHDA.kexts versions are available, select one.

  1. Patch in Place (native S/L/E/AppleHDA.kext)
    1. toleda/audio_ALC885 - 10.9+
    2. toleda/audio_ALC887 - 10.9+
    3. toleda/audio_ALC888 - 10.9+
    4. toleda/audio_ALC889 - 10.9+
    5. toleda/audio_ALC892 - 10.9+
    6. toleda/audio_ALC898 - 10.9+
    7. toleda/audio_ALC1150 - 10.9+
  2. Download Audio - InsanelyMac Forum
    1. Kext install utility (your choice)
    2. Install AppleHDA.kext
    3. Fix permissions and rebuild kennel cache

Realtek ALC AppleHDA Support kext Installation

 

The Realtek ALC AppleHDA Support kext, installed with the native AppleHDA.kext, enables full ALC onboard, HDMI and DP audio.  The ALC Support kext provides binary patching and pin configuration, layout and pathmap injection.

  1. Chameleon/Realtek ALC AppleHDA Support kext
    1. toleda/audio_RealtekALC
    2. Native AppleHDA.kext untouched
    3. Realtek ALC AppleHDA Support kext
    4. Verify audio after each Software Update
      1. if no audio
        1. Install previous native AppleHDA.kext
        2. Run script/new AppleHDA Support kext

Clover Patched Realtek ALC Installation

 

The Clover Patched Realtek ALC method, applied to the native AppleHDA.kext, enables full supported Realtek ALC onboard, HDMI and DP audio . This method installs renamed layout and platform files in the native AppleHDA.kext and injects binary patch and config data. The Clover Patched Realtek ALC survives Software Updates; install once and done.

  1. Clover Patched Realtek ALC
    1. toleda/audio_CloverALC
    2. Native AppleHDA.kext
      1. All native files untouched

      2. Realtek ALC files added (renamed)

    3. Clover patches
      1. Audio codec/AppleHDA binary

      2. ALC file injection/AppleHDA binary

    4. Verify audio after each Software Update
      1. if no audio
        1. Install previous native AppleHDA.kext
        2. Run cloverALC script

Notes

  1. 10.9 and newer, Boot flag npci=0x3000 disables audio
    1. Remove npci=0x3000 from Extra/org.chameleon.Boot.plist
  2. AppleHDA.kext version matters
    1. AppleHDA.kext can be the same as or earlier than the installed OS X version
    2. AppleHDA.kext does not work if newer than the installed OS X version
      1. 10.8.5 AppleHDA.kext installed in 10.8.4 OS X - no audio devices
  3. Audio Codec Verification/DPCIManager see Tools 2.
    1. See Status/Codec ID/Revision, note Codec ID
    2. Verify Requirements/2. Realtek ALC/1. Supported audio codecs, above
  4. Audio_ID verification/IORegistryExplorer see Tools 3.
    1. Search: HDEF
    2. Locate: layout-id (right pane, scroll down)
    3. Verify:
      1. <01 00 00 00> or
      2. <02 00 00 00> or
      3. <03 00 00 00>
  5. Sound Assertions (line varies by version)
    1. MaximumBootBeepVolume/Sound assertion in AppleHDAEngine at line 581
      1. See Dmitry, AppleIntelFramebufferAzul.kext (part III) | Pike's Universum
      2. Ignore

Unsupported/Non-working Realtek ALC AppleHDA.kext

  1. 887_v100202 and earlier
    1. Workaround: alternate Platforms.xml.zlib
  2. 888_v100202 and earlier
    1. Workaround: alternate Platforms.xml.zlib
  3. Asus P67H67 3xxx BIOS: Phantom codec
    1. Workaround: 2xxx BIOS downgrade, 7/8 Series upgrade
  4. MSI motherboards, pre Sandy Bridge
    1. Workaround: 6/7/8 Series upgrade
  5. AC97 (Front Panel)
    1. Workaround: HD Audio

Realtek ALC Speakers

  1. Audio ID: 1 and 3, match speaker connector color to same motherboard/case port color
  2. Audio ID: 2 (3 port motherboard audio)
    1. Plug black connector into blue motherboard port for rear speakers
    2. Plug green connector into green motherboard port for front speakers
    3. Plug orange connector into pink motherboard port for center/sub speakers
    4. Front panel: Match connector color to same case port color

Optional Installs

  1. Configure 5.1 Surround Sound Aggregate Device (Not available with Audio ID: 3)
    1. Applications/Utilities/Audio MIDI Setup/Audio Devices/+/Create Aggregate Device
    2. Select (in order)
      1. Built-in Output
      2. Built-in Line Output (1st)
      3. Built-in Line Output (2nd)
    3. Configure Speakers
      1. Multichannel
      2. 5.1 Surround
    4. Apply/Done
  2. Connect Audio Input to Audio Output
    1. Line In - http://www.rogueamoeba.com/freebies/

More Information - toleda/audio_ALCInjection

  1. M-Realtek ALC AppleHDA Capabilities.pdf
    • ex., Audio_ID Configurations, Surround sound, audio popping, USB start up problem
  2. M-Realtek ALC AppleHDA Customization.pdf
    • ex., Manual speaker and headphone selection, Substitute SPDIF-2 Wire Output
  3. M-Realtek ALC AppleHDA Screenshots.pdf
    • ex., System Information/Audio/Intel High Definition Audio, System Preferences/Sound/Output
  4. M-Realtek ALC AppleHDA No Audio.pdf
    • ex., No audio devices, no sound, no codec

Tools

  1. MaciASL: http://maciasl.sourceforge.net/
  2. DPCIManager: http://sourceforge.n...ts/dpcimanager/
  3. IORegistryExplorer (use IOReg_v2.1: https://github.com/t...plorer_v2.1.zip)
  4. Kext Install utilities, i.e., Kext Wizard, Kext Utility, DPCIManager, etc.

Troubleshooting

  1. See M-Realtek ALC AppleHDA - No Audio.pdf
  2. See M-Realtek ALC AppleHDA Capabilities.pdf

Problem Reporting (Post to this thread with requested information attached)

  1. Description of audio problem, including the following information:
  2. OS X version/motherboard model/BIOS version/processor/graphics
  3. Procedure/Guide Used/AppleHDA.kext version
  4. Patched S/L/E/AppleHDA,kext
  5. dsdt.aml (if installed)
  6. org.chameleon.Boot.plist or config.plist
  7. Copy of IOReg - IOReg/File/Save a Copy As…, verify file (not ioreg.txt), see Tools 3.
  8. Console/All Messages/kernel Sound assertions selected/Save Selection As…..
  9. Screenshot of System Information/Hardware/Audio/Intel High Definition Audio (not Devices)

 

Credit

THe KiNG [HOW TO] Patch AppleHDA - Knowledge Base - Project OS X Forums

VHC888  ALC889A, Gigabyte (Intel): now having a working front mic - InsanelyMac Forum

EvgeniX  Mountain Lion Realtek ALC AppleHDA Audio - OSx86 10.8 (Mountain Lion) - InsanelyMac Forum

PikeRAlpha New style of AppleHDA.kext patching (take II) | Pike's Universum

abxite  http://applelife.ru/...06/#post-353647

RevoGirl



#2
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,009 posts
  • Gender:Male
  • Location:UK

Thanks again toleda.



#3
HackBook Pro

HackBook Pro

    Web Developer & MLP:FiM Fan

  • Members
  • PipPipPipPip
  • 212 posts
  • Gender:Male
  • Location:Earth
  • Interests:Ponies

I have no sound at all.  Mavericks doesn't detect a sound card: "No output devices found".

 

1. OS X 10.9 / Shuttle SP35P2V2 (Intel P35) / BIOS Version SP35U20J / Intel Core 2 Quad Q9300 / ATI HD5770 (XFX)

2. Patched DSDT with HDEF using ([Guide] Add or Edit HDEF-dsdt.pdf): Set Audio_ID 1

    Tried to patch AppleHDA (the one from the Mavericks install) using https://github.com/toleda/audio_ALC888 (ALC888_v100202 Legacy)

3. DSDT.aml inside zip

4. IOReg inside zip

5. Console log inside zip

6. Audio screenshot inside zip

    Graphics screenshot inside zip

 

For good measure, my DCPIManager screenshot is also inside the zip.

 

I really appreciate your work and I hope you can help me.  I used to use VoodooHDA, but all I heard was static, so I was hoping I can get this to work.  Is my P35 motherboard just too old?  I should have ALC888(s?), so it should work, yes?  If not, where can I get the "alternate Platforms.xml.zlib"?

 

Here's the zip with all my files in it: Attached File  SP35P2v2.zip   915.14KB   35 downloads



#4
scott_donald

scott_donald

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 288 posts
  • Gender:Male

following on from our Pms...

 

i am having problems with sound - Z87 Deluxe, no DSDT using Clover Uefi...

with iTunes sound is fine for 15 seconds of music then sound get crackly then cuts off then comes back on jerky...
playing from an mp4 with quicktime there is no problem at all...
playing the same song in quicktime that i played in iTunes is perfect and not crackly... 
youtube videos sound is fine for 15 seconds of music then sound get crackly then cuts off then comes back on jerky and out of sync to the video...

 

after your help i ran the script and followed your instructions but still getting the above problem...

 

Attached File  Terminal Saved Output.zip   1.01KB   8 downloads

 

Attached File  config.plist.zip   2.63KB   19 downloads

 

Attached File  Scotty’s iMac.zip   563.71KB   17 downloads



#5
toleda

toleda

    InsanelyMac Legend

  • Gurus
  • 632 posts
  • Gender:Male

I have no sound at all.  Mavericks doesn't detect a sound card: "No output devices found".

1. OS X 10.9 / Shuttle SP35P2V2 (Intel P35) / BIOS Version SP35U20J / Intel Core 2 Quad Q9300 / ATI HD5770 (XFX)

 

 where can I get the "alternate Platforms.xml.zlib"?

888_v100001 is not supported, for some, the v100201 works; not in your case.  The pathmap is not close. As well, Shuttles have difficulty with OS X audio.  Assuming you substituted the 888_v100202.zip for 887.zip, you installed the alternate Platfoms.xml. If you find a working vintage 888 AppleHDA.kext, it can likely be updated for Mavericks.


 

after your help i ran the script and followed your instructions but still getting the above problem...

I have not experienced those problems, though others have a similar issue with Chrome/Flash.  Suggest you change config.plist/Audio/Inject/2. See Post #1, Realtek ALC Speakers for Audio ID: 2 and try using Blue motherboard connector/System Preferences/Sound/Output/(1st) Line Out and listen for any difference.

 

The script ran correctly.  Attached the S/L/E/AppleHDA.kext. 



#6
HackBook Pro

HackBook Pro

    Web Developer & MLP:FiM Fan

  • Members
  • PipPipPipPip
  • 212 posts
  • Gender:Male
  • Location:Earth
  • Interests:Ponies

888_v100001 is not supported, for some, the v100201 works; not in your case.  The pathmap is not close. As well, Shuttles have difficulty with OS X audio.  Assuming you substituted the 888_v100202.zip for 887.zip, you installed the alternate Platfoms.xml. If you find a working vintage 888 AppleHDA.kext, it can likely be updated for Mavericks.

 

Thanks a lot for replying.  I was afraid that my sound chipset was too old and unsupported.  VoodooHDA likes it, but it makes a lot of static and doesn't work too well.

 

I remember in Snow Leopard I had a (x64) AppleHDA kext that worked for me.  Maybe I can still find it in my archives.

 

Do you think it's possible to get my sound working *without* patching AppleHDA?  I haven't used HDAEnabler in such a long time, that I'm not really sure of the procedure.



#7
ac3bcn

ac3bcn

    InsanelyMac Protégé

  • Members
  • PipPip
  • 67 posts
  • Gender:Male
  • Location:ESP
Hi everyone, i patched AppleHDA 2.5.2, from Mavericks GM for Realtek ALC898 on a GA Z77X UP5 TH - Rev.01, following Toleda`s guide and patches.
Internal speakers out are working. All kexts related to AppleHDA are loaded... i didn't test others outputs and inputs, but seems to be ok.
I use Layout ID 1 via DSDT.

Thanks Toleda for share you knowledge.

#8
scott_donald

scott_donald

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 288 posts
  • Gender:Male

 

I have not experienced those problems, though others have a similar issue with Chrome/Flash.  Suggest you change config.plist/Audio/Inject/2. See Post #1, Realtek ALC Speakers for Audio ID: 2 and try using Blue motherboard connector/System Preferences/Sound/Output/(1st) Line Out and listen for any difference.

 

The script ran correctly.  Attached the S/L/E/AppleHDA.kext. 

 

well booted a windows drive there and everything is fine in Windows so certainly a problem with my system and OSX...

 

The only variable i can think is Clover... what in there could effect it???

 

what you suggested there made very little difference and still experiencing problems...



#9
toleda

toleda

    InsanelyMac Legend

  • Gurus
  • 632 posts
  • Gender:Male

well booted a windows drive there and everything is fine in Windows so certainly a problem with my system and OSX...

 

The only variable i can think is Clover... what in there could effect it???

 

what you suggested there made very little difference and still experiencing problems...

No. Attach an IOReg and Console/sound from the configuration above.  Also attach the patch AppleHDA.kext as requested previously.



#10
scott_donald

scott_donald

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 288 posts
  • Gender:Male

No. Attach an IOReg and Console/sound from the configuration above.  Also attach the patch AppleHDA.kext as requested previously.

 

Blue is coming out as the second of the line outs... 

 

Attached File  mr toleda.zip   1.7MB   15 downloads



#11
pierz

pierz

    InsanelyMac Protégé

  • Members
  • Pip
  • 17 posts
  • Gender:Male
  • Location:Italy

ASUS Sabertooth Z77 with 892.

 

IOREG and Console/Sound Attached, also the KEXT

 

Sound is not working, mic worked for like 2 seconds from preferences

 

 

Attached Files



#12
toleda

toleda

    InsanelyMac Legend

  • Gurus
  • 632 posts
  • Gender:Male

Blue is coming out as the second of the line outs... 

 

Looks correct.  No ideas.


 

Sound is not working, mic worked for like 2 seconds from preferences

IOReg is correct.  How are you verifying sound?  Did sound work before Mavericks?  If so, with what?



#13
pierz

pierz

    InsanelyMac Protégé

  • Members
  • Pip
  • 17 posts
  • Gender:Male
  • Location:Italy

Hello Toleda, 

WIth 10.8.5 I was using your HDAenabler1 with the patched AppleHDA.

Everything was working on. Now, on 10.9, when I use the HDAEnabler1 the MIC isnt working (everything else works ok, even if I dont have the right cable setup)

 

 

pier



#14
toleda

toleda

    InsanelyMac Legend

  • Gurus
  • 632 posts
  • Gender:Male

Hello Toleda, 

WIth 10.8.5 I was using your HDAenabler1 with the patched AppleHDA.

Everything was working on. Now, on 10.9, when I use the HDAEnabler1 the MIC isnt working (everything else works ok, even if I dont have the right cable setup)

 

I verified your IOReg for mic is correct.  Verified all inputs working on my 10.9 892 AppleHDA system.



#15
gxsolace

gxsolace

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts

Hi toleda -

 

Audio is fine for me in iTunes, VLC, etc. But it will become scratchy after a few minutes if I watch Flash-based videos.

There's no "popping" but the audio becomes "scratchy" and to fix it I have to stop the video (either on YouTube or Cruncyroll, etc.) and play a song from iTunes, then continue the Flash video. But then a few minutes later it'll happen again.

 

1/ 10.9 / Gigabyte X79-UD5 / F12 / Intel Core i7 3970X / GTX 680

2/ Followed procedure in this thread for 10.9 patching

3/ Included in attached zip are: patched AppleHDA.kext, DSDT.aml, IOReg, Screenshot of Intel High Definition

4/ I do not have any audio assertion messages in the console

 

Thanks / gx

 

Edit: Seems there's a similar issue here: http://www.tonymacx8...t-10-8-5-a.html

I work around the problem by switching audio sampling rate to 96kHz.

Attached Files



#16
NoSmokingBandit

NoSmokingBandit

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 316 posts

This worked great for me.

 

I am using HDAEnabler1.kext as well as an ALC888 (legacy) patched AppleHDA. Works great.

 

I might try switching out HDAEnabler1 with the HDAEnabler module for Chameleon, but my kexts aren't loading from Extra/Extensions so I'm not sure modules are loading either. I'll report back if I ever try the HDA module.



#17
pierz

pierz

    InsanelyMac Protégé

  • Members
  • Pip
  • 17 posts
  • Gender:Male
  • Location:Italy

I verified your IOReg for mic is correct. Verified all inputs working on my 10.9 892 AppleHDA system.


I am using the extra folder. I removed the applehda from SLE and now everything works :)

Thanks

#18
lboregard

lboregard

    InsanelyMac Protégé

  • Members
  • Pip
  • 14 posts

I am using the extra folder. I removed the applehda from SLE and now everything works :)

Thanks


i have the static noise as well, can you please share the steps you took to solve this

#19
pierz

pierz

    InsanelyMac Protégé

  • Members
  • Pip
  • 17 posts
  • Gender:Male
  • Location:Italy

i have the static noise as well, can you please share the steps you took to solve this

 

I just patched my DSDT, and patched AppleHDA as per Toleda's instructions on this page... no magic from my side .. the wizard is MrToleda :D



#20
aplats

aplats

    InsanelyMac Protégé

  • Members
  • Pip
  • 38 posts
  • Gender:Not Telling

I cannot get this to work for the life of me. I have an older x58 + ICH10 motherboard with ALC888. Patched my DSDT and used the kext. In the sound control panel, I see my outputs. The first output is "Internal Speaker" and if I plug my headphones in it changes to "Headphones." However, I get no sound! I tried tons of different things, but I'm sure I'm missing something silly. 

 

VoodooHDA works kind of, but it's sound quality is terrible, and I prefer using the built in driver.

 

I appreciate any help!







Also tagged with one or more of these keywords: AppleHDA, Realtek, ALC, audio, sound


4 user(s) are reading this topic

1 members, 3 guests, 0 anonymous users


© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   Web hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy