Jump to content

AppleALC — dynamic AppleHDA patching


vit9696
5,390 posts in this topic

Recommended Posts

1 hour ago, toleda said:

PlatformsT.xml? YES

PinConfigs.kext/Contents/Info.plist? Yes, Item 280

Use 4./Find: 


01171cf0 01171d00 01171e00 01171f40

Never tried PinConfigurator.app; likely does not know pinconfig for 2 wire SPDIF

Edit the existing pinconfig as noted, no need for PinConfigurator.app

disables node 17, node 17 is already disabled:


01771cf0 01771d00 01771e00 01771f40

For the 1150, codec address is 01, use 4. (typo)

Node 15 is not correct, Node 1e is correct, Find


01e71c90 01e71d61 01e71e4b 01e71f01

 

 

Thanks. I got it working last night, but didn't follow up. With a codec dump, using PinConfigurator.app, I reconfigured the PinConfig.kext to match the codec dump and everything is working now. Thanks for the help.

Link to comment
Share on other sites

2 hours ago, toleda said:

Looks like you made a local copy o

 

8 hours ago, IAmHolland said:

 

Why not?

 

Check that you don't have multiple copies of Lilu.kext. v1.3.0 requires a specific version or later. It shows in your kextstat, but it could be an install/setup issue?

 

I have a Gigabyte Z97X-UD7-TH and it works fine for me. There are no source code changes targeting the ALC1150, specifically, in v1.3.0.

 

The only reason it would fail to patch is if there are multiple versions of lilu.

 

The last release of AppleALC is v1.3.5. You're running AppleALC v1.3.6. Where did you get that? Did you build it yourself? Are you using the correct version of Lilu.kext there and did you use the correct version when building AppleALC?

The latest source code for Lilu.kext is 1.3.4, not 1.3.0.
Similarly, the latest source code for AppleALC is 1.3.6. instead of 1.3.5.

I downloaded it with terminal command git clone https://github.com/vit9696/AppleALC.git

You can also get the source, code compiled here. https://github.com/acidanthera/AppleALC/archive/master.zip

 

Check that you don't have multiple copies of Lilu.kext v1.3.0 requires a specific version or later. It shows in your kextstat, but it could be an install/setup issue?

I'mthe latest version. Lilu.kext is 1.3.4

I am not good at English. I use translation.

Thanks for your help

Edited by qutongming
Link to comment
Share on other sites

2 hours ago, toleda said:

1.3.6, AppleALC.kext did not run

Looks like you made a local copy of the AppleALC  repo and removed all Resources/non 1150 codecs, correct?

Why?

Thanks for your help

1.3.6, AppleALC.kext did not run

Terminal View Loaded

1.3.6_004.thumb.png.f67b5f78f502915f64202e98f6d14041.png

IORegistryExplorer View Loaded

AppleALC1.3.6.thumb.png.31028296224c8ea616e6f4a94a46594f.pngAppleALC1.3.6.thumb.png.31028296224c8ea616e6f4a94a46594f.png

Use commands, not copies。   git clone https://github.com/vit9696/AppleALC.git   AppleALC.kex1.3.6 New source code compilation

1001.thumb.png.9651896f5ad29a1f3d3100560b60154d.png

1003.png.ad31f7bb40c0075c9e8febe3ab3e133f.png

1002.thumb.png.291b7cbadf360ee3eec42896d88657ee.png

But try copying 1.2.8_1150 codes

 

Why is 1.0.0 to 1.2.8 okay?

Why ?

Ask for your help

Edited by qutongming
Link to comment
Share on other sites

45 minutes ago, qutongming said:

1.3.6, AppleALC.kext did not run

IORegistryExplorer View Loaded

AppleALC1.3.6.thumb.png.31028296224c8ea616e6f4a94a46594f.pngAppleALC1.3.6.thumb.png.31028296224c8ea616e6f4a94a46594f.png

Use commands, not copies。   git clone https://github.com/vit9696/AppleALC.git   AppleALC.kex1.3.6 New source code compilation

 

1003.png.ad31f7bb40c0075c9e8febe3ab3e133f.png

 

 

An IOReg screenshot is useless, IOReg/File/Save a Copy As ..., attach compressed copy.

