Jump to content

Mavericks Realtek ALC AppleHDA Audio

AppleHDA Realtek ALC audio sound

  • Please log in to reply
458 replies to this topic

#1
toleda

toleda

    InsanelyMac Legend

  • Gurus
  • 1,272 posts
  • Gender:Male

*
POPULAR

Mavericks: Audio - Realtek ALC AppleHDA

For Realtek ALC885 through ALC1150 on board audio codecs

 

Change Log

  1. v2.2 - 9/14/2014 - C610/X99 Realtek ALC onboard audio on Mavericks, see Post #381

  2. v2.1 - 8/15/2014 - 9 Series/EAPD added to 887, 892, 898, 1150, credit: kidalive

  3. v2.0 - 8/12/2014 - v2 AppleHDA.kext patch scripts available; easier, simpler and faster. See Realtek ALC AppleHDA Audio Patch Methods v2, below

  4. v1.7 - 7/14/2014 - Mavericks 10.9.4 AppleHDA8Series Availablecredit: PikeRAlpha

  5. v1.6 - 6/4/2014 - 9 Series Realtek ALC onboard audio on Mavericks - See Post #249

  6. v1.5 - 5/23/2014 - Mavericks 10.9.3 AppleHDA Patches Available

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

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

  9. v1.2 - 1/23/14 - Realtek ALC AppleHDA8Seriest kext Solution, credit: PikeRAlpha

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

  11. 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, all versions
  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 Patch Methods v2 - select one

  1. Patched AppleHDA.kext, see realtekALC/patch in place
  2. AppleHDA8Series kext, see Piker-Alpha AppleHDA8series
  3. Clover Patched Realtek ALC, cloverALC/Clover patched

1.  realtekALC/patch in place

 

New script detects the codec and patches the native AppleHDA.kext for ALC onboard audio. Run the same script to restore audio after Software Update.

  1. realtekALC/patch in place
    1. Bootloaders: Chimera, Chameleon, Clover
    2. Software Update: run same script after update restart
    3. More Info: toleda/audio_RealtekALC
    4. Installation - realtekALC
      1. Download: (View Raw) audio_realtekALC-90_v2.command.zip
      2. Double click: Downloads/audio_realtekALC-90_patch_v2.command
      3. Password?
      4. Verify Codec? (885, 887, 888, 889, 892, 898, 1150 only)
      5. Legacy_v100202 - y/n? (887, 888 only)
      6. Enable HD4600 HDMI audio - y/n? (887, 892, 898, 1150 only)
      7. Restart
      8. Verify Patched AppleHDA kext installed
        1. S/L/E/AppleHDA.kext_vx.x-toledaALCxxx
      9. Verify ALC onboard audio
        1. System Preferences/Sound/Output/select audio device

2.  Piker-Alpha AppleHDA8series

 

installs an audio support kext for ALC onboard audio. AppleHDA.kext remains native and the technique survives most Software Updates. Credit: Piker-Alpha

  1. Piker-Alpha AppleHDA8series
    1. Bootloaders: Chimera, Chameleon, Clover
    2. Software Update: persistent, no action required
    3. More Info: toleda/audio_pikeralphaALC
    4. Installation - AppleHDA8Series
      1. Piker-Alpha/AppleHDA8Series.sh
      2. Download Zip
      3. $ cd Downloads/AppleHDA8Series.sh-master
      4. Chameleon/Chimera/Clover - no AppleHDA binary patch
        1. $ ./AppleHDA8Series.sh -b AppleHDA
        2. $ ./AppleHDA8Series.sh -b AppleHDA -b AppleHDAController
      5. Clover - with AppleHDA kext patch(es)
        1. $ ./AppleHDA8Series.sh
      6. Password
      7. Codec
      8. Layout
      9. Install S/L/E
      10. Reboot
      11. Verify ALC AppleHDA8Series kext installed
        1. S/L/E/AppleHDAxxx
      12. Verify ALC onboard audio
        1. System Preferences/Sound/Output/select audio device

3.  cloverALC/Clover patched

 

Automatically detects codec and installs all audio files and patches for ALC onboard audio. Audio survives most Software Updates.  Install once and done. Credit: abxite

  1. cloverALC/Clover patched
    1. Bootloaders: Clover
    2. Software Update: persistent, no action required
    3. More Info: toleda/audio_CloverALC
    4. Installation - cloverALC (See Note 3)
      1. audio_cloverALC-90_v2.command.zip
      2. Download (View Raw)
      3. Double click Downloads/clover-90_patch_v2.command
      4. Password?
      5. Verify Codec? (885, 887, 888, 889, 892, 898, 1150 only)
      6. Legacy_v100202 - y/n? (887, 888 only)
      7. Restart
      8. Verify ALC onboard audio
        1. System Preferences/Sound/Output/select audio device

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
    1. OS X version/motherboard model/BIOS version/processor/graphics
    2. Procedure/Guide Used
    3. Copy of IOReg - IOReg_v2.1/File/Save a Copy As…, verify file (no ioreg.txt)
    4. Installed S/L/E/AppleHDA.kext or AppleHDAxxx support kext
    5. Chameleon
      1. Extra/org.chameleon.Boot.plist
      2. DPCIManager/Misc/Boot Log
      3. Extra/dsdt.aml (if installed) 
      4. Extra/ssdt.aml (if installed)
    6. Clover
      1. EFI/Clover/config.plist
      2. EFI/Clover/misc/debug.log (Set config.plist/Boot/Debug/YES)
      3. EFI/Clover/ACPI/Patched/dsdt.aml (if installed) 
      4. EFI/Clover/ACPI/Patched/ssdt.aml (if installed)

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,171 posts
  • Gender:Male
  • Location:UK

Thanks again toleda.



#3
HackBook Pro

HackBook Pro

    Web Developer & MLP:FiM Fan

  • Members
  • PipPipPipPip
  • 219 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   90 downloads



#4
scott_donald

scott_donald

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 304 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   13 downloads

 

Attached File  config.plist.zip   2.63KB   36 downloads

 

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



#5
toleda

toleda

    InsanelyMac Legend

  • Gurus
  • 1,272 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
  • 219 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
  • 304 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
  • 1,272 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
  • 304 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   37 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
  • 1,272 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
  • 1,272 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
  • 317 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


2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users

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