Jump to content

AppleALC — dynamic AppleHDA patching


vit9696
5,390 posts in this topic

Recommended Posts

9 hours ago, insanelyDeepak said:

sure 

1.first of all make AppleALC working for you, don't alter or make any changes until you find its working perfect for you 

2. layout selection there is plenty of layout already there you must try all those to find best working one like  CX20751/2 and CS4213 is already must try those 

1545306491_ScreenShot2018-09-28at11_04_58AM.thumb.png.b0f56859303536cc563de34af353759f.png

 

 

3. if you find none of version is good enough, then you can make one or request for new one , im here 

 

PS: must use AppleALC Release version 

 

post your codec_dump i will take a look 

Thanks for the reply

I tried the layouts present in AppleALC and they don't work well for that codec, so im working for a solution. The posted files have codec_dump.txt in the codecgraph folder.

 

Link to comment
Share on other sites

7 hours ago, insanelyDeepak said:

Hi 

alc887-VD is already there you must try them 

2063911154_ScreenShot2018-09-29at8_23_56AM.png.b64a08fe26c0444bec0d083512dd1576.png

 

I just sequentially tried all of them, I don't get any output devices with any of them. Attaching config and screenshots of stuff that may be relevant. Screenshots are using layout 99 because that's the last one I tried but there was no difference regardless of layout. I don't think FixHDA fix, HDAS to HDEF and Coffee Lake kext patch is needed but I don't get any audio devices with or without those so I left them in anyway. In High Sierra I used latest AppleALC, layout 1 and only HDAS to HDEF with working sound. 

config.plist

Screenshot 2018-09-29 at 12.37.40.png

Screenshot 2018-09-29 at 12.36.35.png

Screenshot 2018-09-29 at 12.36.10.png

Edited by yobro
Link to comment
Share on other sites

20 hours ago, yobro said:

 

I just sequentially tried all of them, I don't get any output devices with any of them. Attaching config and screenshots of stuff that may be relevant. Screenshots are using layout 99 because that's the last one I tried but there was no difference regardless of layout. I don't think FixHDA fix, HDAS to HDEF and Coffee Lake kext patch is needed but I don't get any audio devices with or without those so I left them in anyway. In High Sierra I used latest AppleALC, layout 1 and only HDAS to HDEF with working sound. 

config.plist

Screenshot 2018-09-29 at 12.37.40.png

Screenshot 2018-09-29 at 12.36.35.png

Screenshot 2018-09-29 at 12.36.10.png

strange 

 

can you check appleALC and AppleHDA is loaded  ? 

 

Link to comment
Share on other sites

Hello,

 

I installed AppleALC into the EFI Clover folder, and it partially works. Headphone detection/playback works, and so does microphone. However, internal speakers are detected, but no audio is ever played via internal speakers. I believe codec is ALC298.

 

1. Razer Blade Pro FHD 2017
2. ALC298
3. Layout 4 injected in method HDEF, tried all the other layouts suggested in the compatibility list on github for this codec.
4. 10.14
5.  See attached plist from dump

Info.plist

Link to comment
Share on other sites

12 hours ago, insanelyDeepak said:

strange 

 

can you check appleALC and AppleHDA is loaded  ? 

 

I used kextstat and grep to look for loaded kexts and I found that as.vit9696.AppleALC (1.3.2) is loaded but when I grep for HDA I only get com.apple.driver.AppleGFXHDA (100.1.23), com.apple.iokit.IOHDAFamily (282.10) and com.apple.driver.AppleHDAController (282.10). It looks like the problem is that AppleHDA isn't loading. 

Link to comment
Share on other sites

9 hours ago, yobro said:

I used kextstat and grep to look for loaded kexts and I found that as.vit9696.AppleALC (1.3.2) is loaded but when I grep for HDA I only get com.apple.driver.AppleGFXHDA (100.1.23), com.apple.iokit.IOHDAFamily (282.10) and com.apple.driver.AppleHDAController (282.10). It looks like the problem is that AppleHDA isn't loading. 

AppleHDA is not loaded thats why AppleALC not working,
1. rebuild system and kext cache 

2. you can try IRQ Patch too 

 

 