Repo: GitHub Desktop/clone, do not copy. Resources file is not complete, user error. 

Xcode/compile is successful, AppleALC.kext is incomplete; does not run, audio failure.

Link to comment
Share on other sites

3 hours ago, toleda said:

An IOReg screenshot is useless, IOReg/File/Save a Copy As ..., attach compressed copy.

Repo: GitHub Desktop/clone, do not copy. Resources file is not complete, user error. 

Xcode/compile is successful, AppleALC.kext is incomplete; does not run, audio failure.

New MacOs Mojave 10.14.3 Installation Today

AppleALC Official Download AppleALC1.3.5

https://github.com/acidanthera/AppleALC/releases

Equipment blank

1137488111_2019-02-221_48_36.thumb.png.df317607276cce4a09ce4d01b86cc6bb.png

161613465_2019-02-221_49_44.png.7b36efeb58e3fc40600e89106ea6bf30.png

817517703_2019-02-221_52_14.thumb.png.7ec2dcaec9ef0dc570ff6ae5d34a57e3.png

 

1.3.5.RELEASE.zip

IOReg file.zip

Edited by qutongming
Link to comment
Share on other sites

4 hours ago, toleda said:

An IOReg screenshot is useless, IOReg/File/Save a Copy As ..., attach compressed copy.

Repo: GitHub Desktop/clone, do not copy. Resources file is not complete, user error. 

Xcode/compile is successful, AppleALC.kext is incomplete; does not run, audio failure.

New MacOs Mojave 10.14.3 Installation Today

AppleALC Official Download AppleALC1.2.8 

https://github.com/acidanthera/AppleALC/releases/download/1.2.8/1.2.8.RELEASE.zip

Delete 1.3.5 and replace 1.2.8

Equipment blank !!!!!
 

AppleALC Official Download AppleALC1.2.8

https://github.com/acidanthera/AppleALC/archive/1.2.8.zip

modify kern_start.cpp

PluginConfiguration ADDPR(config) {
    xStringify(PRODUCT_NAME),
    parseModuleVersion(xStringify(MODULE_VERSION)),
    LiluAPI::AllowNormal | LiluAPI::AllowInstallerRecovery,
    bootargOff,
    arrsize(bootargOff),
    bootargDebug,
    arrsize(bootargDebug),
    bootargBeta,
    arrsize(bootargBeta),
    KernelVersion::MountainLion,
    KernelVersion::HighSierra,     modify Mojave
    []() {
        alc.init();
    }
};

 

Compile AppleALC1.2.8  Everything is perfect.

001.thumb.png.9cc0a6c92ed9abdf955eb940e5eb837b.png

002.thumb.png.5a8a72bc0a89eb61a8f93b7fa93cc39e.png

Why ?

Ask for your help

good 1.2.8_AppleALC.kext.zip

Edited by qutongming
Link to comment
Share on other sites

@qutongming What happens if you use Lilu 1.3.3 and AppleALC 1.3.5? Does it work for you? LayoutID 1 or 7. Cause it works perfectly fine for me with ALC1150.

 

If you wanna try out the exact kexts I'm using, you can find both Lilu and AppleALC attached. Just curious if it works for you.

 

Lilu1.3.3&AppleALC1.3.5.zip

 

Update: looks like Lilu 1.3.4 and AppleALC 1.3.5 combo also works properly here.

Edited by arsradu
Link to comment
Share on other sites

7 hours ago, toleda said:

An IOReg screenshot is useless, IOReg/File/Save a Copy As ..., attach compressed copy.

Repo: GitHub Desktop/clone, do not copy. Resources file is not complete, user error. 

Xcode/compile is successful, AppleALC.kext is incomplete; does not run, audio failure.

Resources file is not complete, user error.

Resources file (Not the 1150 source code problem)That's absolute.

 

(AppleALC  AppleALC.xcodeproj  ResourceConverter)Source code issues

1151880428_2019-02-225_48_46.png.c7f4d8c1f234d52a94fca596e404c63b.png

Link to comment
Share on other sites

1 hour ago, arsradu said:

@qutongming What happens if you use Lilu 1.3.3 and AppleALC 1.3.5? Does it work for you? LayoutID 1 or 7. Cause it works perfectly fine for me with ALC1150.

 

