Jump to content

Patching AppleHDA for ALC898 via Clover


Hackmodford
 Share

17 posts in this topic

Recommended Posts

One of the reasons I decided to use Clover was that I heard you can patch AppleHDA.kext on the fly so that software updates will not break audio.

 

I'm a little confused as to how to do this.

 

Currently I use a patched version of AppleHDA.kext (obtained from "you know what") to work with my DSDT edits. If I want to do this with clover (so that software updates don't break it) what should I do?

 

(I am transitioning away from all dependence on tonymac software...)

 

1 problem, is I don't have the original AppleHDA.kext anymore. Can I redo the 10.9.1 update to get it back?

I just realized I was typing this on my work iMac  :blush:

 

Update:

This seems to be the info I need, correct?

https://github.com/toleda/audio_CloverALC

 

Should I use layout definition 1 or 3? I need HDMI audio to work. 

1 - 3/5/6 audio port analog audio
2 - 3 audio port analog audio
3 - HD3000/HD4000 HDMI audio and analog audio

I have the HD4000 (currently disabled, but you never know right  ;))

 

On this post: http://www.insanelymac.com/forum/topic/293001-mavericks-realtek-alc-applehda-audio/

  • Audio_ID: 1 - 5/6 port Realtek ALC onboard audio and HD5K/AMD/Nvidia HDMI audio
  • Audio_ID: 2 - 3 port Realtek ALC onboard audio and HD5K/AMD/Nvidia HDMI audio
  • Audio_ID: 3 - 3/5/6 port Realtek ALC onboard audio and HD3K/HD4K/AMD/Nvidia HDMI audio

Altogether, this leads me to think I should pick 3.

Link to comment
Share on other sites

Use LayoutID = 4 and everything works fine on my ALC887 

even HDMI. so for me it's a matter of aesthetics 

and keep things organized. 

What matters is the content 

idepedente the number of Layout. 

if so you would use layouts Real MAC. 

according to our SMBIOS.

Link to comment
Share on other sites

Is there something wrong with using Audio ID: 1?

The reason 3 didn't work is probably related to my DSDT.

Yes, dsdt injects layout-id 1.  Remove config.plist/Audio/Inject/1.  

Your dsdt is edited for HD4000 HDMI Audio; HD4000 HDMI audio does not work with Audio ID: 1

Link to comment
Share on other sites

Okay, so you're saying the config.plist/Audio/Inject/1 is redundant.

 

And the reason layout 3 wasn't working was because my dsdt was injecting 1.

 

But should I be using layout 3, since I do have a HD4000 (even if it's not active)

Will using layout 3 break HDMI audio with the GTX 760?

 

Should my DSDT be edited? (someone else helped my create the dsdt, so I'm not that familiar with it.)

Link to comment
Share on other sites

Okay, so I removed the inject string from Clover.

Then I edited my dsdt. I believe I found where it was setting the layout id to 1 and changed it to 3. Rebooted. 

Sound still worked  :blink:

 

Ohhhh kaaay.... then I reran the AppleHDA8Series.sh script. This time it asked if I wanted my layout id to be 3. (last time it defaulted to 1)

I said yes and rebooted.

 

I still have sound and HDMI audio still works.

 

If you could verify I made the correct change to the DSDT that would be great :)

DSDT.aml.zip

 

Update: Thank you Toleda for the solution  :D

Link to comment
Share on other sites

Hi! I have z87x-ud4h run clover 2547 with: config.plist/Audio/Inject/1 and config.plist/PCI/HDAInjection/1 for my ALC898 with native AppleHDA.kext and NO AUDIO! I don't know why! I have 10.9.1 but i don't use (HDMI HD4600 or GTX770) Just DVI and green port. Please help to know what's wrong!

Link to comment
Share on other sites

Hi! I have z87x-ud4h run clover 2547 with: config.plist/Audio/Inject/1 and config.plist/PCI/HDAInjection/1 for my ALC898 with native AppleHDA.kext and NO AUDIO! 

Delete config.plist/PCI/HDAInjection/1.

Missed this step:

See Mavericks AppleHDA HDMI Audio - OSx86 10.9 (Mavericks) - InsanelyMac Forum

Goto Realtek ALC AppleHDA Support kext Installation/1. Clover/Realtek ALC AppleHDA Support kext WITHOUT patched binaries/1. toleda/audio_CloverALC

Link to comment
Share on other sites

Delete config.plist/PCI/HDAInjection/1.

Missed this step:

See Mavericks AppleHDA HDMI Audio - OSx86 10.9 (Mavericks) - InsanelyMac Forum

Goto Realtek ALC AppleHDA Support kext Installation/1. Clover/Realtek ALC AppleHDA Support kext WITHOUT patched binaries/1. toleda/audio_CloverALC

I tried this:

Steps

1. Clover (Use Clover Configurator, Xcode, Property List Editor, etc.)

    1. Downloads/audio_CloverALC-master/config-audio_realtek_alc.plist

    2. EFI/Clover/config.plist/Add

     1. Kernel and KextsPatches/KextsToPatch/ALC---- Codec Patch

     2. Devices/Audio/Inject/Layout (1, 2, or 3)

     3. Save

2. ALC Support kext (Use Terminal)

    1. https://github.com/Piker-Alpha/AppleHDA8Series.sh

    2. Download Zip

    3. $ cd Downloads/AppleHDA8Series.sh-master

    4. $ ./AppleHDA8Series (no arguments required)

    5. Password

    6. Codec

    7. Layout

    8. Version

    9. Install S/L/E

There is no zip file to download, but once go to the step 3: $ cd Downloads/AppleHDA8Series.sh-master i have this message in terminal: $: command not found

Link to comment
Share on other sites

First: look up what the cd command means. Or learn some basic Terminal skills ;)

Second: My first guess is that you type the dollar sign ($). That is not necessary.

I'm also guessing that you have not extracted the zip file.

 

cd = "go to this directory"

cd downloads/AppleHDA8Series.sh-master

That command will point the terminal to the correct directory.

 

Downloads/AppleHDA8Series.sh-master should be the location of the extracted zip file.

 

Once you get that straightened out i'm pretty sure you'll run in to this problem...

For the fourth step "4. $ ./AppleHDA8Series (no arguments required)" make sure you type it like this

./AppleHDA8Series.sh

That command will run the script.

 

Here is a screenshot demonstrating how the cd command works and how to run a shell script.

 

post-1106388-0-46764400-1391309825_thumb.png

Link to comment
Share on other sites

 Share

×
×
  • Create New...