Link to comment
Share on other sites

16 hours ago, insanelyDeepak said:

@vit9696 @vandroiy2012  

im facing boottime increased with latest version of AppleALC , verbose is flooded with log of applehdaengineoutput::performformatchange and applehdaengineinput::performformatchange 

Um, but are not those log entries added by Apple? Is it on Mojave? I do not think much could be done here but exploring why these entries actually are printed, perhaps some codec data needs to be updated…

Link to comment
Share on other sites

16 minutes ago, vit9696 said:

Um, but are not those log entries added by Apple? Is it on Mojave? I do not think much could be done here but exploring why these entries actually are printed, perhaps some codec data needs to be updated…

no high sierra only 

also this line 

busy timeout iohdacodec blah blah blah

 

I think appleALC is trying to forceHDMI audio , but i don't have hdmi and don't want to use it 

 

 

Edited by insanelyDeepak
Link to comment
Share on other sites

40 minutes ago, insanelyDeepak said:

AppleHDA is not loaded thats why AppleALC not working,
1. rebuild system and kext cache 

2. you can try IRQ Patch too 

 

 

I rebuilt the cache and restarted without any difference. According to RehabMan, "IRQ Fix" can be accomplished with "FixHPET" "FixIPIC" "FixRTC" and "FixTMR" which I already have in my config. 

Link to comment
Share on other sites

2 hours ago, insanelyDeepak said:

what your OSX Version ? 

 

The problem is with Mojave 10.14 (upgraded from Beta), everything works fine with latest AppleALC and layout 1 in High Sierra 10.13.6. 

Edited by yobro
Link to comment
Share on other sites

On 10/1/2018 at 9:08 AM, insanelyDeepak said:

no high sierra only 

also this line 

busy timeout iohdacodec blah blah blah

 

I think appleALC is trying to forceHDMI audio , but i don't have hdmi and don't want to use it 

 

 

Hrm, "forceHDMI"? How so? I do not think AppleALC has any HDMI patches as of now. The only thing that applies HDMI patches is WhateverGreen, and you can turn it off by -igfxnohdmi. With your configuration it is quite unlikely that it is going to trigger.

Link to comment
Share on other sites

On 9/14/2018 at 7:46 AM, insanelyDeepak said:

Hi 

you must use below SSDT with layout 13 

 

https://bitbucket.org/RehabMan/os-x-eapd-codec-commander/src/cff89db6fba02b41a5edb043acba0e83d1de4a89/SSDT-ALC256-insanelydeepak.dsl?at=master&fileviewer=file-view-default

use latest AppleALC as @jaymonkey said 
AppleALC changes itself alot you must use alc_layout instead layout_id in DSDT/SSDT like below 
 


 "alc-layout-id", 
                        Buffer (0x04)
                        {
                             0x0D, 0x00, 0x00, 0x00                         
                        }, 

 

 

@jaymonkey sorry i was quite busy from last week , this week i have plenty of time, will try to fix your codec issue 

 

 

 

 

Only layout 11 (0x0B) works for me otherwise headphone does not show up with layout 13 and for layout 28 and 56 headphone does not show up when plugged in.  A lot of distortion from the headphone jack for me but must be something with my jack or Mojave because I have the same distortion with VoodooHDA.

Link to comment
Share on other sites

18 hours ago, yobro said:

The problem is with Mojave 10.14 (upgraded from Beta), everything works fine with latest AppleALC and layout 1 in High Sierra 10.13.6. 

for audio you must stay in High Sierra , when you found best result move to Mojave 

 

if you have access to 10.13 let me know 

i have patched appleHDA for ALC887  so you can test and verify  

49 minutes ago, oSxFr33k said:

 

 

Only layout 11 (0x0B) works for me otherwise headphone does not show up with layout 13 and for layout 28 and 56 headphone does not show up when plugged in.  A lot of distortion from the headphone jack for me but must be something with my jack or Mojave because I have the same distortion with VoodooHDA.

Hi 

layout 11 for no-auto switch, it works for you which means you have issue with auto-switch same as me 

can you check issue in High Sierra ? 

Link to comment
Share on other sites

48 minutes ago, insanelyDeepak said:

for audio you must stay in High Sierra , when you found best result move to Mojave 

 

if you have access to 10.13 let me know 

i have patched appleHDA for ALC887  so you can test and verify  

Hi 

layout 11 for no-auto switch, it works for you which means you have issue with auto-switch same as me 

can you check issue in High Sierra ? 

 High Sierra:

 

Layout 11 ( 0x0b) no audio

Layout 13, 28 and 56 audio works fine headphones with auto switching but still distorted for me.  One of those layouts in Mojave has no audio either.  I know that 0x38 layout 56 no auto switching with headphones, no output for headphones, same with layout 13 in Mojave, so in Mojave for me the best is layout 11.  I'll have to figure out why my headphone is distorted later must be something specific with my audio jack or my audio card.

 

Just checked again in Mojave again, layout 13 no headphone shows up but when . plugged in I have a continuous output noise while internal speakers still activated and working fine.  But layout 11 and 28 I have auto detect headphone and I think I am sticking with layout 28 (0x1C) for a while.

 

Sorry Layout 28 seems to just show both speaker and headphone and I have to manually switch between them in Mojave so going back to layout 11.

Edited by oSxFr33k
Link to comment
Share on other sites

5 hours ago, insanelyDeepak said:

for audio you must stay in High Sierra , when you found best result move to Mojave 

 

if you have access to 10.13 let me know 

i have patched appleHDA for ALC887  so you can test and verify  ? 

I have access to 10.13, it is still on my other ssd, but no patch is needed, the audio already works fine with standard AppleALC and AppleHDA. If the patched AppleHDA is for 10.14 then I'd love to give it a try. 

Edited by yobro
Link to comment
Share on other sites

Hi

after I updated from a fully functional Mac OS High Sierra to Mojave, the audio stopped working. There are no audio devices shown in System Preferences. Seems like Clover is not able to load AppleALC.kext at startup.

 

Mainboard: Asus Prime H270M-Plus

Codec: ALC887

Inject Layout: 1

Mac OS: 10.14

Info.plist: Info.plist

Edited by FJD
Link to comment
Share on other sites

8 hours ago, FJD said:

Hi

after I updated from a fully functional Mac OS High Sierra to Mojave, the audio stopped working. There are no audio devices shown in System Preferences. Seems like Clover is not able to load AppleALC.kext at startup.

 

Mainboard: Asus Prime H270M-Plus

Codec: ALC887

Inject Layout: 1

Mac OS: 10.14

Info.plist: Info.plist

i have alc 887 on an asus z370-p using layout id 7 

Link to comment
Share on other sites

15 hours ago, errorexists said:

i have alc 887 on an asus z370-p using layout id 7 

sadly didn't work for me...

 

EDIT: fixed it by removing lilu.kext + appleALC.kext from /L/E and keeping it in /EFI/Clover/Kexts/Other

Edited by FJD
Link to comment
Share on other sites

On 10/3/2018 at 10:07 AM, oSxFr33k said:

 High Sierra:

 

Layout 11 ( 0x0b) no audio

Layout 13, 28 and 56 audio works fine headphones with auto switching but still distorted for me.  One of those layouts in Mojave has no audio either.  I know that 0x38 layout 56 no auto switching with headphones, no output for headphones, same with layout 13 in Mojave, so in Mojave for me the best is layout 11.  I'll have to figure out why my headphone is distorted later must be something specific with my audio jack or my audio card.

 

Just checked again in Mojave again, layout 13 no headphone shows up but when . plugged in I have a continuous output noise while internal speakers still activated and working fine.  But layout 11 and 28 I have auto detect headphone and I think I am sticking with layout 28 (0x1C) for a while.

 

Sorry Layout 28 seems to just show both speaker and headphone and I have to manually switch between them in Mojave so going back to layout 11.

system specification ?? 

 

On 10/3/2018 at 1:55 PM, yobro said:

I have access to 10.13, it is still on my other ssd, but no patch is needed, the audio already works fine with standard AppleALC and AppleHDA. If the patched AppleHDA is for 10.14 then I'd love to give it a try. 

no mojave yet , i didn't give it a try after developer builds 

Link to comment
Share on other sites

×
×
  • Create New...