Jump to content

AppleALC — dynamic AppleHDA patching


vit9696
5,371 posts in this topic

Recommended Posts

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
Link to comment
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.

Link to comment
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.

Link to comment
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.

 

 

 

Link to comment
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

  • Like 1
Link to comment
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

Link to comment
Share on other sites

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
Link to comment
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!

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

With new generation AppleALC-1.2.6 (that only works with Lilu.kext) and High Sierra I don't have Intel High Definition Audio any more though there is a sound as expected. I attach screenshots of 10.12.6 with older AppleALC.kext (also attached) and the ones of 10.13.4 with AppleALC.kext-1.2.6 Is this normal? And what potentially could be the cause?

 

 

 

 

10.12.6-1.png

10.12.6-2.png

10.13.4-1.png

10.13.4-2.png

AppleALC-working.kext.zip

Edited by Reinekis
Link to comment
Share on other sites

@iammask

 

Zero info, no help!

 

Hardware? Software?
Which changes? CodecCommander new? AppleALC or Lilu new? Clover new?
Comparison before / after?

 

For example:
With Cloverversion and version of AppleALC / Lilu the internal mic worked very well.
Since version ... (?) Internal mic no longer works.

 

I do not understand such questions.

Link to comment
Share on other sites

On 5/30/2018 at 6:04 PM, MacPeet said:

@iammask

 

Zero info, no help!

 

Hardware? Software?
Which changes? CodecCommander new? AppleALC or Lilu new? Clover new?
Comparison before / after?

 

For example:
With Cloverversion and version of AppleALC / Lilu the internal mic worked very well.
Since version ... (?) Internal mic no longer works.

 

I do not understand such questions.

hp ab522tx

10.12.6

applealc and lilu

clover 4444

i don't know after which update it got like this.

in earphones,mic is working but internal mic is not working

Link to comment
Share on other sites

×
×
  • Create New...