Jump to content

AppleALC — dynamic AppleHDA patching


vit9696
5,390 posts in this topic

Recommended Posts

thank you very much for your willingness

 

the sound always works after the second reboot, system does not see any devices at first startup. I attach IOREG from the second start, when the internal speaker works

 

I also include a screenshot from windows where the microphone is displayed as an array of microphones.

 

1.) Internal speaker works (on second restart)

2.) I can't test the headphones right now, I don't have any at hand. I'll test it tomorrow

3.) I only have one headphone jack with support for microphone, i test it also tomorrow

 

thank you in advance for further advice

 

 

ioreg-2.ioreg

Screenshot 2019-07-31 at 13.34.26.png

intel-smart-sound-2.PNG

intel-smart-sound-1.PNG

audio-input-windows.PNG

Edited by mat100
Link to comment
Share on other sites

3 hours ago, mat100 said:

thank you very much for your willingness

 

the sound always works after the second reboot, system does not see any devices at first startup. I attach IOREG from the second start, when the internal speaker works

 

I also include a screenshot from windows where the microphone is displayed as an array of microphones.

 

1.) Internal speaker works (on second restart)

2.) I can't test the headphones right now, I don't have any at hand. I'll test it tomorrow

3.) I only have one headphone jack with support for microphone, i test it also tomorrow

 

thank you in advance for further advice

 

 

ioreg-2.ioreg

Screenshot 2019-07-31 at 13.34.26.png

intel-smart-sound-2.PNG

intel-smart-sound-1.PNG

audio-input-windows.PNG

 

 

IOREG Screenshot show audio is not working, maybe you uploaded wrong IOREG output. Check it again
image.png.c637bf4c5cea8ff07170ea415bfeef4a.png

Link to comment
Share on other sites

On 7/19/2019 at 3:39 PM, lordrafa said:

Hello,

 

I am trying to configure the AppleALC kext in my system but each time that I set a layout the system stalls.

 

As you can see the hackintool doesn't list my card and on the IORegistry Dump I cannot see the codec model.

 

My computers is an Asus G750JY and I think that it has a ALC282 codec. I am using Mojave as OS. The kext VoodooHDA work fine but the audio is really low.

 

Please let me know if you require another info to help me to find the problem

 

Many thanks

Captura de pantalla 2019-07-19 a las 6.23.27.png

Captura de pantalla 2019-07-19 a las 6.18.45.png

config_foro.plist

kext_list.txt

Hello Anyone can help me with this?¿?¿? I have been several day trying to make this work but I didn't find the way :wallbash:

Link to comment
Share on other sites

8 hours ago, Andres ZeroCross said:

 

 

IOREG Screenshot show audio is not working, maybe you uploaded wrong IOREG output. Check it again
image.png.c637bf4c5cea8ff07170ea415bfeef4a.png

Hi,

 

I'm so sorry, there was a real upload error, below new IOREG with internal speaker and a second with a headphone.

 

1.) Internal speaker work

2.) Headphones work (volume control or microphone not working)

3.) Internal microphone not working

 

IOREGs.7z

Link to comment
Share on other sites

Hello master Andres ZeroCross, All,

 

 Thank you very much master Andres ZeroCross !!!

 

 I solve my problem with AppleALC, with the install of "VoodooHDA.2.9.2.Clover-V14 :thumbsup_anim: 

 Thank you master chris1111 !!!

 

 The sound is working on Yosemite 10.10.0  :thumbsup_anim: 

 

 My update to 10.10.3 and 10.10.5 have failed, but I have update my Yosemite 10.10.0 to Sierra 10.12.3 and yesterday to Sierra 10.12.6  :thumbsup_anim:  !!!

The update to 10.12.3 come from "https://www.hackintoshzone.com/:thumbsup_anim: 

 

 The Audio is working in stereo only connector Green (I'm testing some solution to have the 5.1)

 

 The last version of NVidia web driver for Sierra 10.12.6 detect and use my 3 screens 20" Dell :thumbsup_anim:

 

 My board Raid 5 LSI 3ware 9650SE is working :thumbsup_anim:

 

 The USB 2.0 and 3.0 are working :thumbsup_anim:  

 

 I'am very happy !!!

 

 Perhaps I will try the update to High Sierra from  "https://www.hackintoshzone.com/:wink_anim:

 Thank you master Niresh !!!

 

Best regards,

Renaud

Link to comment
Share on other sites

On 8/1/2019 at 4:00 PM, mat100 said:

Hi,

 

I'm so sorry, there was a real upload error, below new IOREG with internal speaker and a second with a headphone.

 

1.) Internal speaker work

