Jump to content

AppleALC — dynamic AppleHDA patching


vit9696
5,390 posts in this topic

Recommended Posts

I don't know where am I wrong ...

This is the ioreg output of each kext + SSDT-HDEF + config.plist

 

and also the output of kextstat:

drewsmac:~ drew$ sudo kextstat | grep -y "AppleALC"
   38    0 0xffffff7f8382e000 0xe0000    0xe0000    as.vit9696.AppleALC (1.3.4) B903CE63-042D-37EA-B062-6826610DF5FB <37 13 8 6 5 3 2 1>
drewsmac:~ drew$ sudo kextstat | grep -y "AppleHDA"
  116    1 0xffffff7f832b0000 0x1d000    0x1d000    com.apple.driver.AppleHDAController (282.10) 41CE33FB-FED7-36D3-A3DF-03B036329B10 <115 104 83 13 8 7 6 5 3 1>
  147    0 0xffffff7f8342f000 0xb7000    0xb7000    com.apple.driver.AppleHDA (282.10) 9BB2B0F6-EDD8-397A-9EBB-05508910C3EC <146 116 115 110 104 83 7 6 5 3 1>
drewsmac:~ drew$ 

 

troubleshooting.zip

Link to comment
Share on other sites

58 minutes ago, Justin Spier said:

I don't know where am I wrong ...

This is the ioreg output of each kext + SSDT-HDEF + config.plist

 

and also the output of kextstat:


drewsmac:~ drew$ sudo kextstat | grep -y "AppleALC"
   38    0 0xffffff7f8382e000 0xe0000    0xe0000    as.vit9696.AppleALC (1.3.4) B903CE63-042D-37EA-B062-6826610DF5FB <37 13 8 6 5 3 2 1>
drewsmac:~ drew$ sudo kextstat | grep -y "AppleHDA"
  116    1 0xffffff7f832b0000 0x1d000    0x1d000    com.apple.driver.AppleHDAController (282.10) 41CE33FB-FED7-36D3-A3DF-03B036329B10 <115 104 83 13 8 7 6 5 3 1>
  147    0 0xffffff7f8342f000 0xb7000    0xb7000    com.apple.driver.AppleHDA (282.10) 9BB2B0F6-EDD8-397A-9EBB-05508910C3EC <146 116 115 110 104 83 7 6 5 3 1>
drewsmac:~ drew$ 

 

troubleshooting.zip

 

Sorry, i put wrong codecid name at LayoutXML.. One of these kext should work now with your codec. Post the result with each IOREG

AppleALC.kext V1.zip

AppleALC.kext V2.zip

Link to comment
Share on other sites

@Andres ZeroCross

First of all, Thank you so much for your hard work :)

And now the result:

1. The first one: I have sound on both Int Speaker and Headphone, And automatic switch from int to ext works correctly.

But there is a small problem in int speaker: The volume slider doesn't work properly, hard to explain; Just see the screenshot:

1736019114_Screenshot2018-11-13at01_24_51.thumb.png.24ac2393204ddeaf2ab3e7aeed216279.png

 

2. The second one: I have sound only on Headphone.

---

IOReg output of both attached.

---

And now a question: What about HDMI audio? Should it be enable by this kext? or need more workaround?

troubleshooting.zip

Link to comment
Share on other sites

[mention=1311960]Andres ZeroCross[/mention]
First of all, Thank you so much for your hard work
And now the result:
1. The first one: I have sound on both Int Speaker and Headphone, And automatic switch from int to ext works correctly.
But there is a small problem in int speaker: The volume slider doesn't work properly, hard to explain; Just see the screenshot:
1736019114_Screenshot2018-11-13at01_24_51.thumb.png.24ac2393204ddeaf2ab3e7aeed216279.png
 
2. The second one: I have sound only on Headphone.
---
IOReg output of both attached.
---
And now a question: What about HDMI audio? Should it be enable by this kext? or need more workaround?
troubleshooting.zip
So with both kexts you only get audio from headphone??? Ok, i will check detail tommorow. For audio volume need additional binary patch. I will add it later.

Hdmi audio is about binary at your framebuffer and properties hda-gfx in hdef and igpu. It's another problem. Fix it later, i will update the kexts tommorow. Need to sleep

Sent from my Mi Note 2 using Tapatalk

Link to comment
Share on other sites

1 minute ago, Andres ZeroCross said:

So with both kexts you only get audio from headphone??? Ok, i will check detail tommorow. For audio volume need additional binary patch. I will add it later.

Hdmi audio is about binary at your framebuffer and properties hda-gfx in hdef and igpu. It's another problem. Fix it later, i will update the kexts tommorow. Need to sleep

Sent from my Mi Note 2 using Tapatalk
 

 

Ok! But no; I have sound by first one in speaker too, the problem with first kext is just the slider.

 

So, Thanks again!

Link to comment
Share on other sites

 
Ok! But no; I have sound by first one in speaker too, the problem with first kext is just the slider.
 
