Jump to content
About Just Joined group Read more... ×
vit9696

AppleALC — dynamic AppleHDA patching

5,139 posts in this topic

Recommended Posts

1 hour ago, MacPeet said:

@huytbt

 

Z600 / Z800 with AppleALC ID28 also always needed the CodecCommander.kext.
try this!

 

Oh, It's ok for now.

Thank @MacPeet very much.

Share this post


Link to post
Share on other sites
Advertisement
Posted (edited)

Hi,
ThinkPad X1 Yoga 2nd Laptop.

MacOS Catalina

Audio Codec: CONEXANT
CX 11771-11Z

the sound card does not work.

I checked:
- VoodooHDA.kext
- AppleALC.kext

Any chance to run audio on this codec?

If so, can you help?

798335020_Zrzutekranu2020-08-26o13_32_43.thumb.png.17c1a32e93f018a73464dd4a99d47c18.png

Edited by KoVol_

Share this post


Link to post
Share on other sites
Posted (edited)

Hello,

 

I got a Lenovo ThinkCentre m90n recently.

I tested both Catalina and Big Sur.

The audio codec is very weird:

In Windows and Linux the name is ALC233. However in Mac its ALC235 due to its real device ID: 10EC:0235. Maybe Lenovo did some dirty hack in the firmware.

I have tested all layout ids for ALC 235. Layout 11 is kinda working. The problem is the headphone and the speaker can not exist at the same time.

If I boot without 3.5mm plugged in, the system can only see the speaker, and the headphone can not be recognized.

If I boot with 3.5mm plugged in, the system can only see the headphone, even if I unplug the headphone.

I've also tried to compile AppleALC myself with the exact pinconfig but still no luck.

Also, audio via DP is not available although I followed the tutorial (HDEF, onboard-1)

This is way beyond my knowledge, and no more resources available online.

EDIT: I checked in linux and the audio device is switching. If I plug in the headphone, the speaker disappears, vice versa.

 

Thanks.

 

Edited by xuegy

Share this post


Link to post
Share on other sites
Posted (edited)

Hi Devs. 

Simply ALC292 " Dell Laptops" are known with an issue with noise static when using the headset ... the fix for this issue was to copy a small fix to usr/bin beside codeccommander.kext in L/E   .. Everything was fine with Mojave and Catalina with this fix  ...

Now how to solve this issue with Big Sur ?  As its filesystem locked and L/E cause KP with Codecommander.kext 

 

Please can someone tell me how to fix that ?

Thank you 

Edited by LIMITANT

Share this post


Link to post
Share on other sites

Hi! my laptop has a Alc256, but i tried all of the layout id, tried to add another one, but everytime i have no sound output (but the devices are present) I tried CodecCommander, but it doesn't helped me.

Can you help me?

Share this post


Link to post
Share on other sites

I use this method on my Acer S3-391-6046 and it works nicely in Catalina.

However, I think that I have a resource conflict that I don't know how to solve, and I hope you can help me.

Ever since I installed these kexts, the wifi card started misbehaving randomly. I noticed the problem from the very moment I installed these kexts, because the wifi connection went off.

What I did was, I finished configuring the audio, and then reinstalled the wifi card's kexts. It is an Atheros 9462, which contrary to what is read in several places, it works like a charm applying these kexts: ATH9KInjector and IO80211Family_ATH.

Most of the times both work pretty well on boot. However, when the wifi card stops working, there's no way of bringing it back on, other than rebooting and reinstalling its kexts, at which point it works again as expected.

I suspect a resource conflict. An IRQ conflict probably.

Would you please guide me in diagnosing the problem so I can fix it?

Regards

Share this post


Link to post
Share on other sites

Dear all,
I have a support request for my lenovo yoga slim 7,
It is using an intel i7 1065g and running big sur beta 7.

The last release of AppleALC added the codec 287 which is not working.
I had try to fix them without result.
Perhaps someone could help to fix them? 

Attached my codecdump from linux and my currently ioreg file,

 

How described on last release I tried layout 11 under device properties in oc.

best Regards, Dan

alc.txtl enovoslim7.zip

 

 

Spoiler

slim7.thumb.jpg.37fe8de88d54371df5e820a818d9fac1.jpg

 

Edited by thefiredragon

Share this post


Link to post
Share on other sites

Hi

 

I am trying to create a layout for a dell 7390 2 in 1. In linux it is showing as an ALC289, which has 2 layouts 11 and 23 already. Layout 11 looks like it is working so the volume goes up and down but there is no sound and the microphone shows levels so that looks like that is working. I have created a codec dump and a graphic diagram. I am a bit stuck looking at the diagram to figure out the flow as the only constant blue line through is the internal mic. Would someone be able to give me some pointers on how to figure out which path I should be using and how to create the xml path info file? Files are attached.