2.) Headphones work (volume control or microphone not working)

3.) Internal microphone not working

 

IOREGs.7z



I don't ask about internal microphone,, my question above is about Internal Speaker, Headphone and External mic.

Did your notebook use combol jack or separate jack for External Mic and Headphone???

What do you mean by Volume Control not working? Where? There is no volume control or something else? WRite it in detail

Link to comment
Share on other sites

1 hour ago, Andres ZeroCross said:



I don't ask about internal microphone,, my question above is about Internal Speaker, Headphone and External mic.

Did your notebook use combol jack or separate jack for External Mic and Headphone???

What do you mean by Volume Control not working? Where? There is no volume control or something else? WRite it in detail

 

I'm sorry, my laptop uses combol jack for External Mic and Headphone. I tried it with apple headphones from iphone which have volume control buttons. Sound from headphones works, microphone does not.

Link to comment
Share on other sites

  • 2 weeks later...

@vit9696 Is it possible AppleALC add new feature like CodecCommander.kext??? Some codec need SET_COEF_INDEX and SET_PROC_COEF, and to set this we need CodecCommander.kext in L/E and set custom command from DSDT/SSDT or edit plist of CodecCommander.kext

New Asus Laptop with ALC294 need COEF_INDEX and PROC_COEF to activate internal speaker. It will be great if AppleALC.kext can merge CodecCommander.kext feature to AppleALC.kext.

Link to comment
Share on other sites

On 8/13/2019 at 2:10 PM, Andres ZeroCross said:

@vit9696 Is it possible AppleALC add new feature like CodecCommander.kext??? Some codec need SET_COEF_INDEX and SET_PROC_COEF, and to set this we need CodecCommander.kext in L/E and set custom command from DSDT/SSDT or edit plist of CodecCommander.kext

New Asus Laptop with ALC294 need COEF_INDEX and PROC_COEF to activate internal speaker. It will be great if AppleALC.kext can merge CodecCommander.kext feature to AppleALC.kext.

I want to know this too. I have been working with @insanelyDeepak in seeing of a way to incorporate COEF values to make Line In to work on external headset when plugged into the combo jack, but haven't found a way yet. Yes there is the combo jack application, but preferably if things can be integrated without having to use another application, it will help in future updates if combo jack stops being maintained and will be more cleaner. Here is my laptops Realtek ALC256 codec_dump in case anything helps. If people need what values the ALC256 uses for the COEF, the Combojack source has it, same with the Linux source of the Realtek Tables. I know codecs without needing CodecCommander can do this so it should be possible, I just am not any good in coding to figure it out.

codec_dump.txt

Edited by Andrw0380
Link to comment
Share on other sites

Dell Inspiron 5370, ALC3254 (aka ALC295). Layout id 13,15,28,77 working. Unfortunately the combojack is not working as expected. I can't hear anything or I hear the sound like as distorted. Is there any fix? I've tried to use CodecCommander + hda-verb but if I don't use "hda-verb 0x19 0x707 0x20" I can't fix the combojack. Can it be fixed?

Link to comment
Share on other sites

Hello there!

 

I seem to be unable to get my ALC256 to work reliably under OSX 10.14.6
My laptop is a 2018 Huawei MateBook D 15.6" (I know there was a fix before, but layout ID 22 doesn't do anything for me, sound breaks completely.)

It seems like layout-id 13 works best on my machine, even though pretty much all of them work, except 56 and 57.

 

The issue i keep having is:
After sleep, if i had sound on, it resumes playing until i stop it. And no sound after i stop that. Sound just completely breaks after sleep. Tried with codeccommander to set the powerstates or read them, always just get 0xfffffffff back.
Also already tried the ALC256 SSDT, sadly doesnt help either. I cant get sound to work after sleep.

 