So, Thanks again!
Owh i get it. Yes, i use different nodeid for internal speaker for v2 of kexts. But how about slider volume at v2 kexts?? Is it normal?? I need the information. And how about internal mic and external mic.

Please send the detail about internal and external mic too. Just try to record your voice with Quicktime and play it to test the microphone

Sent from my Mi Note 2 using Tapatalk

Link to comment
Share on other sites

16 hours ago, Andres ZeroCross said:

 

Now use this kexts,,, slider problem should be fixed. Let me know for the result

AppleALC.kext.zip

 

You are a Hero :D 

Now the volume slider works properly too.

And about Mic; It records a little noisy I think, Not sure,  Or maybe influenced by fan noise?!! Cause there is no noise on my words that I say in mic; Just a little noise in background.

And one thing else; should it be like this? No difference whether the headphone connected or not, It's like the screenshot in both state.911607942_Screenshot2018-11-13at18_32_08.thumb.png.c351fcab005a504a4f924288241bf606.png

Link to comment
Share on other sites

7 minutes ago, Justin Spier said:

 

You are a Hero :D 

Now the volume slider works properly too.

And about Mic; It records a little noisy I think, Not sure,  Or maybe influenced by fan noise?!! Cause there is no noise on my words that I say in mic; Just a little noise in background.

And one thing else; should it be like this? No difference whether the headphone connected or not, It's like the screenshot in both state.911607942_Screenshot2018-11-13at18_32_08.thumb.png.c351fcab005a504a4f924288241bf606.png

 

Yes,, for Internal Mic and External mic i set no for jack sense. It's independent to choice internal or external mic. Try to tick "use ambient noise reductions".

And how about wake from sleep?? Is audio still working?? If all is good then i will ask @vandroiy2012 to add my resource files for CX8150 to Github

Link to comment
Share on other sites

1 hour ago, Andres ZeroCross said:

 

Yes,, for Internal Mic and External mic i set no for jack sense. It's independent to choice internal or external mic. Try to tick "use ambient noise reductions".

And how about wake from sleep?? Is audio still working?? If all is good then i will ask @vandroiy2012 to add my resource files for CX8150 to Github

 

I activated "use ambient noise reductions" and now ... there isn't any noise :D 

And yes, I have audio after wake, and without installing CodecCommander, I thought it's always necessary, isn't?!! 

Link to comment
Share on other sites

@vandroiy2012 @vit9696

Please add this CX8150 Resources to AppleALC.kext github.
 

@Justin Spier confirmed,, Audio Internal + External and Internal + External mic work and even after sleep. I use Layout=21

Thanks very much

New Resource CX8150 - ID = 21.zip

AppleALC.kext.zip

  • Like 2
Link to comment
Share on other sites

Hi all,

 

I just recently tried using AppleALC for my audio on my Razer Blade 15 (2018) Hackintosh. I followed a guide by vettz500 over at tonymac for my installation. vettz was able to get audio working using AppleALC with layout-id 30 on High Sierra, but unfortunately I haven't had the same luck on Mojave. Any help would be super appreciated! I have tried every layout-id for ALC298, and none got me any audio devices detected.

 

I've attached a zip with a bunch of problem reporting files with where my system is at. Thanks for anyone who takes the time to look over this!

debug_24722.zip

Link to comment
Share on other sites

5 hours ago, lunaoso said:

Hi all,

 

I just recently tried using AppleALC for my audio on my Razer Blade 15 (2018) Hackintosh. I followed a guide by vettz500 over at tonymac for my installation. vettz was able to get audio working using AppleALC with layout-id 30 on High Sierra, but unfortunately I haven't had the same luck on Mojave. Any help would be super appreciated! I have tried every layout-id for ALC298, and none got me any audio devices detected.

 

I've attached a zip with a bunch of problem reporting files with where my system is at. Thanks for anyone who takes the time to look over this!

debug_24722.zip

I don't see where you are setting the layout-id?

And i see no kexts.

Also add system specs to signature.

Edited by SavageAUS
Link to comment
Share on other sites

5 hours ago, SavageAUS said:

I don't see where you are setting the layout-id?

And i see no kexts.

Also add system specs to signature.

layout-id is being set in config.plist at Devices/Properties/PciRoot(0x0)/Pci(0x1f, 0x3)/layout-id.

 

I posted the output of kextstat in this post. Is there anything else that would be useful that I can post? I'm on the newest version of AppleALC and I think the newest version of Lilu.

kextstat.txt

Link to comment
Share on other sites

layout-id is being set in config.plist at Devices/Properties/PciRoot(0x0)/Pci(0x1f, 0x3)/layout-id.
 
I posted the output of kextstat in this post. Is there anything else that would be useful that I can post? I'm on the newest version of AppleALC and I think the newest version of Lilu.
kextstat.txt
Edit your signature with your device specifications or write detail of your specifications.

Sent from my Mi Note 2 using Tapatalk