If you wanna try out the exact kexts I'm using, you can find both Lilu and AppleALC attached. Just curious if it works for you.

 

Lilu1.3.3&AppleALC1.3.5.zip

 

Update: looks like Lilu 1.3.4 and AppleALC 1.3.5 combo also works properly here.

Thank you very much for your kind help.

Tested,  Equipment blank

 

1.2.8 and 1.2.7 1.26......Very nice

Lilu 1.3.3 and 1.3.4 1.3.2 No problem

I don't understand English (Using translation)

Edited by qutongming
Link to comment
Share on other sites

48 minutes ago, qutongming said:

Thank you very much for your kind help.

Tested,  Equipment blank

 

1.2.8 and 1.2.7 1.26......Very nice

Lilu 1.3.3 and 1.3.4 1.3.2 No problem

I don't understand English (Using translation)

 

Lilu 1.3.3 and AppleALC 1.3.5 don't work for you? With LayoutID 1 or 7? Could you post your Clover config.plist file for analysis? Don't forget to remove all your private information from SMBIOS, if you have any.

 

Also, make sure you're using the default/vanilla/untouched AppleHDA.kext. If you used other patches before, it would be a good thing to make sure the AppleHDA.kext is the original one.

Edited by arsradu
  • Like 2
Link to comment
Share on other sites

19 hours ago, toleda said:

IOReg shows WhateverGreen has enabled Nvidia HDMI audio

Make and model of the 2 Apple Displays connected to the GTX 650?

Attach an IOReg with a TV connected.

 

That 2 Apple displays are actually not apple displays.

One is Acer K242HYL 1080p LCD monitor and other is LG 43LF5400 42" TV. That IOREG file is taken when both of them connected.

 

Or do you mean i should connect only TV and disconnect monitor and take IOREG file?

 

tnx,

 

Edited by ea dd
Link to comment
Share on other sites

Thanks for all the good work going on here. I am trying to get audio on my laptop fully going and I am almost there.

 

1. Lenovo Thinkpad X1 Carbon 4th gen
2. CX20753_4
3. 3,21,22 using the version of AppleALC from this
 link in this topic

4. 10.13.6, 10.14.3

 

Now, with the version from the link, layout 22, it almost completely works (speakers, internal microphone, headphone jack). There is just one thing that does not work: when I insert a headset into the jack, the microphone does not work, although the switch is detected ('Internal Microphone' changes into 'Line in'). I want to note that the original poster for that version indicated that he does not use the microphone, so perhaps it's not working for his configuration either. As for me, I like FaceTime so I'd like to have the microphone working. I know the headset is fine, I've tested it in linux on the same laptop.

 

I am attaching an ioreg zip and a linux codec dump.

 

X1.ioreg.zip

X1_audiodump_linux.txt

Link to comment
Share on other sites

15 hours ago, arsradu said:

 

Lilu 1.3.3 and AppleALC 1.3.5 don't work for you? With LayoutID 1 or 7? Could you post your Clover config.plist file for analysis? Don't forget to remove all your private information from SMBIOS, if you have any.

 

Also, make sure you're using the default/vanilla/untouched AppleHDA.kext. If you used other patches before, it would be a good thing to make sure the AppleHDA.kext is the original one.

New MacOs Mojave 10.14.3 Installation

Clean system

Main board: GA Z97X-UD3H Ver1.1

BIOS: Z97XUD3H.10b

Sound Card: Realtek ALC 1150

I use Ozmosis.rom.  Clover is not in use

Every test brushes BIOS

LayoutID 1 2 3 5 and 7  Tried one by one。  Brush BIOS 60 times, Installation system 3 times,Installation from 10.14.3MacOS and 10.13.6MacOS 10.14.3MacOS

 

Now used  1.2.8 very good。 LayoutID 1 Injection utilizing DSDT

1365913979_2019-02-239_06_59.thumb.png.4964ca1c3a16606d2a872755eeb23386.png

 

1.3.0 1.3.1 1.3.2 and 1.3.6 Equipment blank

Why?

BIOS, Replace only 1.3.0.  Equipment blank

Edited by qutongming
Link to comment
Share on other sites

