Jump to content

AppleALC — dynamic AppleHDA patching


vit9696
5,390 posts in this topic

Recommended Posts

Thanks to the developers work!

 

I am using AppleALC with my customized config files for VIA VT1802 on my Hasee K590c Laptop.

Although I have tried to correct the pins and nodes, my internal mic still won't work (external mic works well). And noise reduction also won't work.

 

I attached my DSDT, codec and config files here. Can anyone help me to find where is the problem? Thanks.

 

 

AppleALC Platform Layout Info.zip

codec#0.txt

DSDT.aml.zip

Link to comment
Share on other sites

Ok, got some information from MacPeet, as follows:

 

"mmh, is not mine.

It probably parts were used by me.
 
Is ALC3241 = ALC290? The HDA is patched for 290.
 
binpatches then:
 
Find 8B19D411
Replace 9002EC10
 
Find 8319D411
Replace 00000000
 
Find 8508EC10
Replace 00000000"      (credits: MacPeet)

 

Trying to keep it clear, I've tested some versions of the ALC290 patch from toleda, insanelydeepak and others, but only the speakers/headphone out worked, with no microfone input at all. That happens with a lot of people.

 

The first time I dumped the ALC3241 codec, RehabMan suggested it could be an ALC290, as its vendor_id is something "0290".

 

Actually, I downloaded it before as a working version for the HP Envy K Series, for testing, from a RehabMan repo, I guess.

 

Thank you all

Hi Vandroiy2012, is there any news on this codec? Is there something I can do?

Thank you

Link to comment
Share on other sites

So far I have tested the latest build of AppleALC on all my rigs, and confirm the CX20752, IDT 7605 and IDT 76D1 works as they should, but Realtek ALC 269 can be proven a challenge ( only layout 3 works with my old Asus laptop but no Headphone, although a fix can be applied to the pin config and platform easily ). You should move all ALC 269 related codecs to a range of layout that cannot be mistaken among others, also to make it easier to check e.g layout 60 to 99

Link to comment
Share on other sites

Hi everyone, I would like to thank vit9696, toleda and everyone else for your hard work and share.

  • MSI Z97i-AC board with ALC892 [8086:8ca0]
  • DSDT patched with HDEF injected "hda-gfx" and "layout-id" as 0x01
  • Running OS X 10.10.5 with latest OS updates/patches
  • Vanilla AppleHDA.kext in /S/L/E/
  • AppleALC from GitHub (pre-built binary) version 1.0.10 in /Library/Extensions/
  • Clover r3543 without any HDA or HDMI injections etc.

Works as expected, without any Info.plist editing on my side. This is amazing, many thanks!

 

I haven't tried booting to my test 10.11 installation (other HDD in same Hackintosh) yet, so I'd like to ask the following please:

  • Most likely will need to move AppleALC.kext in /Clover/kexts/10.11/ folder unless in works in El Capitan from /Library/Extensions/ (with rootless etc.) too;
  • There is a talk in the thread here about AppleALC version 1.0.11 but the latest available pre-built binary on GitHub is 1.0.10. Can 1.0.10 work in El Capitan? The only way to get 1.0.11 if needed, is to compile it locally?
  • I also read about CodecCommander.kext, but no link can be found; is this kext related to ALC audio at all? Or other models? Sorry, wasn't clear to me... I downloaded a zip file shared here, and inside CodecCommander there seems also to be reference to ALC892, hence my confusion...
  • Any tip how to check (and fix) if AppleALC loads first, before AppleHDA? I would appreciate a link to some guide...

Thank you all again, this is great work!

If your codec is working properly without CodecCommander especially after wake up from sleep you don't need that kext

 

 

Finally CA0132 worked Everything  to Rebuild.

Mainly volume adjuster worked now.

I upload  files to Resources.

Please update Resources

Layout ID-0-12

Thank you for AppleALC Team.

Thank you, guys

I guess only layout-id 0 is working, i can't see any other resources.

 

The AppleALC.kext i've made has 8 different layouts (0-7), so please test them all that we can make HP and C/Sub work as it should.

Like i've mentioned earlier i have no audio front panel, only 2 headphones for testing, so your feedback could be useful, thanks

  • Like 1
Link to comment
Share on other sites

Added. Layout-id 4. Try it an report.

attachicon.gifAppleALC_ALC3241.kext.zip

This is what I did:

 

- added your AppleALC.kext to Clover/Kexts/10.11/

- using OSX 10.11.5 original S/L/E/AppleHDA.kext