Any idea?
Ill attach the IOReg and a Codec dump.

 

Thanks in advance.

codec.dmp

Nevonesss MacBook Pro.ioreg

Link to comment
Share on other sites

Hi, when I insert the jack after having started the sound from the speakers you can hear them well in the headphones but when I remove the jack you can hear the crackling sound from the speakers, even though I have changed the audio layout.

My codec audio is ALC294

I try to install the kext codeccommander in L/E and hda-verb in usr/bin and i try in terminal this procedure

hda-verb 0x12 0x707 0x00
hda-verb 0x13 0x707 0x00
hda-verb 0x14 0x707 0x00
hda-verb 0x15 0x707 0x00
hda-verb 0x16 0x707 0x00
hda-verb 0x17 0x707 0x00
hda-verb 0x18 0x707 0x00
hda-verb 0x19 0x707 0x20
hda-verb 0x1A 0x707 0x00
hda-verb 0x1B 0x707 0x20
hda-verb 0x1D 0x707 0x20
hda-verb 0x1E 0x707 0x40
hda-verb 0x1F 0x707 0x20
hda-verb 0x21 0x707 0x00

I put the earphones back on every command I put in the terminal to see if it was grainy in the speakers but I didn't solve it

 

please see my codec dump and tell me what are the hda-verb commands to launch

misc.zip

EFI.zip

Edited by Emanuele-1998
Link to comment
Share on other sites

Hi, I've got a lenovo yoga c930 which uses alc298.  The sound is all tinny and crappy.  I've tried all the layout-id's with no improvement.  Under linux it was the same.  Using hda_analyzer.py I was able to get it working by doing this:

 

 hda-verb 0x14 SET_CONNECT_SEL 0x0c <-- I've tried this from within osx via codec commander and it doesn't help.. guessing I need the amp turned on and the gain turned up maybe but I tried that as well with no success

hda-verb 0x02 SET_AMP_GAIN_MUTE 0x907f

hda-verb 0x02 SET_AMP_GAIN_MUTE 0xa07f

 

I've tried all the different ALC298 layout id's without success with AppleALC 1.4.0

 

Here's my ioreg dump:

 

https://www.dropbox.com/s/e58f8xku2kjbu6b/ioreg.ioreg?dl=0

 

And I've attached my codec dump from within linux.

 

codec

Edited by elvisior
making sure the codec is the right file
Link to comment
Share on other sites

Hi Guys,

 

I recently read @InsanelyDeepak's guide on patching the combo jack on laptops ...

 

https://osxlatitude.com/forums/topic/11316-how-to-fix-static-noisedistortioncrackling-sound-and-combo-jack-on-laptops/

 

Its a great guide and one of the best I've seen so far on the topic.

Towards the end of the guide he states the hollowing :-
 

Quote

latest version of AppleALC has feature to send command to codecs like CodecCommander , you can modify AppleALC info.plist to stop using CodecCommander

 

 

I've looked at the AppleALC documentation and can find no mention of this feature and can't find any examples of it on-line.

In his guide he gives the following as an example of a custom command (using hda-verb terminal command or via codec-commander)

 

hda-verb 0x1a SET_PIN_WIDGET_CONTROL 0x20

 

How would one do this via AppleALC ?

 

I did ask the same question on that forum/thread but no answer so far ....

 

Cheers

Jay

Edited by jaymonkey
Link to comment
Share on other sites

  • 2 weeks later...

Hi Guys! I have a problem in my audio.

Let me explain what happens before my audio broken.

My configuration:

Asus 370-e

I8400 ( audio codec alc1220a )

Vega 64 - Sapphire model

Wifi/Bluetooth PCI Card ( apple compatible BCM43602 )

 

1 - My bluetooth keyboard starts to behaviour strange with one key pair... when I press "Command + V", my "Command + 0" also are active.

In this time I have Mojave 10.14.6 running normal, with audio layout-id=7 ( Lilu and AppleALC )...

 

2 - When I came back from restart, everything is broken... I get the forbidden icon and unable to get into my mac os.

 

3 - I go to my second EFI boot driver, log into my macos and my bluetooth appears like "bluetooth: not available".

