Jump to content

El Capitan: Realtek ALC AppleHDA Audio

Realtek AppleHDA 887 892 1150 audio sound

  • Please log in to reply
346 replies to this topic

#1
toleda

toleda

    InsanelyMac Deity

  • Gurus
  • 1,876 posts
  • Gender:Male

Audio - Realtek ALC AppleHDA, El Capitan Update

Realtek ALC/Desktop: 269*, 283*, 885, 887, 888, 892, 898 and 1150 on board audio (*BRIX/NUC only)

Supports OS X: 10.11, 10.10, 10.9 and 10.8 

 

Enables OS X Realtek ALC on board audio for Intel motherboards. El Capitan requires native AppleHDA.kext. Codec specific script edits binaries and installs specific files. Depending on user requirements, select one Realtek ALC Installation Method.

 

Change Log

  1. v3: 8/17/16 - Initial 10.12/Sierra Support/cloverALC, see I. Realtek ALC AppleHDA Scripts
  2. v2.6 - 6/16/16 - 10.12 Audio/Temporary Fix, see Post #271, credit pcpaul
  3. v2.5 - 4/8/16 - x99/AppleHDA.kext/10.11 support, see 2. X99/Intel High Definition Audio, credit bOLEMO
  4. v2.4 -1/25/16 - Uninstall Realtek ALC AppleHDA added
  5. v2.3 - 1/18/16 - Audio/ALC Injection verification (Tools 3.)
  6. v2.2 - 12/15/15 - audio_pikeralpha-110 (Clover version of Piker Alpha/AppleHDA8Series.sh) 
  7. v1.1 - 11/28/15 - 100 Series/Skylake  (see Unsupported/Non-working Realtek ALC AppleHDA/1. 100 Series, below) and X99 update (see Unsupported/Non-working Realtek ALC AppleHDA/2. X99, below)
  8. v1.0 - 10/4/15 - El Captain Support

Realtek ALC Installation Methods (Select one method)

 

I. Realtek ALC AppleHDA Scripts

  1. Download script (select one script, Download/View Raw)
    1. audio_cloverALC-120.command.zip

      1. patch kernel cache
      2. no edits to any native AppleHDA.kext file
      3. 2-4 files added to Resources folder
      4. Clover only
    2. audio_realtekALC-110.command.zip
      1. patch kext in place
      2. edits AppleHDA.kext binaries and adds files
      3. run script after Software Update
      4. Chameleon, Clover, Osmosis, others
    3. audio_pikeralphaALC-110.command.zip
      1. patch kernel cache
      2. native AppleHDA.kext (signed)
      3. installs AppleHDAxxx.kext (ex., L/E/AppleHDA892.kext)
      4. Not supported: ALC269 and ALC 283
      5. Clover only
  2. Double Click Downloads/audio_. . .ALC-110.command
  3. Enter Password
  4. Answer questions (y/n)
  5. Restart

II. Piker-Alpha AppleHDA8series Script

  1. Download script (see README)
    1. Piker-Alpha/AppleHDA8Series.sh (10.10 working, 10.11TBA, 10.11 fix, see below)
      1. patch alias
      2. no edits to any native AppleHDA.kext file
      3. installs AppleHDAxxx.kext (ex., S/L/E/AppleHDA892.kext)
      4. Chameleon, Clover, Osmosis, Revoboot, others
  2. Terminal (Select one method)
    1. Clover/ALC audio
      1. $ ./AppleHDA8Series.s
    2. ALC audio:
      1. $ ./AppleHDA8Series.sh -b AppleHDA
    3. ALC audio and HD4600 HDMI audio:
      1. $ ./AppleHDA8Series.sh -b AppleHDA -b AppleHDAControll  
  3. Enter Password
  4. ... choose desired codec: (1-7)
  5. ... layout-id (y/n)
  6. Answer questions (y/n)
  7. 10.11 fix, see Credit/lisai9093 (below)
  8. Restart

