Jump to content

AppleALC — dynamic AppleHDA patching


vit9696
5,390 posts in this topic

Recommended Posts

7 hours ago, DSM2 said:

LOL Sorry but what you expect to see?

Its not worth all your "tests"

It doesn't work and its not an fault from my side.

The nodes are completely different on the ones which are included already etc...

 

 


Why did you laugh for??? 

You are asking for help, i need to make sure first,,
I must avoid duplicate resource with same Node Id. I don't know you if you're smart or not. Before made resource i need to check your IOREG Output first.

But if you know how to make resource by yourself, then make it. Good luck

Edited by Andres ZeroCross
  • Like 3
Link to comment
Share on other sites

I just wanted to make clear that I am not dumb and the sound problem is not related to an issue from my side. 

 

If you would check the other IDs you would see the difference in them so I don't unterstand what you expect to see in ioreg. 

Edited by DSM2
Link to comment
Share on other sites

Can anyone see what I am doing wrong? I am trying to get native support for this codec, 0x1af40012 The codec changes based on the configuration but this is the simplest one that I could find. I attach the image of the output path and the codec.txt

codec.txt.svg

 

I have tried to patch AppleALC to load this codec but I don't think that my pathes and/or layouts are correct. I generated the pin config using headkaes tool. The logs are in the log.txt file.

 

The changes that I have tried are attached. I don't know how if the patches for the AppleHDA kext are correct as I could not find any explanation for them after some searching.

 

I also modified the vendors with:


+++ Resources/Vendors.plist
@@ -20,6 +20,8 @@
        <integer>32902</integer>
        <key>NVIDIA</key>
        <integer>4318</integer>
+       <key>QEMU</key>
+       <integer>6900</integer>
        <key>Realtek</key>
        <integer>4332</integer>
        <key>SigmaTel</key>

and in Resources/PinConfigs.kext/Contents/Info.plist::


								<dict>
                                       <key>AFGLowPowerState</key>
                                       <data>AwAAAA==</data>
                                       <key>CodecID</key>
                                       <integer>452198418</integer>
                                       <key>Comment</key>
                                       <string>QEMU HDA Output</string>
                                       <key>ConfigData</key>
                                       <data>
                                        ADccEAA3HUAANx4AADcfAA==
                                       </data>
                                       <key>FuncGroup</key>
                                       <integer>1</integer>
                                       <key>LayoutID</key>
                                       <integer>18</integer>
                               </dict>

 

Is anyone able to offer some pointers on how to get this to work?

codec.txt

log.txt

Info.plist

layout18.xml

Platforms18.xml

Link to comment
Share on other sites

Hi, I am using Apple ALC on my XPS 9570 (Coffee Lake, i7-8750H) with ALC298 (layout-id 72). I am able to get audio working over speakers and the jack, but I am not able to get the audio to work over HDMI or DisplayPort.

 

I have AppleALC and WhateverGreen, and use ComboJack with the VerbStub kext--are there any resources/patches I should look at to get this working? I'm happy to provide any log files.

Link to comment
Share on other sites

On 12/1/2019 at 10:16 AM, Andres ZeroCross said:


Use layout 11, 21 or 31. If it doesn't work, upload IOREG Output for each used layout here.

I need to check your configuration, before try making new resources

HP Envy 13 i7-10510u here, same problem. I attached the three different IOREG files. Would appreciate some help! May be related to the Envy having 4 speakers?

Archiv.zip

Edited by Killuminati91
Link to comment
Share on other sites

Howdy! Wasn't sure if this should go to the issues tracker, or here...so I'll start here. I noticed that I lost the ability to use HDMI audio on my ASUS Q405UA notebook (8th gen KBL-R), and I've traced it back to this particular commit and PR.

 

https://github.com/acidanthera/AppleALC/commit/5cce3c5e29c7c7891a979cb60363d1978276c903

https://github.com/acidanthera/AppleALC/pull/471

 

If I reverse the commit and build the latest AppleALC from master, HDMI audio works as it worked previously.  I'm not sure how to correct it, so I'm afraid I can't offer a fix.  Happy to help troubleshoot though.

 

1. Laptop model/Motherboard model

ASUS Q405UA
 

2. Codec name

ALC294
 

3. Layout used with the info what works for you (ideally if you try them all)

21 works best, have tried them all.


4. OS X versions you tried
10.14.6

 

5. Autogenerated Info.plist made with the help of this utility.

Can't seem to locate the utility, 404 error.

Link to comment
Share on other sites

On 12/7/2019 at 5:07 AM, fewtarius said:

Howdy! Wasn't sure if this should go to the issues tracker, or here...so I'll start here. I noticed that I lost the ability to use HDMI audio on my ASUS Q405UA notebook (8th gen KBL-R), and I've traced it back to this particular commit and PR.

 

https://github.com/acidanthera/AppleALC/commit/5cce3c5e29c7c7891a979cb60363d1978276c903

 

Check HDMI sound with it AppleALC.

https://drive.google.com/file/d/1cC-TWGqifXGXlwF_F1vL93ig_vYRrQ0X/view?usp=sharing

Link to comment
Share on other sites

Hi everyone, I have a Huawei matebook D with audio ALC256 that works well but I have a problem with the sound of the headphones 
it seems that it is not mixed if I listen to an mp3 track I don't hear the voice or it has rustling ... 
I attach file.
Sorry for my english google use translator

MP3 Esempio

Matebook D

Edited by AlexAMD
Link to comment
Share on other sites

I have a Intel NUC Haswell i5-4250U (with Realtek ALC283) - Mojave that I updated from Sierra.


After update there is no audio anymore, no audio drivers are available, the usb audio not seen, the bluetooth audio not working, the coreaudiod is not loaded ("coreaudiod[1148:52112] Creating device (2) for clock identifier 0xc13fd56823fd0000 Segmentation fault: 11").

 

I have been implementing the B method: Acidanthera/AppleALC, as suggested by the thread:



To me it seems that AppleALC is working partially and I could not figure out what else needs to be done.
I tried many layout's with no better outcome.

I observed one difference between Mojave ioreg and Sierra ioreg:
The HDEF's PinsConfiguration is different (please check the files 'Mojave ioreg.zip' and 'Sierra ioreg.zip')

 

A couple of

kextstat|grep -y acpiplat

15 2 0xffffff7f82e1a000 0x9c000 0x9c000 com.apple.driver.AppleACPIPlatform (6.1) 7E58F166-33A2-3927-A408-6CEC9D414159 <14 13 12 8 7 6 5 3 1>

kextstat|grep -y applelpc 
118 0 0xffffff7f82edb000 0x5000 0x5000 com.apple.driver.AppleLPC (3.1) C6182458-1A54-3B98-A47D-5EB70CC03086 <113 13 6 5 3>

kextstat|grep -y applehda

120 1 0xffffff7f82a2a000 0x1d000 0x1d000 com.apple.driver.AppleHDAController (282.54) 010C7430-E21C-3979-B308-D8E1D8DFC911 <119 108 103 13 8 7 6 5 3 1>

148 0 0xffffff7f82bbc000 0xea000 0xea000 com.apple.driver.AppleHDA (282.54) 859F84B1-EA93-3C82-8253-C45979BCEF9E <147 131 120 119 108 103 7 6 5 3 1>

152 0 0xffffff7f82a49000 0x4000 0x4000 com.apple.driver.AppleHDAHardwareConfigDriver (282.54) 6A892FFD-C975-3444-BD38-3CD8044391A9 <5 3>

 

kextstat | grep 'Lilu\|AppleALC\|AppleHDA'

39 3 0xffffff7f83bf2000 0x7a000 0x7a000 as.vit9696.Lilu (1.4.0) 8B171385-FD11-3BFC-B7F7-F9BCE7EB1784 <8 6 5 3 2 1>

40 0 0xffffff7f83c6c000 0x135000 0x135000 as.vit9696.AppleALC (1.4.4) 058227E2-6716-3A1D-9A64-F37768035860 <39 13 8 6 5 3 2 1>

120 1 0xffffff7f82a2a000 0x1d000 0x1d000 com.apple.driver.AppleHDAController (282.54) 010C7430-E21C-3979-B308-D8E1D8DFC911 <119 108 103 13 8 7 6 5 3 1>

148 0 0xffffff7f82bbc000 0xea000 0xea000 com.apple.driver.AppleHDA (282.54) 859F84B1-EA93-3C82-8253-C45979BCEF9E <147 131 120 119 108 103 7 6 5 3 1>

152 0 0xffffff7f82a49000 0x4000 0x4000 com.apple.driver.AppleHDAHardwareConfigDriver (282.54) 6A892FFD-C975-3444-BD38-3CD8044391A9 <5 3>

 

Please help.

Thanks!

Mojave ioreg.zip

Sierra ioreg.zip

Edited by artur_pt
tonymac link
Link to comment
Share on other sites

9 hours ago, cucul said:

I have a Intel NUC Haswell i5-4250U (with Realtek ALC283) - Mojave that I updated from Sierra.