My first monitor is gone ( but is because this clover version is more simple )... [but my sound still working here in this point]

In this first case, I started to correct and update my kexts in my working drive, and I'm get able to log again in my mac os from my working EFI.

I have to use a new kext to get my second monitor working ( Black Screen Patch Vega 56/64...), update my whatevergreen, Lilu, FakeSMC, CodecCommander, etc...

 

4 - After this, booting and my monitors are ok... but I don't get my bluetooth working and my motherboard sound ( Just from my HDMI in monitors ).

 

5 - After trying a lot about the bluetooth ( deleting data from my Nvram, kexts file and whatever I found on internet... ), I started to think thats about my USB internal port and using some apps from internet, try to configure my usb ports in the best way [Hackintool]... Nothing happens... same error

At this point my bluetooth always appears into my USB devices, but "bluetooth: not available" remains

So I open my computer, unplug the bluetooth, plug in another usb internal and my bluetooth came back to live!!

After this I change the ports back, and still working, but audio doesn't

 

6 - Start to read more about the audio section. Try different layouts, put my old [Lilu, AppleALC] back and nothing.

At this point my audio device is gone from my Audio section in [Hackintool] app... and I install the [Apple HDA Patcher].

Looks Like the HDA Patcher inject my audio configuration, because I have my Realtek ALCS1220A back into the audio section, but any layout working until now.

I Try 1,2,3,5,7,11,20,21 and nothing appears into my sound outputs.

 

I started into Hackintosh world in the last year, and don't understanding too much of this area. I don't build the SSDTs because my hackintosh seems to working ok. I'm just change my last 1060 video card for a vega64 to be able to use Mojave.

 

I send pci list, audio section, installed kexts from [Hackintool].

My Clover Acpi and Kernel and Kext Patches screen.

 

 

 

Screen Shot 2019-09-17 at 18.12.51.png

Screen Shot 2019-09-17 at 18.14.07.png

Screen Shot 2019-09-17 at 18.16.30.png

Screen Shot 2019-09-17 at 18.17.28.png

Screen Shot 2019-09-17 at 18.20.42.png

Screen Shot 2019-09-17 at 18.22.47.png

Link to comment
Share on other sites

guys I've a problem to make audio work in my laptop:

 

laptop is a Toshiba Satellite L50- A161 (3rd gen intel i7 core, 7 series chip)

codec is: IDT92HD99BXX

layout I'm using is 3 (the only one for this codec)

 

I tried to inject layout 3 in the config.plist, apply patch to DSDT (rename HAZAL to HDEF) e install appleALC in /library/extension

kext are loaded but I don't have audio. on the app Hackintool, in the audio tab I don't have any device.

 

Here my config.plist and my codec dump from last version of clover.

 

thank you

config.plist

HdaCodec#0 (IDT 92HD99BXX).txt

Link to comment
Share on other sites

Alc custom compiled thanks to another user has worked fine up until Catalina beta 8 . It no longer works. I tried main alc release with no success either. Is this a known issue with alc or is Catalina breaking audio elsewhere with all codecs?

Sent from my Pixel 3 using Tapatalk

Link to comment
Share on other sites

Just now, devillived666 said:

Alc custom compiled thanks to another user has worked fine up until Catalina beta 8 . It no longer works. I tried main alc release with no success either. Is this a known issue with alc or is Catalina breaking audio elsewhere with all codecs?

Sent from my Pixel 3 using Tapatalk
 


Listen to me, if you want to know about your issue,. Then you must upload resource of your custom AppleALC.kext for your Audio. Your report about work or not in Catalina DP 8 doesn't make sense. My Audio is working fine here. Without detail of your resource (Platform.xml, Layout.xml, binary patching in info,plist and PinConfig data) then it's same like make new resource for certain codec

  • Like 1
Link to comment
Share on other sites


Listen to me, if you want to know about your issue,. Then you must upload resource of your custom AppleALC.kext for your Audio. Your report about work or not in Catalina DP 8 doesn't make sense. My Audio is working fine here. Without detail of your resource (Platform.xml, Layout.xml, binary patching in info,plist and PinConfig data) then it's same like make new resource for certain codec
You're correct. I don't have those resources because I didn't compile alc . However audio has come back in beta 9! Thanks in any case , sir!