Requirements

  1. OS X versions supported
    1. El Capitan/10.11.x
      1. Disable SIP: CsrActiveConfig=0x3
    2. ​Yosemite/10.10.x
      1. Allow unsigned kexts: kext-dev-mode=1
    3. Mavericks/10.9.x 
    4. Mountain Lion/10.8.x
  2. Intel Desktop motherboards
  3. Native AppleHDA (Restore native AppleHDA [Guide].pdf)
  4. Audio codec/ALC Injection, see Tools 3. (below), confirms:
    1. Supported Codecs, see Realtek Codecs and Applications (below)
    2. Supported Audio IDs, see Audio IDs (below)
    3. Working Audio ID Injection, Audio ID Injection (below)

Realtek Codecs and Applications (Codec/Device_ID/Application/Audio ID(s)/Audio Devices)

  1. ALC269/0x10ec0269/BRIX/1/HP, SPDIF
  2. ALC283/0x10ec0283/NUC and BRIX Pro/1/HP, Mic
  3. ALC885/0x10ec0885/Desktop/1/All
    1. ALC889A/same as ALC885 
  4. ALC887/0x10ec0887_v003002/Desktop/1 or 2 or 3/All
    1. ALC887-L/0x10ec0887_v002002Desktop/1 or 2/All
      1. ALC888B/same as ALC887  
  5. ALC888/0x10ec0888_v003002/Desktop/1 or 2 or 3/All
    1. ALC888-L/0x10ec0888_v002002Desktop/1 or 2/All
      1. ALC888S/same as ALC888  
  6. ALC889/0x10ec0889/Desktop/1 or 2/All
  7. ALC892/0x10ec0892/Desktop/1 or 2 or 3/All
  8. ALC898/0x10ec0899/Desktop/1 or 2 or 3/All
  9. ALC1150/0x10ec0900/Desktop/1 or 2 or 3/All

Audio IDs

  1. Audio ID: 1 (motherboard with 3, 5 or 6 audio ports)
    1. Stereo (2 inputs, 4 outputs), 5.1 analog surround (3 outputs) and 5.1 digital surround (optical)
      1. Front Panel: Pink & GreenMotherboard: Pink, Blue, Green, Orange, Black and SPDIF
  2. Audio ID: 2 (motherboard with 3 audio ports, enables analog surround sound))
    1. Stereo (1 input, 4 outputs), 5.1 analog surround (3 outputs) and 5.1 digital surround (optical)
      1. Front Panel: Pink & Green
      2. Motherboard: Green, Pink (> Orange), Blue (> Black) and SPDIF
  3. Audio ID: 3 (Enables HD3000/HD4000/HD5xx HDMI audio)
    1. Stereo (2 inputs, 3 outputs/) and 5.1 digital surround (optical)
      1. Front Panel: Pink & Green
      2. Motherboard: Pink, Blue, Green, Black and SPDIF
        1. No Orange support
        2. if required, see More Info/2. Customization guide (below) 

Audio ID Injectionaudio_ALCInjection

  1. HDEF/kext/no dsdt/HDAEnabler_.kext = Audio_ID
  2. HDEF/dsdt/layout-id = Audio_ID
  3. HDEF/ssdt/layout-id = Audio_ID, see ssdt_hdef
  4. HDEF/Clover/config.plist/Devices/Audio/Inject/Audio_ID
  5. HDEF/Chameleon/Extra/org.chameleon.Boot.plist
    1. HDAEnabler = Yes
    2. HDEFLayoutID = 01000000 or 02000000 or 0300000 

