Jump to content

AppleALC — dynamic AppleHDA patching


vit9696
5,390 posts in this topic

Recommended Posts

Hi, i have a problem with audio on

Asus UX430

Audio device: 0x80869D71, Sub Device: 0x10431740, Codec ID:0x10EC0295, Revision: 0x0002   -> ALC295

 

In clover inject = 28 but it doesn;t change layout id in SystemReport->Audio-> Audio ID:  3 , always it;s 3 no matter what i set in clover.

 

bdmesg:

4:560  0:000  Found Airport BCM at 0x1C0005, 0x0
4:579  0:018  Audio HDA (addr:0x1F0003) setting specified layout-id=28 (0x1C)
4:579  0:000  first CPU found at 93A8 offset 93AB

Can you help me with this?

 

Thx

DSDT.aml.zip

Link to comment
Share on other sites

Hi, i have a problem with audio on

Asus UX430

Audio device: 0x80869D71, Sub Device: 0x10431740, Codec ID:0x10EC0295, Revision: 0x0002   -> ALC295

 

In clover inject = 28 but it doesn;t change layout id in SystemReport->Audio-> Audio ID:  3 , always it;s 3 no matter what i set in clover.

 

Can you help me with this?

 

Thx

 

Your DSDT have HDEF section with layout-id 3. You should change layout in DSDT not in config.plist. 

Link to comment
Share on other sites

Ok, i've removed "layout-id" from DSDT and in clover injected audio(28).

I see devices in preferences, i am able to control sound level but there is NO sound from speakers or headphones(switching works).

 

I've cleared kext cache, repaired permissions but still no sound.

post-1583829-0-24741900-1498806116_thumb.png

Link to comment
Share on other sites

Hi, have a problem with ALC236 on Miix 720. This revision (0x100002) is on AppleALC Supported codec table and the kext works.

 

However there is no audio output via the speaker though I can adjust the volume level.

But when headphone is plugged in, the audio output is normal and the switch works well. (Found CodecCommander not needed for headphone)

 

Then I followed EMlyDinEsH's guide "Complete AppleHDA Patching Guide" and exported my codec_dump.txt and analyze. I thought there may be problems related to EAPD and tried commands with hda-verb with CodecComander but failed.

 

Can you help me with this? And 

 

Another question, I injected the Audio ID with Clover and Intel HD Audio (Kaby Lake) also have an "Audio ID :11", so should I change to inject it with dsdt for individual ID?

 

post-1387158-0-76001900-1498926172_thumb.png

codec#0.txt

Link to comment
Share on other sites

there is bunk of layouts for ALC887 = layout 1, 2, 3, 5, 7, 11, 13, 17, 18, 33, 99 

 

11 ,13,17 are mine 

suggestion try all wich suites you best till , if none works I'm here 

 

 

Tried 11 work fine now but with gainless. There's no sound assertion since I've changed the HDEF DSDT patch. Also there's no Intel High Definition Audio under System Profiler/ Hardware/ Audio! Will try to install again Mavericks because it was the main problem for me, because it load but only no sound, even if all appears to be working, on the top Bar icon is enabler, volume bar also I can volume Up/Down but no sound!

Link to comment
Share on other sites

Tried 11 work fine now but with gainless. There's no sound assertion since I've changed the HDEF DSDT patch. Also there's no Intel High Definition Audio under System Profiler/ Hardware/ Audio! Will try to install again Mavericks because it was the main problem for me, because it load but only no sound, even if all appears to be working, on the top Bar icon is enabler, volume bar also I can volume Up/Down but no sound!

layout 11 , im using it , no issue with AppleALC 

probably AppleHDA not loaded 

use kextstat 

kextstat | grep -y hda
  • Like 2
Link to comment
Share on other sites

Hello

i have AppleALC on my ASUS ROG G752VM with 10.12.5 installed.

 

Codec 668

 

ID = 3
Intern Speaker Left and Right = Works
Intern Subwoofer = No Works
Intern Mic = Works
Extern headphone = No Works
Extern Mic = No Works
Line-In = No Works

ID=20
nothing works

ID = 28
Intern Speaker Left and Right = Works
Intern Subwoofer = Works
Intern Mic = Works
Extern headphone = No Works
Extern Mic = No Works
Line-in = No Works