Sent from my Pixel 3 using Tapatalk

Link to comment
Share on other sites

  • 2 weeks later...

Hi All,

 

I'm on a Dell XPS 13 9370 running mojave 10.14.6. Using latest AppleALC 2.9.2 and latest lilu, with layout id 22 (passed as kernel param), it detects all outputs and even detects headphones plugged. Microphone seems to work, but no audio is coming out of the speakers. With VoodooHDA, in the past this worked, but now not anymore (does not detect the device), so switched to AppleALC, but no luck. 

 

Attached codec dump from linux and logs.

 

Please tell me what other info you need.

 

kind regards!

audiocodec2.txt

audiocodec0.txt

audiologs.txt

Edited by josleueven
added os info
Link to comment
Share on other sites

Hello, I need your help.

I tried hackintosh in XPS 15 9575.

When I use AppleALC.kexts, layout-id as 21, 22 according to https://github.com/acidanthera/AppleALC/wiki/Supported-codecs .

Quote

Realtek    ALC299    0x100002 layout 21, 22    13 (10.9)    —

In preference,

Only internal speaker in output and mic in input are show,

3.5 pie output/input is not show,

internal speaker does not work,

internal mic seem to work(when i speak level change),

when plug earphone, only some noice is i can hear,

for both layout-id 21, 22.

 

Quote

1. Laptop model/Motherboard model
2. Codec name
3. Layout used with the info what works for you (ideally if you try them all)
4. OS X versions you tried
5. Autogenerated Info.plist made with the help of this utility.

 

1. DELL XPS 15 9575. Option: i7-8705G, 4K Display

2. ALC299 (0x10ec0299) edited: but in spec sheet, ALC3271-CG https://topics-cdn.dell.com/pdf/xps-15-9575-2-in-1-laptop_specifications_en-us.pdf

3. Tried both 21, 22

4. 10.14.6

5. Attached generated by RunMe.app

 

Thank you

Send me NakWonui-MacBookPro.zip

Edited by dmc31a42
Link to comment
Share on other sites

On 10/12/2019 at 4:47 PM, dmc31a42 said:

Hello, I need your help.

I tried hackintosh in XPS 15 9575.

When I use AppleALC.kexts, layout-id as 21, 22 according to https://github.com/acidanthera/AppleALC/wiki/Supported-codecs .

In preference,

Only internal speaker in output and mic in input are show,

3.5 pie output/input is not show,

internal speaker does not work,

internal mic seem to work(when i speak level change),

when plug earphone, only some noice is i can hear,

for both layout-id 21, 22.

 

 

1. DELL XPS 15 9575. Option: i7-8705G, 4K Display

2. ALC299 (0x10ec0299) edited: but in spec sheet, ALC3271-CG https://topics-cdn.dell.com/pdf/xps-15-9575-2-in-1-laptop_specifications_en-us.pdf

3. Tried both 21, 22

4. 10.14.6

5. Attached generated by RunMe.app

 

Thank you

Send me NakWonui-MacBookPro.zip


You need to install CodecCommander.kext to Library/Extensions (not System/Library/Extensions), then rebuild kextcache. Reboot and your audio should work. Just use layout id 22

On 10/8/2019 at 4:36 PM, josleueven said:

Hi All,

 

I'm on a Dell XPS 13 9370 running mojave 10.14.6. Using latest AppleALC 2.9.2 and latest lilu, with layout id 22 (passed as kernel param), it detects all outputs and even detects headphones plugged. Microphone seems to work, but no audio is coming out of the speakers. With VoodooHDA, in the past this worked, but now not anymore (does not detect the device), so switched to AppleALC, but no luck. 

 

Attached codec dump from linux and logs.

 

Please tell me what other info you need.

 

kind regards!

audiocodec2.txt

audiocodec0.txt

audiologs.txt


Install CodecCommander.kext to Library/Extensions (not System/Library/Extensions) and rebuild kextcache. use LayoutID = 22. Reboot and your audio should work

  • Like 2
Link to comment
Share on other sites

×
×
  • Create New...