Jump to content

AppleALC — dynamic AppleHDA patching


vit9696
5,390 posts in this topic

Recommended Posts

2 minutes ago, Andres ZeroCross said:


Check detail for what's working or not of your audio port in/out

 

Working: 

Headphones (Green Front)

Microphone/Line In (Blue Rear)

 

Not Working:

Speaker (Analog)

Line-Out (Green Rear)

Microphone (Pink Front)

 

Link to comment
Share on other sites

20 minutes ago, yehia2amer said:

 

Working: 

Headphones (Green Front)

Microphone/Line In (Blue Rear)

 

Not Working:

Speaker (Analog)

Line-Out (Green Rear)

Microphone (Pink Front)

 


Don't test Analog Speaker interface,, never heard someone try to use it. So no reference at all.

Use this new applealc.kext, layoutID = 21. And post the result for each port audio except Analog ones

AppleALC.kext.zip

Link to comment
Share on other sites

7 minutes ago, najeeb_anwer said:

 

Audio still not working. Attached is the new IOREG output.

Still no alc-layout-id in IOREG/HDEF but layout-id is now 19.

Najeeb’s MacBook Pro layout-id 19.zip


My bad,, sorry.

Remove your old DSDT.aml at ACPI/Patched and replace with this

DSDT.aml

Link to comment
Share on other sites

14 minutes ago, Andres ZeroCross said:


Don't test Analog Speaker interface,, never heard someone try to use it. So no reference at all.

Use this new applealc.kext, layoutID = 21. And post the result for each port audio except Analog ones

AppleALC.kext.zip

 

Still the Same: 

 

Working: 

Headphones (Green Front)

Microphone/Line In (Blue Rear)

 

Not Working:

Line-Out (Green Rear). ----> Strange it is not working as it used to work on Layout ID 13

Microphone (Pink Front)

btw: Regarding the Speaker, I am not sure it is analog or not. maybe I am wrong !

ALC3220 LayoutID 21 test 2.ioreg.zip

Link to comment
Share on other sites

6 minutes ago, yehia2amer said:

 

Still the Same: 

 

Working: 

Headphones (Green Front)

Microphone/Line In (Blue Rear)

 

Not Working:

Line-Out (Green Rear). ----> Strange it is not working as it used to work on Layout ID 13

Microphone (Pink Front)

btw: Regarding the Speaker, I am not sure it is analog or not. maybe I am wrong !

ALC3220 LayoutID 21 test 2.ioreg.zip


Don't think patch AppleHDA is easy, i need to try for each NODE ID of the OUPUT.
Below is your diagram of Codec Audio,, I try 0x17 and 0x18 before.
image.thumb.png.9b216e4cf53a67f1b13c3b7a54924eba.png

Now, i try to use Node 0x1B as your Green Jack rear as Output Speaker

Try to use this...

AppleALC.kext.zip

Link to comment
Share on other sites

14 minutes ago, Andres ZeroCross said:


My bad,, sorry.

Remove your old DSDT.aml at ACPI/Patched and replace with this

DSDT.aml

 

That works! Thanks. I have some questions:

 

1) What changes were made in the CLOVER folder. I know that you updated the DSDT.aml and changed the config.plist to remove Devices/Audio/Inject. Anything else?

 

2) If I understand correctly, you are injecting alc-layout-id in HDEF using DSDT.aml. Any reason why this was not working with the CLOVER injection or by using alcid=19 as a boot argument?

 

3) Is there a way to get the HDMI audio working? The HDMI audio does not show up as an output device.

 

Thanks for your help.

Link to comment
Share on other sites

Just now, najeeb_anwer said:

 

That works! Thanks. I have some questions:

 

1) What changes were made in the CLOVER folder. I know that you updated the DSDT.aml and changed the config.plist to remove Devices/Audio/Inject. Anything else?

 

2) If I understand correctly, you are injecting alc-layout-id in HDEF using DSDT.aml. Any reason why this was not working with the CLOVER injection or by using alcid=19 as a boot argument?

 