ID = 29
Intern Speaker Left and Right = Works
Intern Subwoofer = No Works
Intern Mic = Works
Extern headphone = No Works
Extern Mic = No Works
Line-in = Works

Have voodoohda tested and all outputs and inputs works.
You can dump it and install it in the AppleAlc?

ID28_Info.plist.zip

Link to comment
Share on other sites

New layout (layout-id 72) for Dell XPS 9560 ALC298. Required to use my "Combo Jack Notification" program for perfect audio on the XPS 9560. (Details: http://www.insanelymac.com/forum/topic/324366-dell-xps-15-9560-4k-touch-1tb-ssd-32gb-ram-100-adobergb​/?p=2458025)

 

It would be awesome if this could be added to AppleALC.

 

Added. 

  • Like 1
Link to comment
Share on other sites

Thanks!

 

Maybe I should mention this: The "VerbStub" program (kext + command line utility) in the post I linked is not specific to my machine, though it's currently compiled to target 10.12. It is as pure a port of "hda-verb" from Linux as I could get, and it does nothing other than allow direct verb manipulation in the same way as hda-verb. It can also be integrated into programs like the Combo Jack program I made to accompany it. Essentially, it's meant to allow porting of Linux drivers for codecs that can't be 100% fixed by patching Apple kexts, like those that require custom processing coefficients (like the ALC298, and pretty much anything in "patch-realtek.c").

Link to comment
Share on other sites

The microphone does not work, so does SIRI, too. It seems that all you have thrown, configured in the config, and so on, but it did not work. Tell me how to decide?

Codec - 

laptop asus gl552vw

Conexant CX20751/20752

layout - 28

Бета 10.12.6 (16G24b)

Last login: Thu Jul  6 21:55:51 on ttys000
fenders-MBP:~ fender$ /Users/fender/Downloads/Codec-Info.command ; exit;
HDEF@1F,3 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Layout, hex: 0x00000003 , dec: 3

PinConfigurations:
104021012000179030908101f001f0404000a090e0005628

Codecs Found: 2
HDA:
0 CodecAddress:0x0
VendorID: 0x14f1510f
RevisionID: 0x100100
CodecID: 351359247
Revision(dec):=1048832
Id=0x510f
Id(dec)=20751
Vendor=0x14f1
Vendor(dec)=5361

File Doesn't Exist, Will Create: /Users/fender/Desktop/Info.plist
/Users/fender/Downloads/Codec-Info.command: line 127: ((: 510f: value too great for base (error token is "510f")
HDMI:
1 CodecAddress:0x2
VendorID: 0xffffffff80862809
RevisionID: 0x100000
CodecID: -2138691575

logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Процесс завершен]

fender’s MacBook Pro 2.zip

CLOVER.zip

Link to comment
Share on other sites

PS: who know everything is possible in development  :thumbsup_anim:

Of course!

But some things require more time and study.

So far things revolve around ALC298 Let's see how this will work for other codecs.

  • Like 1
Link to comment
Share on other sites

Hi! i'm trying to add support to my codec (VIA VT1708B).

 

I followed the wiki step by step, added the folder in Resources with the inflo.plist, layout and platforms files.

 

Everything is fine until there but then when i try to build the kext on Xcode i get 3 errors about "Semantic Issue" in the file kern_start.cpp. 

It's complain about "Use of undeclared identifier 'arrsize' " on 3 lines under this section "PluginConfiguration ADDPR(config)  { "

 

Am i doing something wrong or missing something? I didn't edit the files in the AppleALC  folder, just added my codecs folder in Resources. 

Any help is welcome! 

Link to comment
Share on other sites

Hi! i'm trying to add support to my codec (VIA VT1708B).

 

I followed the wiki step by step, added the folder in Resources with the inflo.plist, layout and platforms files.

 

Everything is fine until there but then when i try to build the kext on Xcode i get 3 errors about "Semantic Issue" in the file kern_start.cpp. 

It's complain about "Use of undeclared identifier 'arrsize' " on 3 lines under this section "PluginConfiguration ADDPR(config)  { "

 

Am i doing something wrong or missing something? I didn't edit the files in the AppleALC  folder, just added my codecs folder in Resources. 

 

Any help is welcome! 

 

Compile latest Debug version of Lilu.kext and add it in AppleALC folder

Link to comment
Share on other sites

Hello friends, we are currently trying a new codec ALC262 for HP Z800 / Z600.

This codec works 100% with patched AppleHDA.
Same codec now in AppleALC and Lilu ---> no sound.
I myself have no HP Z800 / Z600. The users report, if additionally CodecCommander.kext, then sound 100% with AppleALC and Lilu.
I have no experience with CodecCommander.kext.
I can not find the error. :wallbash:  :wallbash:  :wallbash:
Someone an idea?
 
  • Like 1
Link to comment
Share on other sites

Hello @vit9696, just a question:

I'm using AppleALC v1.1.3 and Lilu v1.1.5 on El Capitan 10.11.6 (15G1611). But on verbose logs during boot process I got messages looks like..

...
Lilu "can not find codec for this platform: AppleIntelKBL*..." //or something like that

Ofc I could simply ignore it and my Audio just works. But how to remove this message since there's still no KabyLake Graphics support yet under 10.11.x?

Thanks.  :)

Link to comment
Share on other sites

I have already removed some messages from showing by default in release builds, could imagine this one to be added as well.

Please provide an exact message you see :)