Thanks

ALC289_codec_dump_txt_converts.zip

Share this post


Link to post
Share on other sites

Or another question, how I could bring up a own resources folder, pin config I could generate with the pin configurator, is there an other documentation instead of the GitHub page?

 

My codec is already listet but not working, my default layout id is 7 instead of 3 perhaps this is the reason and I had read I would need to bring up an own codec.

 

nice to know would be which files I need to edit or create before I take a own build 

so we have on resources folder the info.plist platforms.plist and layout.plist also I now that values there are in base64 and need to be readable Converted to hex or decimal values .

 

I only do not now how to compare the right informations from my dump , 

codec is listed under 287 are correct pin list are wrong but it’s not loading correctly.

 

under hackintook I can also the that min and max kernel values are not set when apple alc is loading with layout is 11

 

thanks perhaps someone could help here to make this more clear to understand for me

 

best regards 

Dan

Share this post


Link to post
Share on other sites
On 9/18/2020 at 7:56 PM, Jestera1 said:

Hi

 

I am trying to create a layout for a dell 7390 2 in 1. In linux it is showing as an ALC289, which has 2 layouts 11 and 23 already. Layout 11 looks like it is working so the volume goes up and down but there is no sound and the microphone shows levels so that looks like that is working. I have created a codec dump and a graphic diagram. I am a bit stuck looking at the diagram to figure out the flow as the only constant blue line through is the internal mic. Would someone be able to give me some pointers on how to figure out which path I should be using and how to create the xml path info file? Files are attached.

Thanks

ALC289_codec_dump_txt_converts.zip

 

The XPS 15 9500 has almost the same ALC289 as yours (diff your codec dump with mine) but a little different to the Alienware m17 r2. The Alienware has an extra external interface (HDMI 2.0 port) which is missing on ours. I have a different problem with layout 11 - both mic and builtin speakers work, but there's a high CPU load on one of the cores. I suspect it's because it has an extra output that we don't support, which may also contribute to the problem you're facing.

 

I'm stuck at the part where we're supposed to correct the verb data. I can't work out which octet I'm supposed to zero out its lower nibble.

 

EDIT: The major differences are:

   
Node 0x12  

Pin Default 0xb7a60130: [Fixed] Mic at Oth Mobile-In

 

 

Node 0x1d

Pin Default 0x03211020: [Jack] HP Out at Ext Left

codec_dump0.txt

 

 

EDIT2: Tried headkaze/PinConfigurator. Attached verbs.txt. Need some help figuring out what I need to do next with the xml zlib compressed files.

verbs.txt

Edited by zachs78

Share this post


Link to post
Share on other sites

I have installed macOS Catalina (10.15.7) on a Dell XPS 13 9300 and I'm trying to get the audio working.

 

Hardware & Software configuration:

CPU: Intel Core i7-1065G7 (Ice Lake)

GPU: Intel Iris Plus Graphics

RAM: 32GB

Disk: Samsung 970 EVO Plus 2TB NVMe SSD

Bootloader: OpenCore 0.6.1

SystemProductName: MacBookAir9,1

 

The OS loads properly but the audio output from the internal speakers does not work.

 

I am using AppleALC. The codec is Realtek ALC289. There are two available layout ids in AppleALC and I have tried them both. I have better luck with layout id 11 (0B) as it appears to load and shows both the internal speakers and internal microphone.

 

The microphone registers sounds in Sound Preferences, but there is no output from the speakers at all. As a result, video does not play either. If I connect to an Airplay Display, then both audio and video work.

 

I have tried adding SSDT-HPET just in case there are any IRQ conflicts with the audio device, but it made no difference.

 

I have attached the codec info from Ubuntu so that maybe some kind soul can add this as a new layout id for ALC289 for Dell XPS 13 9300.

 

Dell XPS 13 9300 - codec0.txt

 

1893459230_ScreenShot-Microphone.png.ce4b4cb7a35de2c067956de924d3f54f.png1906184565_ScreenShot-Speakers.png.c0320f8924d4fc0a65fbd1655be4b493.png

 

Thanks in advance for any help you can provide.

Share this post


Link to post
Share on other sites

Prior to updating to 10.15.7, I was able to get clean audio out of all of my soundcard outputs. Now I get a cyclic type buzz which appears to follow onscreen activity (moving sliders, windows and mouse presses for example).

