Jump to content

Patching AppleHDA for ALC898 via Clover


Best Answer Hackmodford, 28 January 2014 - 10:48 PM

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 :)

 

Update: Thank you Toleda for the solution  :D

Go to the full post


  • Please log in to reply
16 replies to this topic

#1
Hackmodford

Hackmodford

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 230 posts
  • Gender:Male
  • Location:'Merica's Mitt

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/t...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.insanelym...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.



#2
Hackmodford

Hackmodford

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 230 posts
  • Gender:Male
  • Location:'Merica's Mitt

Update: I had to use 1 instead of 3. 

This is pretty sweet :)



#3
toleda

toleda

    InsanelyMac Legend

  • Gurus
  • 822 posts
  • Gender:Male

For Audio ID: 3 (HD4000 HDMI audio), run AplleHDA8Series.sh with Layout 3 option.



#4
Hackmodford

Hackmodford

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 230 posts
  • Gender:Male
  • Location:'Merica's Mitt

That was the first thing I tried.

I'm assuming since I'm not using the HD4000 right now that's why it didn't work.



#5
toleda

toleda

    InsanelyMac Legend

  • Gurus
  • 822 posts
  • Gender:Male

That was the first thing I tried.

I'm assuming since I'm not using the HD4000 right now that's why it didn't work.

No. For Audio ID: 3,  set Clover/Devices/Audio/Injet/3 and AppleHDA898.kext/Layout 3



#6
Hackmodford

Hackmodford

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 230 posts
  • Gender:Male
  • Location:'Merica's Mitt

Dude, I did and I got no sound. Then I tried 1 and it worked.



#7
Mirone

Mirone

    InsanelyMac Legend

  • Local Moderators
  • 1,441 posts
  • Gender:Male
  • Location:Brazil
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.


#8
toleda

toleda

    InsanelyMac Legend

  • Gurus
  • 822 posts
  • Gender:Male

I did and I got no sound. Then I tried 1 and it worked.

No issues when installed correctly, I tested 898/Audio ID: 3, verified working.  



#9
Hackmodford

Hackmodford

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 230 posts
  • Gender:Male
  • Location:'Merica's Mitt

Is there something wrong with using Audio ID: 1?

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

Attached File  DSDT.aml.zip   15.75KB   4 downloads



#10
toleda

toleda

    InsanelyMac Legend

  • Gurus
  • 822 posts
  • Gender:Male

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



#11
Hackmodford

Hackmodford

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 230 posts
  • Gender:Male
  • Location:'Merica's Mitt

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.)



#12
Hackmodford

Hackmodford

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 230 posts
  • Gender:Male
  • Location:'Merica's Mitt

Best Answer

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 :)

Attached File  DSDT.aml.zip   15.75KB   14 downloads

 

Update: Thank you Toleda for the solution  :D



#13
toleda

toleda

    InsanelyMac Legend

  • Gurus
  • 822 posts
  • Gender:Male

If you could verify I made the correct change to the DSDT 

Correct.  May want to update the solution.



#14
ammoune78

ammoune78

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 190 posts
  • Gender:Male
  • Location:Morocco

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!



#15
toleda

toleda

    InsanelyMac Legend

  • Gurus
  • 822 posts
  • Gender:Male

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



#16
ammoune78

ammoune78

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 190 posts
  • Gender:Male
  • Location:Morocco

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/P...leHDA8Series.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



#17
Hackmodford

Hackmodford

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 230 posts
  • Gender:Male
  • Location:'Merica's Mitt

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.

 

Attached File  Screen Shot 2014-02-01 at 9.56.26 PM.png   153.92KB   5 downloads







0 user(s) are reading this topic

0 members, 0 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