Link to comment
Share on other sites

13 minutes ago, Andres ZeroCross said:

Edit your signature with your device specifications or write detail of your specifications.

Sent from my Mi Note 2 using Tapatalk
 

I have my specs in my signature. Am I missing anything that I should add?

Link to comment
Share on other sites

12 minutes ago, lunaoso said:

I have my specs in my signature. Am I missing anything that I should add?

 

1. You should put your additional kext to EFI/CLOVER/Kexts other, except for Bluetooth kexts (just to make easy when another problem is happened)
2. You must set your Device-id of your HDEF to SkyLake's HDEF. You can add this properties to _DSM of HDEF in your DSDT or SSDT. THis is device id of SkyLake's HDEF
 

"device-id", 
                    Buffer (0x04)
                    {
                         0x70, 0xA1, 0x00, 0x00                         
                    }, 

or you can set it too to Devices/Properties/PciRoot(0x0)/Pci(0x1f, 0x3)/

Try this Config.plist,, replace the old ones. Post the result.. Sorry for bad english

config.plist

Edited by Andres ZeroCross
Link to comment
Share on other sites

1 hour ago, Andres ZeroCross said:

 

1. You should put your additional kext to EFI/CLOVER/Kexts other, except for Bluetooth kexts (just to make easy when another problem is happened)
2. You must set your Device-id of your HDEF to SkyLake's HDEF. You can add this properties to _DSM of HDEF in your DSDT or SSDT. THis is device id of SkyLake's HDEF
 


"device-id", 
                    Buffer (0x04)
                    {
                         0x70, 0xA1, 0x00, 0x00                         
                    }, 

or you can set it too to Devices/Properties/PciRoot(0x0)/Pci(0x1f, 0x3)/

Try this Config.plist,, replace the old ones. Post the result.. Sorry for bad english

config.plist

Thanks for the help! So setting the device-id of my HDEF to Skylake's got me audio at least. The devices are recognized by the OS, but everything is distorted. I've tried some different layout-ids but they seem to all be distorted. Any idea on how to fix that?

 

And just out of curiosity, why did you recommend Skylake's HDEF when my CPU is Coffee Lake? Just trying to somewhat learn what is going on/how to better debug for myself in the future.

Link to comment
Share on other sites

1 minute ago, lunaoso said:

Thanks for the help! So setting the device-id of my HDEF to Skylake's got me audio at least. The devices are recognized by the OS, but everything is distorted. I've tried some different layout-ids but they seem to all be distorted. Any idea on how to fix that?

 

And just out of curiosity, why did you recommend Skylake's HDEF when my CPU is Coffee Lake? Just trying to somewhat learn what is going on/how to better debug for myself in the future.

 

Maybe for the first step you can try to tick this options at Device Sections (Open your config.plist with Clover Configurator)
image.png.1616f49378c716f9021d9c691b2d0ef3.png

Link to comment
Share on other sites

6 minutes ago, Andres ZeroCross said:

 

Maybe for the first step you can try to tick this options at Device Sections (Open your config.plist with Clover Configurator)
image.png.1616f49378c716f9021d9c691b2d0ef3.png

Didn't seem like that changed anything. If it helps, it sounds like vocals are very quiet. And then the music is distorted.

 

EDIT: Also if you want me to post any logs or anything like that, let me know.

Edited by lunaoso
Link to comment
Share on other sites

1 minute ago, lunaoso said:

Didn't seem like that changed anything. If it helps, it sounds like vocals are very quiet. And then the music is distorted.

 

You should upload your debug files again,, we can't use old debug files with new problem. And try to cold boot your system (shutdown and turn on instead reboot)

Link to comment
Share on other sites

18 minutes ago, Andres ZeroCross said:

 

You should upload your debug files again,, we can't use old debug files with new problem. And try to cold boot your system (shutdown and turn on instead reboot)

I still have my kexts in /L/E because I haven't had to mess with those yet anyway, but I included them in the debug zip so you can take a look at what's there. Also, doing a cold boot unfortunately did not make a difference.

debug_24441.zip

Link to comment
Share on other sites

7 minutes ago, lunaoso said:

I still have my kexts in /L/E because I haven't had to mess with those yet anyway, but I included them in the debug zip so you can take a look at what's there. Also, doing a cold boot unfortunately did not make a difference.

debug_24441.zip

 

image.thumb.png.200b4133f4ef298d9af6a24a88295caa.png

Why did you put this value??? 

My solution before is to use "70A10000"

Link to comment
Share on other sites

6 minutes ago, Andres ZeroCross said:

 

image.thumb.png.200b4133f4ef298d9af6a24a88295caa.png

Why did you put this value??? 

My solution before is to use "70A10000"

I grabbed the base64 encoded version from the config.plist and messed up copying it over, my bad. I've edited it back to be the correct value. Didn't seem to fix anything though unfortunately. Same problems as before.

config.plist

Link to comment
Share on other sites

×
×
  • Create New...