The issue lies somewhere from the macos software output to applications input as the signal shown on macos sound preferences is clean. Also, listening to software audio sources via the same outputs does not produce the same issue and sound is output correctly. I should point out that sound sources from the physical inputs can be heard as well as the buzz at the outputs.

Any ideas on how I could correct this issue? Is this likely to be a kext update issue?

I have tried adding HDAS to HDEF and injecting various Audio IDs for my motherboard to no avail. Any assistance would be greatly appreciated.

Edited by mdiamond

Share this post


Link to post
Share on other sites

HP Pavilion 15-AC190nia OpenCore Catalina 15.6
ALC282 (10ec:0282)
0x100003, layout 3, 4, 13, 22, 27, 28, 29, 41, 43, 51, 76, 86, 127 (tried them all, none work, attachments are with 3)

Did exactly as Dortania.github.io said but I can't find proper layout id to set in config.plist .
I tried setting alcid in bootargs to all of above but none work.


opencore boot log, efi folder, info.plist, debug log as instructed in GitHub alc page also attached.

EFI.zip

Info.plist

Log as in github.txt

opencore-2020-09-28-175000.txt

Screen Shot 2020-09-28 at 9.37.06 PM.png

Share this post


Link to post
Share on other sites

Hardware Configuartion

Dell 7390 

CPU: Intel Core I7-i7-1065G7

Opencore 0.6.1

OS: Catalina 10.15.7

 

Existing layout 11 seems to have audio working but no sound. I have created the codec graph and worked through the AppleALC tutorial for creating a custom layout, in my case Layout 99. I have adjusted the verbs using guidance from the tutorial and created a layout with a mixer for input and no mixer for output. Putting the verbs into PinConfig.kext and adding entries for the layouts I can only get as far as getting a hiss coming through on headphones. It registers the headphone port switch  when plugged in and creates a hiss but still no actual audio out from internal speakers or the headphones. I'm a bit stuck as to whether the issue is with my manually adjusted PinConfig.Kext or the platform.xml values for MuteInputAmp, PublishMute, PublishVolume and VolumeInputAmp. Node 0x1b is an an input and output amp so I'm not sure if that should be used for both or output only.

 

I have attached my working files in the hope someone can point me in the right direction. I would like to understand where I'm going wrong (or maybe right).

 

Thanks

ACL289-dell-7390-i7-1065G7.zip

Share this post


Link to post
Share on other sites

Guys, I'm compiling AppleALC from latest commit with Xcode 11.3, but never get release folder, I only get Debug, I'm doing something wrong or I forget something? Also, in the debug folder there's resourceconverter file, what is the use of it?

Share this post


Link to post
Share on other sites
On 10/7/2020 at 10:20 PM, ammoune78 said:

Guys, I'm compiling AppleALC from latest commit with Xcode 11.3, but never get release folder, I only get Debug, I'm doing something wrong or I forget something? Also, in the debug folder there's resourceconverter file, what is the use of it?

Download MacKernelSDK from https://github.com/acidanthera/MacKernelSDK and follow the instructions.

Just one thing rename the folder to MacKernelSDK. I compiled AppleALC 1.5.3 successfully.

I also put the folder named MacKernelSDK and Lilu.kext to the root of the AppleALC master folder.

 

Share this post


Link to post
Share on other sites
On 3/25/2019 at 5:18 AM, nqseo said:

Sorry, I don't understand that. Is that what you said?

Codec.txt

hi i have the same issue as this guy and the same codec output (except he has xps 9375 and i have 9380) alc299 layout id 22 everything is working(speakers and internal mic) but have noise when i insere combo jack i tried the fix from https://github.com/wdubaiyu/Hackintosh-Dell-XPS-9380 alc plug fix but it didnt working (sometimes i have to try different combination of sleep insert remove jack to get to work)  any solution for this 

xps9380EffectiveNode (2).txt

codec.0 (2).txt

catalina 10.15.5

Edited by zouhir111

Share this post


Link to post
Share on other sites
On 9/25/2020 at 11:08 PM, najeeb_anwer said:

I have installed macOS Catalina (10.15.7) on a Dell XPS 13 9300 and I'm trying to get the audio working.

 

Hardware & Software configuration:

CPU: Intel Core i7-1065G7 (Ice Lake)

GPU: Intel Iris Plus Graphics

RAM: 32GB

Disk: Samsung 970 EVO Plus 2TB NVMe SSD

Bootloader: OpenCore 0.6.2

SystemProductName: MacBookAir9,1

 

The OS loads properly but the audio output from the internal speakers does not work.

 

I am using AppleALC. The codec is Realtek ALC289. There are two available layout ids in AppleALC and I have tried them both. I have better luck with layout id 11 (0B) as it appears to load and shows both the internal speakers and internal microphone.

 