Unsupported/Non-working Realtek ALC AppleHDA.kext

  1. 100 Series/Intel High Definition Audio (Workaround requires 1, 2, 3 and 4)
    1. Rename dsdt/HDAS to HDEF  (Select one method)
      1. Clover: Download/config-audio_cloverALC-100series.plist.zip
        1. Add config.plist/ACPI/DSDT/Patches/Rename HDAS to HDEF
      2. ssdt injection (Any bootloader. Select Audio ID and install)
        1. Audio ID: 1, ssdt_hdef-1-100-hdas.zip
        2. Audio ID: 2, ssdt_hdef-2-100-hdas.zip
        3. Audio ID: 3, ssdt_hdef-3-100-hdas.zi 
    2. Restart
    3. Install Realtek ALC Audio (see Realtek ALC Installation Methods)
    4. Restart
  2. X99/Intel High Definition Audio  (Workaround requires 1, 2, 3, 4 and 5), 10.11/credit bOLEMO
    1. Rename dsdt/ALSA to HDEF (Select one method)
      1. Clover: Download/config-audio_cloverALC-x99.plist.zip
        • Add config.plist/ACPI/DSDT/Patches/Rename ALZA to HDEF
      2. ssdt injection (any bootloader):
    2. Restart
    3. Install Realtek ALC Audio (see Realtek ALC Installation Methods)
    4. Add x99 HD Audio device_id (Select one method)
      1. Clover: Download/config-audio_cloverALC-x99.plist.zip (Select one, appropriate version)
        • Add config.plist/KernelAndKextPatches/KextsToPatch/10.10-10.11+x99-ALC-Onboard-Audio
        • Add config.plist/KernelAndKextPatches/KextsToPatch/110.9.4-10.9.5-x99-ALC-Onboard-Audio
      2. Patched AppleHDA.kext (RealtekALC)
    5. Restart
  3. 887_v100101 and earlier
    1. Workaround: try 887 Legacy
  4. 888_v100101 and earlier
    1. Workaround: try 888 Legacy
  5. Asus P67H67 3xxx BIOS: Phantom codec
    1. Workaround: 2xxx BIOS downgrade, 7/8 Series motherboard upgrade
  6. MSI motherboards, pre Sandy Bridge
    1. Workaround: 6/7/8 Series motherboard upgrade
  7. AC97 (Front Panel)
    1. Workaround: HD Audio Front panel

More Information audio_ALC_guides

  1. Capabilities - Realtek ALC AppleHDA_v2 [Guide].pdf
    1. Audio_ID Configurations, Surround sound, audio popping, USB start up problem 
  2. Customization - Realtek ALC AppleHDA_v2 [Guide].pdf
    1. Manual speaker and headphone selection, Substitute SPDIF-2 Wire Output 
  3. Screenshots - Realtek ALC AppleHDA_v2.pdf
    1. System Information/Audio/Intel High Definition Audio, System Preferences/Sound/Output 
  4. No Audio Devices - Realtek ALC AppleHDA [Guide].pdf
    1. No audio devices, no sound, no codec 
  5. No Sound - Realtek ALC AppleHDA [Guide].pdf
    1. Audio devices present, no sound when selected 
  6. No Audio After Sleep/Wake - Realtek ALC AppleHDA [Fixes].pdf
    1. No audio devices on wak 
  7. Surround Sound - Realtek ALC - AppleHDA [Guide].pdf
    1. Players, analog, optical

Uninstall Realtek ALC AppleHDA

  1. cloverALC, remove:
    1. S/L/E/AppleHDA.kext and install the native AppleHDA.kext
      1. or S/L/E/AppleHDA.kext/Contents/Resources/layout1.zml.zlib, layout2.zml.zlib, layout3.zml.zlib, Platforms.zml.zlib
    2. config.plist/.../KextsToPatch/AppleHDA (3x)
    3. EFI/CLOVER/kexts/10.xx or other/realtekALC.kext
  2. pikeralphaALC, remove:
    1. L/E/AppleHDA8xx.kext
    2. config.plist/.../KextsToPatch/AppleHDA (3x)
  3. realtekALC, remove:
    1. S/L/E/AppleHDA.kext and install the native AppleHDA.kext
  4. pikeralpha AppleHDA8Series, remove:
    1. S/L/E/AppleHDA8xx.kext and install the native AppleHDA.kext