- tried layout ids "4" and "3" on Clover/config.plist

 

Layout ID 4: gives no ports

 

Layout ID 3: gives a chinese (I guess) inputs/outputs but with no working microphone (as before)

(this is the working layout for the patched version of AppleHDA.kext)

 

MacPeet also sent me his original working version (tested with layout-id 3), attached.

Named as ...ALC290 HP Envy 15t/k, guess it's have the same patches the one I've been using.

AppleHDA_ALC290_HP_ENVY_15t_k000.zip

Link to comment
Share on other sites

This is what I did:

 

- added your AppleALC.kext to Clover/Kexts/10.11/

- using OSX 10.11.5 original S/L/E/AppleHDA.kext

- tried layout ids "4" and "3" on Clover/config.plist

 

Layout ID 4: gives no ports

 

Layout ID 3: gives a chinese (I guess) inputs/outputs but with no working microphone (as before)

(this is the working layout for the patched version of AppleHDA.kext)

 

MacPeet also sent me his original working version (tested with layout-id 3), attached.

Named as ...ALC290 HP Envy 15t/k, guess it's have the same patches the one I've been using.

 

Here it is another version. Layout-id 4.

AppleALC_ALC3241.kext.zip

 

Resources in AppleHDA you attached are similar to resources i used in previous AppleALC version...

  • Like 1
Link to comment
Share on other sites

For some odd reason in 10.11.5 when I updated to version 1.0.10, the language of the presets in System Preference/Sound read out in Hebrew. There is no problem with functionality and I can attest that it's happening for layout id 1 for Realtek ALC898 and layout id 11 for Realtek ALC887. Is anyone else having this similar issue? It's not much of an annoyance since it's just cosmetic but still if there happens to be some fix, I would like to know a/b it. Thanks.

Edited by Frank Nitty
Link to comment
Share on other sites

For some odd reason in 10.11.5 when I updated to version 1.0.10, the language of the presets in System Preference/Sound read out in Hebrew. There is no problem with functionality and I can attest that it's happening for layout id 1 for Realtek ALC898 and layout id 11 for Realtek ALC887. Is anyone else having this similar issue? It's not much of an annoyance since it's just cosmetic but still if there happens to be some fix, I would like to know a/b it. Thanks.

 

http://www.insanelymac.com/forum/topic/311293-applealc-—-dynamic-applehda-patching/?p=2238720

Link to comment
Share on other sites

Thanks for comment work only Layout0 I upload wrong file now you can get 0-12

Finally CA0132 worked Everything  to Rebuild.

Mainly volume adjuster worked now.

I upload  files to Resources.

Please update Resources

Layout ID-0-12

Thank you for AppleALC Team.

Thank you, guys

0-12 new.zip

Debug.zip

Link to comment
Share on other sites

For some odd reason in 10.11.5 when I updated to version 1.0.10, the language of the presets in System Preference/Sound read out in Hebrew. There is no problem with functionality and I can attest that it's happening for layout id 1 for Realtek ALC898 and layout id 11 for Realtek ALC887. Is anyone else having this similar issue? It's not much of an annoyance since it's just cosmetic but still if there happens to be some fix, I would like to know a/b it. Thanks.

This happens to English.lproj missing in AppleHDA Resource folder , similar happens with me in Yosemite , just add or rename existing to it , or Ultimate way re-install Vanilla AppleHDA as @vandroiy2012 mentioned in Post #510 

 

Good luck :) Enjoy 

  • Like 2
Link to comment
Share on other sites

So this basically replaces Pier-Alpha and Toleda's script-based patches, right? Sure, it doesn't touch anything in S/L/E, but it would be golden to have a drop-in kext.

Correct, you can just inject AppleALC & your layout ID, the kext will handle all patching/etc.

  • Like 1
Link to comment
Share on other sites

it would be golden to have a drop-in kext.

 

That's pretty much what we have here now. The same stock kext compiled from source is driving ALC892, ALC898 and ALC269VC in the three machines in my sig. All from the EFI partition and with the vanilla AppleHDA untouched so I don't need to disable SIP or enable kext-dev-mode anymore.

  • Like 1
Link to comment
Share on other sites

Can you guys add this to the AppleALC repo?

 

