Jump to content
vit9696

AppleALC — dynamic AppleHDA patching

3,386 posts in this topic

Recommended Posts

Got an Gigabyte Aorus 7 Z370

 

ID 1 or 11 Works but only in line out (Black) or Front Audio Plug (Green) of the case.

 

is there a Solution for the Green rear?

Share this post


Link to post
Share on other sites
Advertisement
18 hours ago, kaneske said:

is there a Solution for the Green rear?

Audio ID: 1 only; front panel green mutes motherboard green, remove front panel headphones/speakers

If System Preferences/Sound/Output says Headphones with nothing plugged to front panel green, front panel hardware problem. Unplug front panel motherboard connector and replace/repair front panel.

Share this post


Link to post
Share on other sites
Posted (edited)
5 hours ago, toleda said:

Audio ID: 1 only; front panel green mutes motherboard green, remove front panel headphones/speakers

If System Preferences/Sound/Output says Headphones with nothing plugged to front panel green, front panel hardware problem. Unplug front panel motherboard connector and replace/repair front panel.

Ok, Thank you for reply.

 

tried ID 1, no change even with unplugged Front Audio connector.

 

Windows recognizes all Ports correct...

Edited by kaneske

Share this post


Link to post
Share on other sites
8 hours ago, kaneske said:

tried ID 1, no change even with unplugged Front Audio connector.

Windows recognizes all Ports correct...

Does  System Preferences/Sound/Output show "Internal Speakers" or "Headphones?"

Windows audio is not relevant

Share this post


Link to post
Share on other sites
Posted (edited)
1 hour ago, toleda said:

Does  System Preferences/Sound/Output show "Internal Speakers" or "Headphones?"

Windows audio is not relevant

 

It says Headphones with disconnected front panel and nothing connected to the rear port

 

EDIT:

When plugged in into Port on rear Panel, it says Headphones, even with disconnected front panel Cable on Motherboard.

 

Using Port n, as Gigabyte says to use for an 2 Speaker Connection.

 

 

 

image.thumb.png.dda3d6fafda6496fb56afa261c11e07c.png

image.thumb.png.8d53c3c2c85aadadf9567babc136792c.png

 

 

Edit Edit:

 

Plugged Front Panel in back, and my Speakers in there now it say internal Speakers in Preferences and plays Sound, but only if I am plugged into Front, nothing to hear if I plug it in the rear Audio Port.

Edited by kaneske
New knowledge...

Share this post


Link to post
Share on other sites

 @vit9696   @vandroiy2012

 

I still have the problem with my Optiplex780 codec AD1984A anlaog audio.
Since the beta's 10.13.4 AppleALC / Lilu is no longer working for AD1984A. Only HDMI-Audio HD5450.
With rollback vanilla AppleHDA from 10.13.3 everything works.
Vanilla AppleHDA's since 10.13.4 beta's are not working anymore.
I can not find the mistake.

Can you help?

 

alc_lilu_dbg.txt

Share this post


Link to post
Share on other sites
1 hour ago, MacPeet said:

 @vit9696   @vandroiy2012

 

I still have the problem with my Optiplex780 codec AD1984A anlaog audio.
Since the beta's 10.13.4 AppleALC / Lilu is no longer working for AD1984A. Only HDMI-Audio HD5450.
With rollback vanilla AppleHDA from 10.13.3 everything works.
Vanilla AppleHDA's since 10.13.4 beta's are not working anymore.
I can not find the mistake.

Can you help?

 

alc_lilu_dbg.txt

 

Hi. 

Provide IOReg with 10.13.3 and 10.13.4 AppleHDA. 

Share this post


Link to post
Share on other sites
Posted (edited)

I do not have 10.13.4 anymore


I can not upload the ioreg's.
The forum software refuses to upload the ioreg's.
Both as ZIP only 3.5MB. Error of forum software?

 

currently 10.13.5 dp4

 

with vanilla AppleHDA only HDMI, HDEF in the ioreg empty

 

10_13.5_vanillaHDA.png.d8a83db51f58e19261d41ac0de2f34ad.png  ioreg_10_13.5HDA_HDEF.png.6cea065da7df16a1542be57e54c58a69.png

 

with rollback on AppleHDA 10.13.3 everything works again

 