After update there is no audio anymore, no audio drivers are available, the usb audio not seen, the bluetooth audio not working, the coreaudiod is not loaded ("coreaudiod[1148:52112] Creating device (2) for clock identifier 0xc13fd56823fd0000 Segmentation fault: 11").

 

I have been implementing the B method: Acidanthera/AppleALC, as suggested by the thread:



To me it seems that AppleALC is working partially and I could not figure out what else needs to be done.
I tried many layout's with no better outcome.

I observed one difference between Mojave ioreg and Sierra ioreg:
The HDEF's PinsConfiguration is different (please check the files 'Mojave ioreg.zip' and 'Sierra ioreg.zip')

 

A couple of

kextstat|grep -y acpiplat

15 2 0xffffff7f82e1a000 0x9c000 0x9c000 com.apple.driver.AppleACPIPlatform (6.1) 7E58F166-33A2-3927-A408-6CEC9D414159 <14 13 12 8 7 6 5 3 1>


kextstat|grep -y applelpc 
118 0 0xffffff7f82edb000 0x5000 0x5000 com.apple.driver.AppleLPC (3.1) C6182458-1A54-3B98-A47D-5EB70CC03086 <113 13 6 5 3>

kextstat|grep -y applehda

120 1 0xffffff7f82a2a000 0x1d000 0x1d000 com.apple.driver.AppleHDAController (282.54) 010C7430-E21C-3979-B308-D8E1D8DFC911 <119 108 103 13 8 7 6 5 3 1>

148 0 0xffffff7f82bbc000 0xea000 0xea000 com.apple.driver.AppleHDA (282.54) 859F84B1-EA93-3C82-8253-C45979BCEF9E <147 131 120 119 108 103 7 6 5 3 1>

152 0 0xffffff7f82a49000 0x4000 0x4000 com.apple.driver.AppleHDAHardwareConfigDriver (282.54) 6A892FFD-C975-3444-BD38-3CD8044391A9 <5 3>

 

kextstat | grep 'Lilu\|AppleALC\|AppleHDA'

39 3 0xffffff7f83bf2000 0x7a000 0x7a000 as.vit9696.Lilu (1.4.0) 8B171385-FD11-3BFC-B7F7-F9BCE7EB1784 <8 6 5 3 2 1>

40 0 0xffffff7f83c6c000 0x135000 0x135000 as.vit9696.AppleALC (1.4.4) 058227E2-6716-3A1D-9A64-F37768035860 <39 13 8 6 5 3 2 1>

120 1 0xffffff7f82a2a000 0x1d000 0x1d000 com.apple.driver.AppleHDAController (282.54) 010C7430-E21C-3979-B308-D8E1D8DFC911 <119 108 103 13 8 7 6 5 3 1>

148 0 0xffffff7f82bbc000 0xea000 0xea000 com.apple.driver.AppleHDA (282.54) 859F84B1-EA93-3C82-8253-C45979BCEF9E <147 131 120 119 108 103 7 6 5 3 1>

152 0 0xffffff7f82a49000 0x4000 0x4000 com.apple.driver.AppleHDAHardwareConfigDriver (282.54) 6A892FFD-C975-3444-BD38-3CD8044391A9 <5 3>

 

Please help.

Thanks!

Mojave ioreg.zip

Sierra ioreg.zip


Use latest lilu.kext and plugin, update all of them to latest version and reboot again

Edited by artur_pt
tonymac link
Link to comment
Share on other sites

Link to comment
Share on other sites

On 12/8/2019 at 5:12 PM, cucul said:

I have a Intel NUC Haswell i5-4250U (with Realtek ALC283) - Mojave that I updated from Sierra.


After update there is no audio anymore, no audio drivers are available, the usb audio not seen, the bluetooth audio not working, the coreaudiod is not loaded ("coreaudiod[1148:52112] Creating device (2) for clock identifier 0xc13fd56823fd0000 Segmentation fault: 11").

 

I have been implementing the B method: Acidanthera/AppleALC, as suggested by the thread:



To me it seems that AppleALC is working partially and I could not figure out what else needs to be done.
I tried many layout's with no better outcome.

I observed one difference between Mojave ioreg and Sierra ioreg:
The HDEF's PinsConfiguration is different (please check the files 'Mojave ioreg.zip' and 'Sierra ioreg.zip')

 

A couple of

kextstat|grep -y acpiplat

15 2 0xffffff7f82e1a000 0x9c000 0x9c000 com.apple.driver.AppleACPIPlatform (6.1) 7E58F166-33A2-3927-A408-6CEC9D414159 <14 13 12 8 7 6 5 3 1>


