Jump to content

AppleALC — dynamic AppleHDA patching


vit9696
5,390 posts in this topic

Recommended Posts

Sorry but i don't know. I have same issue on Acer Swift 3 with single Intel HD620 and without discrette graphics at all. 

 

Even without necessary inject it should be in ioreg as secondary device in HDEF!!! But in this case it is absent. There is no dedicated HDAU device on Skylake/Kaby Lake. 

For HDMI audio to work on mobile platforms, fake the Skylake device ID (0x9D70) using FakePCIID. For some reason, the Kaby Lake device ID breaks HDMI audio.

  • Like 1
Link to comment
Share on other sites

I'm getting busy timeout kextd wait: ACPI_SMC_Platformplugin, IntelFBClientControl, AppleIntelFrameBuffer, IOHDACodenFunction

Can not boot.

 

Mine is Realtek ALC269 @ Intel Lynx Point PCH - High definition Audio Controller [C-2]. I'm guessing it's VC V2

Inject layout-id 7

Can somebody help me ?

apply FixHPET_0010 patch from clover

  • Like 1
Link to comment
Share on other sites

For HDMI audio to work, fake the Skylake device ID (0x9D70) using FakePCIID. For some reason, the Kaby Lake device ID breaks HDMI audio.

 

Working native HDMI on Kaby Lake Laptop WITHOUT FakePCIID or something else. So 0x9D71 works like a charm. Not needed connector-type patch with ig-platform-id 0x59160000. It already have 00080000 connector on 0x6 port. 

The only thing is IOHDACodecDevice@1F,3,2 (HDMI audio) appears ONLY after plugging HDMI cable.

post-1069282-0-57921500-1505155376_thumb.png

Link to comment
Share on other sites

Working native HDMI on Kaby Lake Laptop WITHOUT FakePCIID or something else. So 0x9D71 works like a charm. Not needed connector-type patch with ig-platform-id 0x59160000. It already have 00080000 connector on 0x6 port. 

The only thing is IOHDACodecDevice@1F,3,2 (HDMI audio) appears ONLY after plugging HDMI cable.

attachicon.gifСнимок экрана 2017-09-11 в 21.45.41.png

Sorry, I should've clarified, I meant for some non-native mobile platforms (such as HM175), where faking 0xA171 (unsupported) to 0xA170 enables analog audio (speakers/headphones/etc), but does not enable HDMI audio (either with FakePCIID or latest AppleALC patches). Faking to 0x9D70 does enable HDMI audio.

  • Like 1
Link to comment
Share on other sites

hello @vandroiy2012

 
can you please added the new codec layout ID 11 ALC889 for Medion P4020 D (AllinOne Laptop technology) or compatible
 
 
everything works well
 
post-1358580-0-46425700-1505392271_thumb.png
 
Output´s: internal Speaker and HP with SwitchMode
Input´s: internal Mic, LineIn back blue
 
many thanks
  • Like 1
Link to comment
Share on other sites

Hi!


 


I'm sturggling to enable sound on my Lenovo B590 laptop. 


 


1. Lenovo B590


2. Realtek ALC269VC, Vendor Id: 0x10ec0269, Revision Id: 0x100202


3. Tried all from Wiki, but none works.


4. macOS 10.12.6


 


I think there is problem with setting correct layout-id.


 


Log messages.


 


$ log show --predicate 'process == "kernel" AND (eventMessage CONTAINS "AppleALC" OR eventMessage CONTAINS "Lilu")' --style syslog --source


Skipping info and debug messages, pass --info and/or --debug to include.


Filtering the log data using "process == "kernel" AND (eventMessage CONTAINS "AppleALC" OR eventMessage CONTAINS "Lilu")"


Timestamp                       (process)[PID]    


2017-09-14 13:23:51.714340+0300  localhost kernel[0]: calling mpo_policy_init for Lilu


2017-09-14 13:23:51.714341+0300  localhost kernel[0]: calling mpo_policy_initbsd for Lilu


2017-09-14 13:23:51.714345+0300  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.1.7 (Lilu)


2017-09-14 13:25:08.671713+0300  localhost kernel[0]: calling mpo_policy_init for Lilu


{repeating ... }


2017-09-14 14:30:56.786239+0300  localhost kernel[0]: (AppleALC) AppleALC: alc @ layout-id was not provided by controller at HDEF


2017-09-14 14:30:56.786261+0300  localhost kernel[0]: (AppleALC) AppleALC: alc @ layout-id was not provided by controller at HDEF


2017-09-14 14:33:49.673145+0300  localhost kernel[0]: calling mpo_policy_init for Lilu


2017-09-14 14:33:49.673148+0300  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.1.7 (Lilu)


 



$ bdmesg | grep HDA


1:948  0:000  Audio HDA (addr:0x1B0000) setting specified layout-id=13 (0xD)


 

As you can see in attached file, i'm injecting layout-id = 28, but it still shows 13 in ioreg.

 

Do I need to mess with DSDT or .. ? What could you suggest?

 

P.S. Realtek ALC269VC, Vendor Id: 0x10ec0269, Revision Id: 0x100202 is this device supported by AppleALC.kext ?

 

Thanks!

 

 

 


 


 