10_13.5_rollbackHDA_10_13.3.png.dc0187603d96bcbdc57b02024678d178.png   ioreg_rollbackHDA_10_13.3.thumb.png.25ae19c45c02b38cabf86c8b7be1648f.png

 

The problem has remained the same since the first beta's 10.13.4

 

Log with rollback:

alc_lilu_dbg_rollback.txt

The log is different:

1.thumb.png.cc66d52b545bce8fcc720dc43fcff93c.png

 

2.thumb.png.f0867f5b8afe6aa58f19cac9e4352edf.png

 

 

 

Error 200?159893311_.png.4fc478f05fbf979a9bc0125e702297d1.png

 

Edited by MacPeet

Share this post


Link to post
Share on other sites

no
only the updates via Appstore
I try later. I am now on the road until Sunday. Later then more ...
Thank you until then.

Share this post


Link to post
Share on other sites

same issue with clean install as i happen to have similar issue with HP elitedesk 800g1 according to HP it is Realtek 2-channel ALC221 codec using layout id 11. it stopped working in 10.13.4 i have not bothered to roll back applehda as i rather have it work with current one. at the moment it is running on VoodooHDA.

Share this post


Link to post
Share on other sites
On 5/8/2018 at 1:37 PM, kaneske said:

Plugged Front Panel in back, and my Speakers in there now it say internal Speakers in Preferences and plays Sound, but only if I am plugged into Front, nothing to hear if I plug it in the rear Audio Port.

Apologies for the delay ion replying. Hardware problem, the front panel green connector is damaged.  Pin detect is correct until you plug something in. It sets and remains set when the something is removed.

Share this post


Link to post
Share on other sites

Hi,

 

I am having troubles to get audio work through ALC883 (audio through HDMI works).

 

My specs:

GA-965P-S3 rev1

Audio Realtek ALC883

Audio device: 0x8086284B

Sub device: 0x1458A002

Codec ID: 0x10EC0883

Revision: 0x0002

 

layout: severals 1, 3, 5, 7, 9 (clover injection), actual 7

 

Kexts: 

Lilu 1.2.3

applealc 1.2.6

 

boot.log with arguments -alcdbug -liludebug. Applealc no appear.

Quote

May 17 22:49:01 localhost kernel[0]: calling mpo_policy_init for Lilu
May 17 22:49:01 localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.2 (Lilu)
May 17 22:49:01 localhost kernel[0]: Lilu: patcher @ failed to init MachInfo for com.apple.driver.AppleIntelKBLGraphicsFramebuffer
May 17 22:49:01 localhost kernel[0]: Lilu:     api @ failed to load com.apple.driver.AppleIntelKBLGraphicsFramebuffer kext file
May 17 22:49:01 localhost kernel[0]: Lilu: patcher @ failed to init MachInfo for com.apple.kext.AMDRadeonX4100
May 17 22:49:01 localhost kernel[0]: Lilu:     api @ failed to load com.apple.kext.AMDRadeonX4100 kext file
May 17 22:49:01 localhost kernel[0]: Lilu: patcher @ failed to init MachInfo for com.apple.kext.AMDRadeonX4150
May 17 22:49:01 localhost kernel[0]: Lilu:     api @ failed to load com.apple.kext.AMDRadeonX4150 kext file
May 17 22:49:01 localhost kernel[0]: Lilu: patcher @ failed to init MachInfo for com.apple.kext.AMDRadeonX4200
May 17 22:49:01 localhost kernel[0]: Lilu:     api @ failed to load com.apple.kext.AMDRadeonX4200 kext file
May 17 22:49:01 localhost kernel[0]: Lilu: patcher @ failed to init MachInfo for com.apple.kext.AMDRadeonX4250
May 17 22:49:01 localhost kernel[0]: Lilu:     api @ failed to load com.apple.kext.AMDRadeonX4250 kext file
May 17 22:49:01 localhost kernel[0]: Lilu: patcher @ failed to init MachInfo for com.apple.kext.AMDRadeonX5000
May 17 22:49:01 localhost kernel[0]: Lilu:     api @ failed to load com.apple.kext.AMDRadeonX5000 kext file
May 17 22:49:01 localhost kernel[0]: Lilu: patcher @ failed to init MachInfo for com.apple.kext.AMDFramebuffer
May 17 22:49:01 localhost kernel[0]: Lilu:     api @ failed to load com.apple.kext.AMDFramebuffer kext file
May 17 22:49:01 localhost kernel[0]: Lilu: patcher @ failed to init MachInfo for com.apple.kext.AMDLegacyFramebuffer
May 17 22:49:01 localhost kernel[0]: Lilu:     api @ failed to load com.apple.kext.AMDLegacyFramebuffer kext file
May 17 22:49:01 localhost kernel[0]: Lilu: patcher @ failed to init MachInfo for com.apple.kext.AMDLegacySupport
May 17 22:49:01 localhost kernel[0]: Lilu:     api @ failed to load com.apple.kext.AMDLegacySupport kext file
May 17 22:49:05 localhost kernel[0]: Lilu: patcher @ lookup patching applied only 0 patches out of 2

 