The microphone registers sounds in Sound Preferences, but there is no output from the speakers at all. As a result, video does not play either. If I connect to an Airplay Display, then both audio and video work.

 

I have tried adding SSDT-HPET just in case there are any IRQ conflicts with the audio device, but it made no difference.

 

I have attached the codec info from Ubuntu so that maybe some kind soul can add this as a new layout id for ALC289 for Dell XPS 13 9300.

 

Dell XPS 13 9300 - codec0.txt

 

Thanks in advance for any help you can provide.

 

I followed the instructions at: https://github.com/F0x1c/AppleALC_Instructions (I have attached a reformatted version of these instructions as a Word document).

 

These are the steps I followed:

1. Cloned AppleALC from the repository

2. Added Lilu.kext and MacKernelSDK to the downloaded AppleALC folder

3. Verified that building the kext with Xcode 12 works

4. Added my PinConfig information to Resources/PinConfig.kext/Contents/Info.plist (attached) Info.plist

5. Updated Resources/ALC289/Info.plist to add Layout id 12 and Platforms id 12 (see ALC289.zip)

6. Used the existing layout11.xml in Resources/ALC289 to create layout12.xml (see ALC289.zip)

7. Used the existing Platforms11.xml in Resources/ALC289 to create Platforms12.xml (see ALC289.zip)

8. Rebuilt AppleALC.kext and replaced the kext in EFI/OC/Kexts

9. Updated EFI/OC/config.plist to use layout-id 12

10. Rebooted

 

Still no audio from the speakers or headphones.

 

I have attached a Word document with my understanding of the changes required for the PinConfigs and layout/platforms (see AppleALC - Realtek ALC289.docx). I would appreciate any help/guidance on what to try next to get the audio working.

AppleALC Instructions.docx

ALC289.zip

AppleALC - Realtek ALC289.docx

Share this post


Link to post
Share on other sites
4 hours ago, najeeb_anwer said:

 

I followed the instructions at: https://github.com/F0x1c/AppleALC_Instructions (I have attached a reformatted version of these instructions as a Word document).

 

These are the steps I followed:

1. Cloned AppleALC from the repository

2. Added Lilu.kext and MacKernelSDK to the downloaded AppleALC folder

3. Verified that building the kext with Xcode 12 works

4. Added my PinConfig information to Resources/PinConfig.kext/Contents/Info.plist (attached) Info.plist

5. Updated Resources/ALC289/Info.plist to add Layout id 12 and Platforms id 12 (see ALC289.zip)

6. Used the existing layout11.xml in Resources/ALC289 to create layout12.xml (see ALC289.zip)

7. Used the existing Platforms11.xml in Resources/ALC289 to create Platforms12.xml (see ALC289.zip)

8. Rebuilt AppleALC.kext and replaced the kext in EFI/OC/Kexts

9. Updated EFI/OC/config.plist to use layout-id 12

10. Rebooted

 

Still no audio from the speakers or headphones.

 

I have attached a Word document with my understanding of the changes required for the PinConfigs and layout/platforms (see AppleALC - Realtek ALC289.docx). I would appreciate any help/guidance on what to try next to get the audio working.

AppleALC Instructions.docx

ALC289.zip

AppleALC - Realtek ALC289.docx

 

You can try merging this patch into your AppleALC source, and let me know if it helps.  I've been working with someone else with an Ice Lake laptop, and this resolved it for them as well.

cd AppleALC
wget https://github.com/fewtarius/AppleALC/commit/1dbba6491ea94eeef98b322254133d2f3e166f15.patch
patch -p1 <1dbba6491ea94eeef98b322254133d2f3e166f15.patch

Then build with Xcode like before.

Edited by fewtarius

Share this post


Link to post
Share on other sites
5 hours ago, fewtarius said:

You can try merging this patch into your AppleALC source, and let me know if it helps.  I've been working with someone else with an Ice Lake laptop, and this resolved it for them as well.

 

@fewtarius Thanks.

Strangely, AppleALC.kext with this patch causes the system to hang. I get both the internal and external display showing a blank, backlit screen and the wifi dongle activity light (which is my only indication that the system is still running) stops blinking. I turned on verbose boot, but unfortunately the hang occurs after the system is fully booted.

 

I restored my backup copy of AppleALC.kext and the system is running again.

I have attached the modified Controllers.plist; please let me know if I have made a mistake with the patch. I used the diff output to manually update the file, not the patch instructions you provided.

Controllers.plist

Share this post


Link to post
Share on other sites

  • Recently Browsing   1 member

Announcements

×