(Sorry for long wait, need to use dbg version for logs report)

My bad, it's failed messages related to "Lilu" and not AppleALC. Gotta these using: "cat /var/log/system.log | grep Lilu"

Badruzeus-MBP:~ badruzeus$ cat /var/log/system.log | grep Lilu
Jul 20 19:21:10 localhost kernel[0]: calling mpo_policy_init for Lilu
Jul 20 19:21:10 localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.1.5 DEBUG build (Lilu)
Jul 20 19:21:10 localhost kernel[0]: Lilu: patcher @ failed to init MachInfo for com.apple.driver.AppleIntelKBLGraphicsFramebuffer
Jul 20 19:21:10 localhost kernel[0]: Lilu: api @ failed to load com.apple.driver.AppleIntelKBLGraphicsFramebuffer kext file
Badruzeus-MBP:~ badruzeus$ 

Lilu v1.1.5 on El Capitan 10.11.6 (15G1611). Thanks again.  :) 

Link to comment
Share on other sites

Alright, I applied a change to make the logging less confusing by default. Here it is:

https://github.com/vit9696/Lilu/commit/9a8507d1c8f58dc071c4bc76dc69026e56062fab

 

Feel free to give it a try ;)

Great! it has gone. Here's waiting for a new updated release.  :thumbsup_anim: Many thanks.

Badruzeus-MBP:~ badruzeus$ cat /var/log/system.log | grep Lilu
Jul 20 20:05:12 localhost kernel[0]: calling mpo_policy_init for Lilu
Jul 20 20:05:12 localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.1.6 DEBUG build (Lilu)
Badruzeus-MBP:~ badruzeus$ kextstat | grep Lilu
   23    1 0xffffff7f82cda000 0x4e000    0x4e000    as.vit9696.Lilu (1.1.6) CB19F8FE-DFE3-3067-BB54-7C9A1F66DE55 <7 5 4 3 2 1>
Badruzeus-MBP:~ badruzeus$ 
Link to comment
Share on other sites

Have you tried selecting Internal Speakers? Does it work in this case?

 

post-1303722-0-70798600-1500709634_thumb.png

 

Also, for AppleALC to work, you need the vanilla (untouched) version of the AppleHDA.kext. So, if you tried other patches before, you most likely patched that kext, so you need to get the vanilla AppleHDA kext back. There are a few ways to accomplish that. 

 

 

I've got the same codec and no issues using AppleALC.kext. 

Link to comment
Share on other sites

I tried every option in the Sound Preferences but didn't get any sound. The ApoleHDA is untouched because it is an fresh install.

 

Ok, then we're on the right track.

 

Did you try adding Layout ID 1 in your Clover config?

 

post-1303722-0-24369600-1500713964_thumb.png

 

Is the AppleALC kext in Clover/kexts/10.1X (or better in the Other folder)? Is it loaded on startup?

 

Can you post your boot.log?

 

Are you using macOS 10.13? If so, you need two boot flags:

-alcbeta
-lilubeta

Also, you need both AppleALC.kext AND Lilu.kext. I hope you didn't add only AppleALC cause that's not gonna work on its own (at least not in more recent versions). It depends on Lilu.kext

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...