HDEF dsdt:

Quote

 

            Device (HDEF)
            {
                Name (_ADR, 0x001B0000)
                Method (_DSM, 4, NotSerialized)
                {
                    If (LEqual (Arg2, Zero))
                    {
                        Return (Buffer (One)
                        {
                            0x03
                        })
                    }

                    Return (Package (0x10)
                    {
                        "AAPL,slot-name", 
                        "Built In", 
                        "name", 
                        "Audio Controller", 
                        "model", 
                        Buffer (0x27)
                        {
                            "Apple High Definition Audio Controller"
                        }, 

                        "device_type", 
                        Buffer (0x11)
                        {
                            "Audio Controller"
                        }, 

                        "layout-id", 
                        Buffer (0x04)
                        {
                            0x01, 0x00, 0x00, 0x00
                        }, 

                        "MaximumBootBeepVolume", 
                        Buffer (One)
                        {
                            0x01
                        }, 

                        "PinConfigurations", 
                        Buffer (Zero) {}, 
                        "hda-gfx", 
                        Buffer (0x0A)
                        {
                            "onboard-1"
                        }
                    })
                }
            }

 

 

Info.plist

 

Could anybody help me to meek it works?

 

Thanks in advance, regards.

 

 

 

Share this post


Link to post
Share on other sites

hello @vandroiy2012

 

No success with CleanInstall Release 10.13.4 and the AD1984A problem.
With rollback AppleHDA 10.13.3 everything works.
Without the rollback no success.

 

 

and…

 

I have a new codec.

 

ALC233 - LayoutID32 (20) for ASUS VIVOBOOK S301LA or compatible

 

Resources_new_for_ASUS_VIVOBOOK_S301LA_LayoutID32 .zip

 

can you please added the new codec?
 
many thanks

Share this post


Link to post
Share on other sites
15 hours ago, Andrey1970 said:

329913200_2018-05-182_24_55.png.35248057d891cf18cc6d2fbdfff23fc9.png

 

Thanks a lot, it solve the problem. For any reason I though they were in last version. 

 

Regards,

Share this post


Link to post
Share on other sites

my codec is Realtek ALC891 ,i use inject id 13 , the microphone isn't working . can anyone helps me?

the files is codec dump.

alc891.zip

Share this post


Link to post
Share on other sites

I am having issues with my laptop that uses Realtek ALC898

 

1. Model == MSI GL62M 7REX

2. Realtek ALC898

3. Layout 13 (Mic works and switches properly between internal and when 'line in' is connected), no audio (Internal Speakers present but doesn't work)

I have tried other layouts, 7 has working audio both internal speakers and line in, but there is no switching. No mic on 7

 

4. Currently running High Sierra 10.13.4

5.Uploaded Info.plist

Info.plist

Share this post


Link to post
Share on other sites
Posted (edited)

Is there a chance that a PCIe-Card with ACL898 can be run with this kext?

What i tried so far...

 

 

I) Normal installation

I installed AppleALC + Lilu in Clover and injected every LayoutIDs that are shown in the wiki, but it did not work out.

 

II) Modifying Plist

Then I tried to change the plist of the kext to match my card, but also without success.

<key>IOPCIPrimaryMatch</key>
<string>0x00121102</string>

 

III) Editing SourceCode and compiling myself