kextstat|grep -y applelpc 
118 0 0xffffff7f82edb000 0x5000 0x5000 com.apple.driver.AppleLPC (3.1) C6182458-1A54-3B98-A47D-5EB70CC03086 <113 13 6 5 3>

kextstat|grep -y applehda

120 1 0xffffff7f82a2a000 0x1d000 0x1d000 com.apple.driver.AppleHDAController (282.54) 010C7430-E21C-3979-B308-D8E1D8DFC911 <119 108 103 13 8 7 6 5 3 1>

148 0 0xffffff7f82bbc000 0xea000 0xea000 com.apple.driver.AppleHDA (282.54) 859F84B1-EA93-3C82-8253-C45979BCEF9E <147 131 120 119 108 103 7 6 5 3 1>

152 0 0xffffff7f82a49000 0x4000 0x4000 com.apple.driver.AppleHDAHardwareConfigDriver (282.54) 6A892FFD-C975-3444-BD38-3CD8044391A9 <5 3>

 

kextstat | grep 'Lilu\|AppleALC\|AppleHDA'

39 3 0xffffff7f83bf2000 0x7a000 0x7a000 as.vit9696.Lilu (1.4.0) 8B171385-FD11-3BFC-B7F7-F9BCE7EB1784 <8 6 5 3 2 1>

40 0 0xffffff7f83c6c000 0x135000 0x135000 as.vit9696.AppleALC (1.4.4) 058227E2-6716-3A1D-9A64-F37768035860 <39 13 8 6 5 3 2 1>

120 1 0xffffff7f82a2a000 0x1d000 0x1d000 com.apple.driver.AppleHDAController (282.54) 010C7430-E21C-3979-B308-D8E1D8DFC911 <119 108 103 13 8 7 6 5 3 1>

148 0 0xffffff7f82bbc000 0xea000 0xea000 com.apple.driver.AppleHDA (282.54) 859F84B1-EA93-3C82-8253-C45979BCEF9E <147 131 120 119 108 103 7 6 5 3 1>

152 0 0xffffff7f82a49000 0x4000 0x4000 com.apple.driver.AppleHDAHardwareConfigDriver (282.54) 6A892FFD-C975-3444-BD38-3CD8044391A9 <5 3>

 

Please help.

Thanks!

Mojave ioreg.zip

Sierra ioreg.zip

 

I observed one difference between ioreg's for the:

IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/HDAU@3/AppleHDAController@3/IOHDACodecDevice@3,0/IOHDACodecDriver/IOHDACodecFunction@3,0,1/AppleHDACodecGeneric/AppleHDADriver/AppleHDAEngineOutputDP@3,0,1,0

 

for the working one (Sierra version):

IOAudioEngineClockDomain = 0x4178f00

 

for the problematic one (Mojave):

IOAudioEngineClockDomain = 0x737973

 

I wonder if this clock value difference could be the trouble with coreaudiod failing to work.

 

Thanks in advance!

 

Link to comment
Share on other sites

Hi Folks. 

 

I have a nice Asus T305 2in1 Tablet with Exotic ALC274 Codec. 

 

Its a Kabylake Tablet with i5 7y54 and Hd615 Graphics. 

 

OS is macOS Catalina 10.15.1. All Vanilla means no external Kext used like AppleHDA.kext etc

 

I can't managed to activate Sound at all. I tried VodooHDA.kext and of course AppleHDA.kext with almost all Layout IDs.

 

 

Send me admins-iMac.zip

Bildschirmfoto 2017-06-02 um 07.05.13.png

Bildschirmfoto 2019-12-11 um 07.24.07.png

codec_dump.txt

Edited by KMBeatz
Link to comment
Share on other sites

hi I recently install 10.13.6 on my Fujitsu ah530 that has ALC269 

I install lilu + AppleALC in /L/E and with layout_id = 28 I only got internal speaker and headphone work but no bluetooth speaker or HDMI audio output and mic I mean the output section shows only speaker output and even no headphone but when I insert headphone it works . my biggest problem here is HDMI audio 

specs: 

core i5 480m

ATI Radeon HD 5650

ALC269

codec_dump.txt

Edited by behrad jafari
Link to comment
Share on other sites

Hello,

I used appleAlc a good time now, on my evga x58 ftw3, equipped with an ALC892.

It worked fine with layout 1.

Then I changed something (I switched out the graphics card from a gtx780ti to a gtx770) and now I don't have the internal speaker option any more, it is recognized s a headphone in a headphone port instead, but I cant get audio out of it if I choose that one.

Internet search gives no clue about it.

 

Can somebody help? I really dont understand whats going on

Thank you

Link to comment
Share on other sites

×
×
  • Create New...