Tools

  1. IORegistry Explorer (choose one)
    1. IORegistryExplorer_v2.1.zip (View Raw)
    2. IOJones

  2. DPCIManager
  3. Audio/ALC Injection: audio_codecdetect.command.zip (select View Raw, double click)
  4. MaciASL

Problem Reporting

  1. Description of audio problem
  2. OS X version/motherboard model/BIOS version/processor/graphics
  3. Procedure/Guide Used
  4. Audio/ALC Injection (Tools 3.)
    1. Double click/Downloads/audio_codecdetect.command
    2. Terminal/Shell/File/Export Text As. .
  5. Copy of IOReg - IOReg_v2.1/File/Save a Copy As…, verify file (Tools 1.)
  6. Copy Of Console/All Messages  (last boot)/File/Save a Copy As..
  7. Installed S/L/E/AppleHDA.kext or AppleHDA8Series AppleHDAxxx kext
  8. Screen shots:
    1. DPCIManager/Status (Tools 2.)
    2. System Information/Hardware/Audio/Intel High Definition Audio (not Devices) 
  9. Terminal/Shell/Export Test As. . .  (if script used)
    1. audio_realtekALC-100.command
    2. AppleHDA8Series.sh
    3. audio_cloverALC-100.command 
  10. Chameleon
    1. Extra/org.chameleon.Boot.plist
    2. DPCIManager/Misc/Boot Log (Tools 2.)
    3. Extra/dsdt.aml (if installed)
    4. Extra/ssdt.aml (if installed 
  11. Clover
    1. EFI/Clover/config.plist
    2. DPCIManager/Misc/Boot Log (Tools 2.)
    3. EFI/Clover/ACPI/Patched/dsdt.aml (if installed)
    4. EFI/Clover/ACP Patched/ssdt.aml (if installed) 

Credit

bOLEMO, post #196, El Capitan: Realtek ALC AppleHDA Audio

lisai9093, Post #5, AppleHDA for El Capitan discussion

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

PikeRAlpha New style of AppleHDA.kext patching for Yosemite | Pike's Universum

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

TimeWalker75a, Post # 20, No sound after waking from sleep

RevoGirl



#2
ham4ever

ham4ever

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 344 posts
  • Gender:Male

Thanks ,works perfect  :D

ALC982 



#3
WonkeyD

WonkeyD

    InsanelyMac Protégé

  • Members
  • Pip
  • 3 posts

Works here too, ALC1150, Z87, El Cap, Chameleon.

 

It complains on startup about extra characters at line 177 but still works ok.



#4
zeroxw

zeroxw

    InsanelyMac Protégé

  • Members
  • Pip
  • 9 posts

Thanks ,works perfect  :D

ALC982 

I have ACL892 but cant make it work, can you please help me step by step?



#5
mitch_de

mitch_de

    InsanelyMacaholic

  • Retired
  • 3,011 posts
  • Gender:Male
  • Location:Stuttgart / Germany

The thing you must do - before running the GREAT  audio_realtekALC-110.command, is to check if you already have set the layout-id to Audio-ID  1,2 or 3.

Mostly it was set before to other layout-id , like 12  (x0C) or 885. (in dsdt HDA part or by injection chameleon other injectors like bootloaders or kexts)

If you set the rigtht AUDIO ID (= layout-id) all other things (the patch, backup old unpatched kext) will be made by the patch script.

 

Look this part above about the many ways (1. to 5., below listed)  to set the AUDIO-ID (= layout-id) - you only have use ONE of that:

Audio ID Injectionaudio_ALCInjection : 01,02 or 03

  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/Extra/org.chameleon.Boot.plist
    1. HDAEnabler = Yes
    2. HDEFLayoutID = 01000000 or 02000000 or 03000000
    3.  

 

If  you use dsdt way - in list above 2. , it  looks like:

  Device (HDEF)

         .....
 
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x04)
                        {
                            "layout-id", 
                            Buffer (0x04)
                            {
                                0x01, 0x00, 0x00, 0x00    // in the past often was set to x0C or others
                            }, 
 
                            "PinConfigurations", 
                            Buffer (Zero) {}
                        }, Local0)
          ....
                }
            }