After seeing "unsupported hdef vendor" in the logs, thought i might change the sourcecode to disable the check for the intel-vendorID. This didn't work out either and the whole kext is too complex for me to understand since i am no experienced osx/c++ dev.

However at least i was successful in compiling the kext.

May 21 09:21:28 localhost kernel[0]: AppleALC:   audio @ (DBG) corrects analog audio for hdef at pci1102,12 with 1102:0012
May 21 09:21:28 localhost kernel[0]: AppleALC:   audio @ (DBG) unsupported hdef vendor
May 21 09:21:28 localhost kernel[0]: AppleALC:     alc @ (DBG) failed to find a suitable codec, we have nothing to do
May 21 09:21:28 localhost kernel[0]: AppleALC:     alc @ (DBG) missing ControllerModInfo for 0 controller
May 21 09:21:28 localhost kernel[0]: AppleALC:     alc @ (DBG) missing ControllerModInfo for 1 controller

 

Does anyone have an idea what i could do to make this work? Again the realtek-chip ACL898 should work with AppleALC, but i think it does not because of either is not declared as HDEF device for the system and/or because the kext does not check the pcie bus for devices.

 

Card is a Creative Sound Blaster Audigy FX.

Log and Codec-Dump is attached.

 

Regards

Typhoon

 

1954045580_Bildschirmfoto2018-05-14um02_15_53.thumb.png.f35d9998b47b37e22b68fdef64861624.png

Bildschirmfoto 2018-05-14 um 02.24.37.png

codec_dump.txt

appleALC_log.txt

Edited by Typhoon_Master

Share this post


Link to post
Share on other sites
Posted (edited)
39 minutes ago, crusher. said:

use Lilu.kext

Of course i used AppleALC + Lilu together. Sorry for not mentioning, i thought this is obvious. I edited it in the original post.

Edited by Typhoon_Master

Share this post


Link to post
Share on other sites
On 5/16/2018 at 6:06 PM, toleda said:

Apologies for the delay ion replying. Hardware problem, the front panel green connector is damaged.  Pin detect is correct until you plug something in. It sets and remains set when the something is removed.

So, changed whole case to an O11 same issue with nothing changed.

 

I think it is an Driver issue that it routes wrong...can you help me reassign Ports?

 

thanks!

Share this post


Link to post
Share on other sites
Posted (edited)
3 hours ago, kaneske said:

So, changed whole case to an O11 same issue with nothing changed.

I think it is an Driver issue that it routes wrong...can you help me reassign Ports?

The headphone jack mutes motherboard green by design (Intel HD Audio spec/AppleHDA)

To separate front panel green from motherboard green, see Customization.pdf/Procedure 3. Manual Speaker and Headphone Selection or configure a Multi-Output device.

Edited by toleda

Share this post


Link to post
Share on other sites
Posted (edited)

Wow thank you so much! I have been struggling for the past few days trying to figure out how to get my hackintosh speaking. This is incredible! The sound works right after I put the kexts in EFI/CLOVER and reboot.

 

I still have a little problem. The mic is present in System Prefs but it does not pick up anything. Tested with Siri and it didn't record my voice. However, I notice that before installing AppleALC, DPCIManager did not list anything under Codec ID, Codec Name, etc. and then after installing the kexts, it shows up as ALC892, which is the right audio chip for my Clevo PA70HS laptop. See attached screenshots below.

Any ideas how to get the microphone working?

1. Clevo PA70HS / Intel HM175
2. ALC892
3. Layout used with the info what works for you (ideally if you try them all) --> what does this mean?
4. 10.13.4 (17E199)
5. Attached Info.plist 
Info.plistDPCIManager before.png

DPCI Manager after.png

 

Edited by mtuan293

Share this post


Link to post
Share on other sites
Posted (edited)

Ok so I've had working audio with AppleALC and Lilu for quite some time but recently starting headphones on my laptop. When I plug in my headphones (Samsung gs7 headphones) it sounds like there is an echo and underwater. I believe I have alc3236 / alc233. I have tried all layouts and I either get the same result or no output. I can provide files needed later today just let me know what's needed. TIA

 

Edit; Seems this is a DSDT issue, on hold for now.

 

Sent from my SM-G930F using Tapatalk

 

Info.plist.zip

 

 

 

 

Edited by SavageAUS

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×