3 hours ago, qutongming said:
New MacOs Mojave 10.14.3 Installation
Clean system
Main board: GA Z97X-UD3H Ver1.1
BIOS: Z97XUD3H.10b
Sound Card: Realtek ALC 1150
I use Ozmosis.rom.  Clover is not in use
Every test brushes BIOS
LayoutID 1 2 3 5 and 7  Tried one by one。  Brush BIOS 60 times, Installation system 3 times,Installation from 10.14.3MacOS and 10.13.6MacOS 10.14.3MacOS
 
Now used  1.2.8 very good。 LayoutID 1 Injection utilizing DSDT
1365913979_2019-02-239_06_59.thumb.png.4964ca1c3a16606d2a872755eeb23386.png
 
1.3.0 1.3.1 1.3.2 and 1.3.6 Equipment blank
Why?
BIOS, Replace only 1.3.0.  Equipment blank


Alright. Are you using a patched SSDT/DSDT.aml file? Can you remove it and try without it?

Also, could you upload your EFI/CLOVER folder so we can take a look?

Edited by arsradu
Link to comment
Share on other sites

43 minutes ago, arsradu said:


Alright. Are you using a patched SSDT/DSDT.aml file? Can you remove it and try without it?

Also, could you upload your EFI/CLOVER folder so we can take a look?

I'm sorry 

I didn't use clover to boot

so no EFI/CLOVER folder

I use osmosis to boot

DSDT.zip

Edited by qutongming
Link to comment
Share on other sites

59 minutes ago, qutongming said:

I'm sorry 

I didn't use clover to boot

so no EFI/CLOVER folder

I use osmosis to boot

DSDT.zip

 

I see... :) Well, it might be different with Osmosis. I never used it. But, if you're patching sound via DSDT, I think you might need to remove that and let AppleALC.kext do its job. I'm not an expert with DSDTs, so unfortunately I can't help you with that. But it's usually a good idea not to combine two patches from two different sources. :) 

 

Maybe someone with more experience can take a look at your DSDT and figure out what's wrong there.

Edited by arsradu
  • Like 1
Link to comment
Share on other sites

1 hour ago, qutongming said:

I'm sorry 

I didn't use clover to boot

so no EFI/CLOVER folder

I use osmosis to boot

DSDT.zip

Have you tried VoodooHDA, as that is what is normally used with Ozmosis.

  • Like 1
Link to comment
Share on other sites

10 hours ago, arsradu said:

 

I see... :) Well, it might be different with Osmosis. I never used it. But, if you're patching sound via DSDT, I think you might need to remove that and let AppleALC.kext do its job. I'm not an expert with DSDTs, so unfortunately I can't help you with that. But it's usually a good idea not to combine two patches from two different sources. :) 

 

Maybe someone with more experience can take a look at your DSDT and figure out what's wrong there.

Thank you for your warm-hearted friends.

Official Source Code Issue

MacPro 6.1 is not supported

Support iMac Pro 1.1

Replacement only (IMP11.88Z.0064.B30.1712081714  Mac-7BA5B2D9E42DDD94  iMacPro1,1  iMac Pro)

Change only the configuration of the model  (I use translation)

屏幕快照 2019-02-23 下午8.00.19.png

9 hours ago, STLVNUB said:

Have you tried VoodooHDA, as that is what is normally used with Ozmosis.

Thank you for your warm-hearted friends.

Link to comment
Share on other sites

4 hours ago, qutongming said:

Thank you for your warm-hearted friends.

Official Source Code Issue

MacPro 6.1 is not supported

Support iMac Pro 1.1

Replacement only (IMP11.88Z.0064.B30.1712081714 Mac-7BA5B2D9E42DDD94 iMacPro1,1 iMac Pro)

Change only the configuration of the model (I use translation)

 

Thank you for your warm-hearted friends.

and thank you

Link to comment
Share on other sites

On 2/20/2019 at 10:36 PM, toleda said:

IOReg shows all ALC892 audio devices and working audio for layout 1.

What problem are you trying to solve?

AppleALC.kext_v1.3.6/ALC1150 working for layouts 1, 2 and 3; no source code problems.

Attach IOReg and config.plist

I use translation

Thanks for your help,

Source code issues, 1.3.6 does not support MacPro configuration

2019-02-225_48_46.png.cdec112940847023c0704d78e5242c2e.png

 

 