#6
ham4ever

ham4ever

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 344 posts
  • Gender:Male

I have ACL892 but cant make it work, can you please help me step by step?

first of all what method u wanna use ?

Clover way or AppleHDA.kext way?



#7
zeroxw

zeroxw

    InsanelyMac Protégé

  • Members
  • Pip
  • 9 posts

first of all what method u wanna use ?

Clover way or AppleHDA.kext way?

 

 

"Piker-Alpha/patch alias" but it's not important, please help me with your method. I use MSI H77GMA45 with ACL892. 

Thanks



#8
TheIvanovization

TheIvanovization

    InsanelyMac Protégé

  • Members
  • Pip
  • 20 posts
  • Gender:Male

Hi! your post helps is very cool. The only "but" that I have is the method to obtain the native AppleHDA not work for El Capitan. The installation package of El Capitan has changed. I got looking at the search box but it had not been for that I would not have found. Thank you. :thumbsup_anim:



#9
pippox0

pippox0

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 463 posts
  • Gender:Male
I have a Realtek ALC889
I'm still using an AppleHDA patched kext (i'm using it since Osx Lion) and it works very well also with El Capitan .

BTW i will give a try ....

#10
toleda

toleda

    InsanelyMac Deity

  • Gurus
  • 1,876 posts
  • Gender:Male

the method to obtain the native AppleHDA not work for El Capitan.

Run the El Capitan Installer over the current EL Capitan install to restore native AppleHDA.kext.



#11
lezardon

lezardon

    InsanelyMac Protégé

  • Members
  • Pip
  • 23 posts

Hello,

 

I have a P5Q motherboard with a ALC 888S-VD sound card. This model is excluded from the above tuto. It makes days that I'm looking for a solution to get it working on el Capitan. Has someone any clue for this issue ?

 

Thank you 



#12
toleda

toleda

    InsanelyMac Deity

  • Gurus
  • 1,876 posts
  • Gender:Male

ALC 888S-VD 