CodecIoregConfig.zip

Link to comment
Share on other sites

As you can see in attached file, i'm injecting layout-id = 28, but it still shows 13 in ioreg.

 

DSDT has priority before Clover config.

LayoutID 13 is probably configured in the DSDT (HDEF).
You have 28 in Clover's config?
Link to comment
Share on other sites

 

DSDT has priority before Clover config.

LayoutID 13 is probably configured in the DSDT (HDEF).
You have 28 in Clover's config?

 

 

Ups! Sorry, layout-id is injected correctly, but still no sound :(

 

Can you check if "Realtek ALC269VC, Vendor Id: 0x10ec0269, Revision Id: 0x100202" is supported by AppleALC.kext ? And which layout-id is correct for such device?

Link to comment
Share on other sites

You probably use a DSDT with LayoutID 13.

You must change the LayoutID in the DSDT and not in the Clover.
 
No idea what is right for your device.
You need to make a codec_dump with a Linux_Live, then we're smarter.
Link to comment
Share on other sites

LayoutIDs 28, 29, and 40 are configured for lenovo.

Also try LayoutID 3!

If you use a DSDT, you have to change the LayoutID there, not in the Clover!

 

You also have AppleALC-kext and Lilu.kext in your Clover-Kext folder?

Link to comment
Share on other sites

LayoutIDs 28, 29, and 40 are configured for lenovo.

Also try LayoutID 3!

If you use a DSDT, you have to change the LayoutID there, not in the Clover!

 

You also have AppleALC-kext and Lilu.kext in your Clover-Kext folder?

Yes, I have AppleALC.kext, Lilu.kext in Clover kexts Other folder.

 

Clover Audio Inject layout ID 3, 28, 29 or 40 do not work with clover.

 

Will try DSDT tomorrow.

Link to comment
Share on other sites

Quote: Yes, I have AppleALC.kext, Lilu.kext in Clover kexts Other folder.

 

KextInject in the Clover also on "YES"? Is FixHDA selected in the Clover?

 

Quote: Clover Audio Inject layout ID 3, 28, 29 or 40 do not work with clover.

 

The LayoutID Inject has no meaning in Clover, if the LayoutID 13 is injected in the DSDT.

Link to comment
Share on other sites

KextInject in the Clover also on "YES"?

 

Yes.

 

Is FixHDA selected in the Clover?

 

Yes.

 

The LayoutID Inject has no meaning in Clover, if the LayoutID 13 is injected in the DSDT.

 

Removed Clover / Device / Audio / Inject and set layout-id via DSDT by patching DSDT with all Ids - 3, 28, 29, 40. None works :(

Must be unsupported version of ALC269 by AppleALC.

 

--

 

VoodooHDA.kext + AppleHDADisabler.kext works on Lenovo B590 (speakers, mic fine). 

Link to comment
Share on other sites

Check out the following settings:
Are there any AppleHDA related KextsToPatch-Entries in your Clover config.plist? 

If yes, disable or delete them.

 

Check your "System Information" within "Software"->"Extensions".
Wait until the list is shown then click on the column called "Obtained from" until the list is shown sorted by the highst letter, which should be "Indentified Developer".
If there are entries like "Unknown" or "Not signed", create a screenshot and post it as a file attachment.
Could be, that some of your older attempts still has a kext left, which might interfere.
Link to comment
Share on other sites

All KextsToPatch entries are disabled. None of them are in use.

"System Information" within "Software"->"Extensions" attached to post.


Thanks for support.

 

I have managed to solve the issue. Had to force to load kexts AppleALC and Lilu.

Had to set SystemParameters > InjectKexts > to boolean <true>, I had string <Detect>.

 

Will test all layout-ids which is the best for my audio (Lenovo B590, Realtek ALC269VC, Vendor Id: 0x10ec0269, Revision Id: 0x100202).

 

layout-id - 28

 

Internal speakers work;

External speakers work;

Internal mic works;

 

Looks like everything rocks!

post-1672074-0-04092800-1505483466_thumb.png

  • Like 1
Link to comment
Share on other sites

That sounds great...  :thumbsup_anim:

 

You should also consider to put those "Not signed"-kexts shown in your screenshot to /EFI/CLOVER/kexts/Other, or /"OSX Version", to make sure, there are also available and used if you have to boot into your Recovery HD... 

Move them from /Library/Extensions or /System/Library/Extensions and use the Tool "Kext Utility" afterwards...

If no more "Not signed"-Kext is visible in System Information, you can consider your built as vanilla.

Link to comment
Share on other sites

Hi Everyone,

 

I'm using DAC connected via optical cable and for some reason max sampling frequency is 96khz instead 192khz. Under windows I can use 24/192 and it work just fine. Does anyone know whether 24bit/192khz are supported by macOS and AppleALC or not? Is this mater of configuration or something I can do?

 

Mainboad I use is:  ASUS H97M-Plus (Sound Codec: ALC887, layout 99).

Kexts I use are: AppleALC.kext v1.1.4, Lilu.kext v1.1.7, RehabMan-CodecCommander-2017-0501

Symbios used iMac 15.1.

 

Kind Regards

Link to comment
Share on other sites

×
×
  • Create New...