3) Is there a way to get the HDMI audio working? The HDMI audio does not show up as an output device.

 

Thanks for your help.


1. If you use _DSM method in DSDT then config.plist won't overide it except patch _DSM to XDSM first to override _DSM method of DSDT.

But i made simple solutions,, i set _DSM of HDEF in your DSDT. No need to inject properties of HDEF in config.plist again (config.plist won't override it)

2. I prefer DSDT / SSDT ways then config.plist / boot argument

3. HDMI eGPU need to set HDAU device in PEG0 (Depend your Graphics Cards)

  • Like 1
Link to comment
Share on other sites

9 minutes ago, Andres ZeroCross said:


Don't think patch AppleHDA is easy, i need to try for each NODE ID of the OUPUT.
Below is your diagram of Codec Audio,, I try 0x17 and 0x18 before.
image.thumb.png.9b216e4cf53a67f1b13c3b7a54924eba.png

Now, i try to use Node 0x1B as your Green Jack rear as Output Speaker

Try to use this...

AppleALC.kext.zip


Still the Same.

I know, I am a programmer and I don't even know how can you do that :D
Really appreciate what you do, I hope that one day I can do it myself.

ALC3220 LayoutID 21 test 3.ioreg.zip

Link to comment
Share on other sites

4 minutes ago, yehia2amer said:


Still the Same.

I know, I am a programmer and I don't even know how can you do that :D
Really appreciate what you do, I hope that one day I can do it myself.

ALC3220 LayoutID 21 test 3.ioreg.zip


Take a screenshot at ouput audio in SYstem preference when you plugin jack to Green port and Front jack audio. Don't put jack in same times.

Edited by Andres ZeroCross
  • Thanks 1
Link to comment
Share on other sites

4 minutes ago, Andres ZeroCross said:


Take a screenshot at ouput node in SYstem preference when you plugin jack to Green port and Front jack audio. Don't put jack in same times.


Ooops my fault, they both work now.
 

Working: 

Headphones (Green Front)

Line-Out (Green Rear)

Microphone/Line In (Blue Rear)

 

Not Working:

Microphone (Pink Front)

1443446435_ScreenShot2018-11-30at6_08_10AM.thumb.png.8d4c7ffbc5a0ae90cdcb085a842efc58.png

Link to comment
Share on other sites

9 minutes ago, yehia2amer said:


Ooops my fault, they both work now.
 

Working: 

Headphones (Green Front)

Line-Out (Green Rear)

Microphone/Line In (Blue Rear)

 

Not Working:

Microphone (Pink Front)

1443446435_ScreenShot2018-11-30at6_08_10AM.thumb.png.8d4c7ffbc5a0ae90cdcb085a842efc58.png


This is friday,, i need to shalat in mosque. Will be back after 2 hours.

Try this kext first,, and post the result for front mic.

AppleALC.kext.zip

  • Like 1
Link to comment
Share on other sites

19 minutes ago, Andres ZeroCross said:


1. If you use _DSM method in DSDT then config.plist won't overide it except patch _DSM to XDSM first to override _DSM method of DSDT.

But i made simple solutions,, i set _DSM of HDEF in your DSDT. No need to inject properties of HDEF in config.plist again (config.plist won't override it)

2. I prefer DSDT / SSDT ways then config.plist / boot argument

3. HDMI eGPU need to set HDAU device in PEG0 (Depend your Graphics Cards)

 

Okay, thanks.

My graphics cards are:

NVidia GeForce 9200M (this one is disabled in DSDT)

NVidia GeForce 9400M G 256MB (this is the one I use)

 

Can you please let me know how to set HDAU device in PEG0 for this graphics card? Maybe just a link to a website that shows how to do this?

Link to comment
Share on other sites

2 minutes ago, najeeb_anwer said:

 

Okay, thanks.

My graphics cards are:

NVidia GeForce 9200M (this one is disabled in DSDT)

NVidia GeForce 9400M G 256MB (this is the one I use)

 

Can you please let me know how to set HDAU device in PEG0 for this graphics card? Maybe just a link to a website that shows how to do this?


just upload your currently IOREG Output and DSDT.aml. I will check it 2 hours later

Link to comment
Share on other sites

4 minutes ago, Andres ZeroCross said:


This is friday,, i need to shalat in mosque. Will be back after 2 hours.

Try this kext first,, and post the result for front mic.

AppleALC.kext.zip

 

Not working.


Yeah me too, I need to go get some sleep before Salah, Can we complete tomorrow ?,  it is 6:30 AM here in Egypt and i didn't sleep yet.


Thanks a lot for your help and جمعة مباركة

ALC3220 LayoutID 21 test 4.ioreg.zip

Link to comment
Share on other sites

26 minutes ago, yehia2amer said:

 

Not working.


Yeah me too, I need to go get some sleep before Salah, Can we complete tomorrow ?,  it is 6:30 AM here in Egypt and i didn't sleep yet.


Thanks a lot for your help and جمعة مباركة

ALC3220 LayoutID 21 test 4.ioreg.zip


Use this kext and check
1. When Rear Jack + Front Jack Audio is plug in same time, then audio must be working from Headhone, and if jack front plug off then audio will be from Rear speaker (Swtichable). Check if swtichable work or not
2. Check Input,, Internal Micrphone is Front Mic Jack and Line In is Blue Port / Mic In Rear.

Post the result

AppleALC.kext.zip

Link to comment
Share on other sites

1 hour ago, najeeb_anwer said:

 

Attached. Thanks again.

DSDT.aml.zip

Najeeb’s MacBook Pro.zip

 

New problem. I rebooted and now the audio does not work anymore.

The IOREG still shows that HDEF has the properties that you injected.

Lilu.kext and AppleALC.kext are loaded.

But AppleHDA.kext loads (shows up in kextstat) and then about a minute later it no longer shows up.

Link to comment
Share on other sites

Just now, najeeb_anwer said:

 

New problem. I rebooted and now the audio does not work anymore.

The IOREG still shows that HDEF has the properties that you injected.

Lilu.kext and AppleALC.kext are loaded.

But AppleHDA.kext loads (shows up in kextstat) and then about a minute later it no longer shows up.

 

Open terminal,, and type

"sudo kextcache -i /"

Paste the output of terminal here

 

Link to comment
Share on other sites

5 minutes ago, Andres ZeroCross said:

 

Open terminal,, and type

"sudo kextcache -i /"

Paste the output of terminal here

 

 

Kext with invalid signatured (-67054) allowed: <OSKext 0x7f88d5489c10 [0x7fff8f95db30]> { URL = "msdosfs.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.filesystems.msdosfs" }
Kext with invalid signatured (-67030) allowed: <OSKext 0x7f88d5332540 [0x7fff8f95db30]> { URL = "IOBluetoothFamily.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.iokit.IOBluetoothFamily" }
Kext with invalid signatured (-67030) allowed: <OSKext 0x7f88d533aff0 [0x7fff8f95db30]> { URL = "BroadcomBluetoothHostControllerUSBTransport.kext/ -- file:///System/Library/Extensions/IOBluetoothFamily.kext/Contents/PlugIns/", ID = "com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport" }
Kext with invalid signatured (-67054) allowed: <OSKext 0x7f88d3cd7650 [0x7fff8f95db30]> { URL = "AppleKextExcludeList.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.driver.KextExcludeList" }
Kext with invalid signatured (-67013) allowed: <OSKext 0x7f88d3c27bc0 [0x7fff8f95db30]> { URL = "AppleDataSetManagement.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.AppleDataSetManagement" }
KernelCache ID: 4F1F99B310157790073721F43F0A5ED8
Kext with invalid signatured (-67013) allowed: <OSKext 0x7f9ec8c55550 [0x7fff8f95db30]> { URL = "AppleDataSetManagement.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.AppleDataSetManagement" }
Kext with invalid signatured (-67054) allowed: <OSKext 0x7f9ec8eebd50 [0x7fff8f95db30]> { URL = "AppleKextExcludeList.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.driver.KextExcludeList" }
Kext with invalid signatured (-67030) allowed: <OSKext 0x7f9eca2e7860 [0x7fff8f95db30]> { URL = "IOBluetoothFamily.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.iokit.IOBluetoothFamily" }
Kext with invalid signatured (-67030) allowed: <OSKext 0x7f9eca352e70 [0x7fff8f95db30]> { URL = "BroadcomBluetoothHostControllerUSBTransport.kext/ -- file:///System/Library/Extensions/IOBluetoothFamily.kext/Contents/PlugIns/", ID = "com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport" }
Kext with invalid signatured (-67054) allowed: <OSKext 0x7f9eca4c7ec0 [0x7fff8f95db30]> { URL = "msdosfs.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.filesystems.msdosfs" }

 

Link to comment
Share on other sites

Just now, najeeb_anwer said:

 

Kext with invalid signatured (-67054) allowed: <OSKext 0x7f88d5489c10 [0x7fff8f95db30]> { URL = "msdosfs.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.filesystems.msdosfs" }
Kext with invalid signatured (-67030) allowed: <OSKext 0x7f88d5332540 [0x7fff8f95db30]> { URL = "IOBluetoothFamily.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.iokit.IOBluetoothFamily" }
Kext with invalid signatured (-67030) allowed: <OSKext 0x7f88d533aff0 [0x7fff8f95db30]> { URL = "BroadcomBluetoothHostControllerUSBTransport.kext/ -- file:///System/Library/Extensions/IOBluetoothFamily.kext/Contents/PlugIns/", ID = "com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport" }
Kext with invalid signatured (-67054) allowed: <OSKext 0x7f88d3cd7650 [0x7fff8f95db30]> { URL = "AppleKextExcludeList.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.driver.KextExcludeList" }
Kext with invalid signatured (-67013) allowed: <OSKext 0x7f88d3c27bc0 [0x7fff8f95db30]> { URL = "AppleDataSetManagement.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.AppleDataSetManagement" }
KernelCache ID: 4F1F99B310157790073721F43F0A5ED8
Kext with invalid signatured (-67013) allowed: <OSKext 0x7f9ec8c55550 [0x7fff8f95db30]> { URL = "AppleDataSetManagement.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.AppleDataSetManagement" }
Kext with invalid signatured (-67054) allowed: <OSKext 0x7f9ec8eebd50 [0x7fff8f95db30]> { URL = "AppleKextExcludeList.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.driver.KextExcludeList" }
Kext with invalid signatured (-67030) allowed: <OSKext 0x7f9eca2e7860 [0x7fff8f95db30]> { URL = "IOBluetoothFamily.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.iokit.IOBluetoothFamily" }
Kext with invalid signatured (-67030) allowed: <OSKext 0x7f9eca352e70 [0x7fff8f95db30]> { URL = "BroadcomBluetoothHostControllerUSBTransport.kext/ -- file:///System/Library/Extensions/IOBluetoothFamily.kext/Contents/PlugIns/", ID = "com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport" }
Kext with invalid signatured (-67054) allowed: <OSKext 0x7f9eca4c7ec0 [0x7fff8f95db30]> { URL = "msdosfs.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.filesystems.msdosfs" }

 


Take a screenshot contain of your EFI/CLOVEr/Kexts/10.14 and EFI/CLOVEr/Kexts/10.14. SOrry for bad english

Link to comment
Share on other sites

3 minutes ago, najeeb_anwer said:

 

No items in 10.13, 10.14. All kexts in Other.

 

image.png.fbcc9cb65f7907b18d699e0301413727.png

 

image.png.d771de3e8e6197f04e477714e8746f8f.png

 

 

There is nothing wrong except modified kext for msdosfs.kext, AppleKextExcludeList.kext and AppleDataSetManagement.kext. Why did you modifiy this kexts?? And You need to upload your current config.plist. Maybe another "clue" can be gathered from it

Edited by Andres ZeroCross
Link to comment
Share on other sites

×
×
  • Create New...