codec device_id and revision? (Post #1/Tools/2. DPCIManager/Status)



#13
lezardon

lezardon

    InsanelyMac Protégé

  • Members
  • Pip
  • 23 posts

Hello Toleda

 

Thank you for the very quick answer. Here is below my sound card détails:

 

Audio device: 0x80863A3E

Sub device: 0x104382FE

Code ID: 0x10EC0888

Revision: 0x0101

Codec name: Realtek ALC888S-VD

 

Your support is very ap​preciated



#14
toleda

toleda

    InsanelyMac Deity

  • Gurus
  • 1,876 posts
  • Gender:Male

Code ID: 0x10EC0888

Revision: 0x0101

Codec is 888/00101

Legacy is 888/00201

Run either Post #1/Realtek ALC AppleHDA Scripts

Answers:

Legacy: y

Continue: y

Reply with script/Terminal/Export Text As...



#15
lezardon

lezardon

    InsanelyMac Protégé

  • Members
  • Pip
  • 23 posts

Thanks Toleda. The sound panel is ok now.

However, I have a strange behavior from my computer. The first time after applied your patch and restarted, the sound was bad. I shut down the computer and after 1 night, I started it again. then the sound was very good and thought the problem was definitely resolved. After restarted again, the issue rise again : bad sound. It comes again with an issue with the time clock which is not accurate (too slow).

Don't you have any idea on the reason of such behavior ?



#16
toleda

toleda

    InsanelyMac Deity

  • Gurus
  • 1,876 posts
  • Gender:Male

It comes again with an issue with the time clock which is not accurate (too slow).

Don't you have any idea on the reason of such behavior ?

No.



#17
os X nOOb

os X nOOb

    InsanelyMac Protégé

  • Members
  • Pip
  • 7 posts

Hello everyone,

 

Can someone please tell me what I`m doing wrong?

 don't have sound yet and, I tried all Three Methods that you suggested in the first post of this topic.

 

1. method: realtekALC/patch kext in place

audio_realtekALC-110.command.zip  - didn`t help

You can see the log in "audio_realtekALC-110_v1.0h.command.txt.zip"

 

2. method: cloverALC/patch kernel cache  - didn't help

 

3. method: Piker-Alpha/patch alias  - didn't help

When i tried ./AppleHDA8Series.sh -a 887 -l 3 -d /System/Library/Extensions

in terminal, I got message "/System/Library/Extensions/FakeSMC.kext was installed improperly and cannot be used."

Do I need to reinstall it somehow or just delete from Extensions and change with other FakeSMC?

 

Then, I tried to manually select model of my Realtek with:

./AppleHDA8Series.sh -b AppleHDA

then i choose the second option (Realtek ALC  887 (0x10EC0887 / 283904135)) and with layout-id : 0 -

I got message "Looking in: /System/Library/Extensions/FakeSMC.kext for ConfigData

Error: ConfigData NOT found!"

You can see the log in "terminal-layout 0.txt"

 

When I tried to change layout-id from 0 to 1, I got a message that everything is OK and "ConfigData for Realtek ALC 887 found!",  but after restart I still don't have a sound card installed. I got the same message also for layout-id=2 and 3

You can see the log in "terminal-layout 1.txtterminal-layout 2.txt and terminal-layout 3.txt"

 

I will also upload a log file from IOReg, DPCIManager and Console file from last boot.

 

My configuration is:

System Version: OS X 10.11 (15A284) / Kernel Version: Darwin 15.0.0 / 

MSI H61M-P31 (audio by Realtek ALC887, network by Realtek 8111E) / Intel i5-2500k / 8GB DDR3 / Saphire HD5870 / HDD1: 64GB SSD / HDD2: 2TB 3.5" 

 

 

Thank you all guys in advance for all your time and effort.

Attached Files



#18
lezardon

lezardon

    InsanelyMac Protégé

  • Members
  • Pip
  • 23 posts

No.

 

I finally found the solution.

I have analyzed both logs when the computer had good and bad sound. With Excel, I have compared each lines and found some différences. On the first log, the CPU was loaded with a certain speed and on the other log, the CPU speed was different. See below:

 

Log1                                                                                                 Log2

 

FSBFrequency=422MHz DMIvalue=333330kHz FSBFrequency=633MHz DMIvalue=333330kHz

Finally: Bus=333295kHz CPU=3000MHz Finally: Bus=499937kHz CPU=3000MHz

 

 

 

 I have then fixed the correct speed by copying the data of the Log1 into Clover (CPU part / Frequency MHz and Bus Speed kHZ).

 

I have restarted my computer and everything is going fine now.

 

CONCLUSION: Check your CPU speed in Clover !




#19
toleda

toleda

    InsanelyMac Deity

  • Gurus
  • 1,876 posts
  • Gender:Male

Can someone please tell me what I`m doing wrong?

Audio ID injection not set,;see Post #1, Audio ID Injection (required)

You can see the log in  "audio_realtekALC-110_v1.0h.command.txt.zip"; not attached

Pike's script /10.11 not supported; see Piker-Alpha AppleHDA8sries Script, Step 7

For addition support; see Post #1, Problem Reporting


restarted my computer and everything is going fine now.

Thanks.



#20
LolNoob121

LolNoob121

    InsanelyMac Protégé

  • Members
  • Pip
  • 7 posts

Hey, Toleda!
Can you help me?
I have
MB: ASUS P6TSE with ALC1200

Video: GTX 770(4gb, GIGABYTE)
Proc: intel core i7 920 @2.67
Is there any way to enable HDMI audio?
OSX 10.10







Also tagged with one or more of these keywords: Realtek, AppleHDA, 887, 892, 1150, audio, sound


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

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