Support iMacPro 1.1

608490975_2019-02-238_00_19.thumb.png.b959bcc55fcbde6b9a9ba30dcdb65e56.png

Link to comment
Share on other sites

4 hours ago, qutongming said:

I use translation

Thanks for your help,

Source code issues, 1.3.6 does not support MacPro configuration

Support iMacPro 1.1

 

 

It works fine for me with MacPro6,1 SMBIOS, and ALC1150. But I'm using Lilu 1.3.4 and AppleALC 1.3.5 (latest official builds). So it might be different. Also, I'm using Clover, not Osmosis. But if it works for you with iMacPro1,1, then maybe you can use that one instead. I personally had no issues with MacPro6,1. :) 

Link to comment
Share on other sites

 

Thank you for your warm-hearted friends.
I'm sorry, everybody.
It's my configuration problem.

 

Sorry for the author

It's not a code problem

 

 

 

 

4 hours ago, arsradu said:

 

It works fine for me with MacPro6,1 SMBIOS, and ALC1150. But I'm using Lilu 1.3.4 and AppleALC 1.3.5 (latest official builds). So it might be different. Also, I'm using Clover, not Osmosis. But if it works for you with iMacPro1,1, then maybe you can use that one instead. I personally had no issues with MacPro6,1. :) 

Thanks for your help

  • Like 1
Link to comment
Share on other sites

hi all, would someone be able to help? hope i am posting in the right section.

 

im using lilu 134 and applealc 135, applehda should be vanilla HS. hardware are q9550/p5ql-em/gtx1060, sound chipset should be alc1200 (888 legacy?) update: DPCI Manager appears to detect it as ALC888S-VD. i think the layout-id should be 7, i have been trying 1 to 11 without luck.

 

i have been trying to get audio working for past 3 days non stop and im running out of ideas. somehow HDEF and IOHDAcodecdevice 0 to show up, but nothing under iohdacodecdevice 1, i.e no output device for me :(

 

please see attached my config / ioregistry / codec dump from linux if it helps.

 

if require additional info please let me know and i will get back asap.

 

many thanks.

config.plist

codec_dump0.txt

p5ql-em-io.ioreg

Edited by cajebax
Link to comment
Share on other sites

Quote
23 hours ago, qutongming said:

New MacOs Mojave 10.14.3 Installation

Clean system

Main board: GA Z97X-UD3H Ver1.1

BIOS: Z97XUD3H.10b

Sound Card: Realtek ALC 1150

I use Ozmosis.rom.  Clover is not in use

Every test brushes BIOS

LayoutID 1 2 3 5 and 7  Tried one by one。  Brush BIOS 60 times, Installation system 3 times,Installation from 10.14.3MacOS and 10.13.6MacOS 10.14.3MacOS

 

Now used  1.2.8 very good。 LayoutID 1 Injection utilizing DSDT

1365913979_2019-02-239_06_59.thumb.png.4964ca1c3a16606d2a872755eeb23386.png

 

1.3.0 1.3.1 1.3.2 and 1.3.6 Equipment blank

Why?

BIOS, Replace only 1.3.0.  Equipment blank

 

Hi,

Remove the layout id's from the DSDT, open your OzmosisDefaults with a plist app like plist edit pro, go to the boot-args, and ad alcid=1, save it, and replace it with the current one on the bios. You can replace it even if plist file, using UEFITool, and by replace body, set the extension to bi inserted as other, then go choose you OzmosisDefaults.plist you've just modified, UEFITool is able to convert the plist file to raw data.

 

Now download the latest AppleALC source code, and unzip it. From the Resources folder on the AppleALC Master, delete all other codecs except the ALC1150. Now, download the Lilu Master source code, run the project using Xcode, and copy the resulted Lilu.kext to the AppleALC Master folder, open the project using Xcode, and convert the resulted small AppleALC.kext file size to ffs, replace it with the current one on the bios. Download the latest release of Lilu kext from the release page, convert it to ffs, replace it with the current one on the bios. Now, save the BIOS and refresh your mob with it.     

 

For the DSDT avoid using it, and instead, use a SSDT that contain all the patchs used in the DSDT, IMHO.

 

Good Luck ^_^

Link to comment
Share on other sites

×
×
  • Create New...