ALC3236 Realtek ALC233(10ec:0233) Rev.(00100003)

  • Asus F554L - X555LAB Motherboard
  • Codec name = ALC3236
    (AppleHDA)	Realtek ALC3236 (10ec:0233) Rev.(00100003)
    		Controller 8086:9ca0 (sub-ven:1043:19ad)
  • Layout used = 3
  • CodecCommander is needed for the Headphones
  • Tested until OS X 10.11.6 (15G7a)
  • aDummy: aDummyHDA.kext.ALC3236.zip
  • binpatch (Same as ALC233):

    			<dict>
    				<key>Find</key>
    				<data>YQLsEA==</data>
    				<key>Name</key>
    				<string>AppleHDA</string>
    				<key>Replace</key>
    				<data>AAAAAA==</data>
    			</dict>
    			<dict>
    
    				<key>Find</key>
    				<data>YgLsEA==</data>
    				<key>Name</key>
    				<string>AppleHDA</string>
    				<key>Replace</key>
    				<data>AAAAAA==</data>
    			</dict>
    			<dict>
    				<key>Find</key>
    				<data>hQjsEA==</data>
    				<key>Name</key>
    				<string>AppleHDA</string>
    				<key>Replace</key>
    				<data>AAAAAA==</data>
    			</dict>
    			<dict>
    				<key>Find</key>
    				<data>gxnUEQ==</data>
    				<key>Name</key>
    				<string>AppleHDA</string>
    				<key>Replace</key>
    				<data>AAAAAA==</data>
    			</dict>
    			<dict>
    				<key>Find</key>
    				<data>hBnUEQ==</data>
    				<key>Name</key>
    				<string>AppleHDA</string>
    				<key>Replace</key>
    				<data>MwLsEA==</data>
    			</dict>
All credits goes to Mirone and Micky1979.

 

 

 

ErmaC

  • Like 1
Link to comment
Share on other sites

That's pretty much what we have here now. The same stock kext compiled from source is driving ALC892, ALC898 and ALC269VC in the three machines in my sig. All from the EFI partition and with the vanilla AppleHDA untouched so I don't need to disable SIP or enable kext-dev-mode anymore.

How can I revert from the script I used then, so I'll be able to test AppleALC?

Link to comment
Share on other sites

Do you guys have a patch for the Realtek ALC 256 in AppleALC yet ? Its for the Dell Inspiron 7559, a Skylake laptop

If no I will be posting my files here


remove all the patched HDA kexts leaving only vanilla AppleHDA

True, patched AppleHDA's pin config can interfere with AppleALC

  • Like 1
Link to comment
Share on other sites

how i patched through this Dynamic AppleHDA patching my codec Id: CX20590.

because i used a patched AppleHDA but my internal mic Not working so i tried this Dynamic AppleHDA patching 

 

 

i patched my DSDT.aml for Audio-ID: 3

 

i have to do only put AppleALC.kext in EFI/Clover/kext/10.11 

 

anything else i have to do.

 

i added my Files too(patched DSDT,Config.plist,IOREG)

Files.zip

Link to comment
Share on other sites

Layout 6 is the golden Layout for me !

 

Here is a summary ( Not talking about Layout  0 1 2 3 and 5 - Partially working )

 

Layout Id 4 :

Main Out : OK

Back Headphone : OK

Back Headphone Switching/detection : OK

Rear Out : OK

C/Sub : OK

Front HeadPhone :  Not Working

Mic : Ok

Digital out : Still don't know ( I cant' test it )

 

Layout Id 6 :

Main Out : OK

Back Headphone : OK

Back Headphone Switching/detection : OK

Rear Out : OK

C/Sub : Not working (as expected )

Front HeadPhone :  Ok

Mic : Ok

Digital out : Still don't know ( I cant' test it )

 

 

Thanks wern !!!  waiting to know more about CC..

 

 

No it's time to test @CA0132 owners ;)

 

For the laziest here is the 2 files needed :

- AppleALC.kext  --> /EFI/CLOVER/kext/10.x/

- CodeCommander.kext --> /S/L/E/*

- Layout 6 ( and 4 for C/SUB )

 

 

And..Report please !

hi yassinex

     i have one Mic-In, one built-in speaker, one headphone jack, one microphone jack and one HDMI. 

layout id 4

Main out: work,

Built-in speaker:work,

Mic-In: no,

Headphone: no,

Headphone Switching/detection: no

 

layout id 5

Main out: work,

Built-in speaker:work,

Mic-In: work,

Headphone: no,

Headphone Switching/detection: no

 

layout id 6

Main out: work,

Built-in speaker:work,

Mic-In: no,

Headphone: no,

Headphone Switching/detection: no

 

BTW, i had to restart from windows, or Built-in speaker will not work too.

(sorry for my bad english)

Link to comment
Share on other sites

×
×
  • Create New...