Jump to content

AppleALC — dynamic AppleHDA patching


vit9696
5,390 posts in this topic

Recommended Posts

Hi,

Bumping again as I would like this to work for all (including myself) ALC221 users.

Again, Microphone isn't working as excepted (rear and front) and I would be grateful to anyone that can provide any support on this case.

 

Tried a discussion on git ALC repo without success (see https://github.com/vit9696/AppleALC/issues/244)for history.

 

I'm, of course, ready to provide, my time for testing and any other further information needed.

 

 

Hi,

First, thanks to all contributors of this project.

 

I would like to report partial success with Realtek ALC221 chip on an HP 8300 SFF computer.

 

However the Microphone (rear or front jack) is not working on HP 8300 SFF model.

 

Could someone point me in the right direction to fix this plz ?

 

 

Attached is the codec dump from linux and generated info.plist

Thanks again for sharing your time and knowledge.

Link to comment
Share on other sites

Hi,

Bumping again as I would like this to work for all (including myself) ALC221 users.

Again, Microphone isn't working as excepted (rear and front) and I would be grateful to anyone that can provide any support on this case.

 

Tried a discussion on git ALC repo without success (see https://github.com/vit9696/AppleALC/issues/244)for history.

 

I'm, of course, ready to provide, my time for testing and any other further information needed.

 

What about the mic doesn't work? A headset with a mic seems to work on mine correctly with both front and back ports.

Link to comment
Share on other sites

Laptop Intel Kaby Lake HD630 HDMI audio support (ig-platform-id 0x591b0000)
 

 

It's possible provide support to Intel Kaby Lake HD630 HDMI audio (ig-platform-id 0x591b0000), because I can just have HDMI audio working with ig-platform-id 0x59120000 or 0x191b0000 but my laptop screen doesn't work in this situation.
 
Thanks in advance 
Link to comment
Share on other sites

Hi I have a:

 

* Skylake

* HP EliteDesk 800 G2 TWR

* Realtek ALC 221 Audio

* 10.13.3

 

Unfortunately AppleALC is not working with the ALC221 support from @GoldFish64 

 

I checked the `Adding Codec Support` but it does not gives me a clear understanding how to create the necessary files. 

 

I really want to experiment so can you point me to some documentation on the theory behind the files in order to get me going?

 

Thanks!

Link to comment
Share on other sites

Nothing as of yet, just would like a guide to reference when and if I do need to.

 

 

Well, the instructions are not that bad, in my opinion. The thing that's not really clear to me is where do you get those codec informations from? Those "platforms" and all that. That's the first part that's not really clear to me.

Link to comment
Share on other sites

Well, the instructions are not that bad, in my opinion. The thing that's not really clear to me is where do you get those codec informations from? Those "platforms" and all that. That's the first part that's not really clear to me.

You would have to provide them. AppleALC is a dynamic patcher for AppleHDA (as per the title); the adding codec support page assumes you already have working XML resources for AppleHDA (which could be created by following any codec patching guide for AppleHDA).

  • Like 2
Link to comment
Share on other sites

@Pavo

 
What exactly do you need a manual for?
Well functioning codec already exists and it is only about the handling of the AppleALC and Lilu source, or about the insertion of the finished codecs?
Link to comment
Share on other sites

Hey all, i have a problem to get sound stably working, i mean in each 2 or 3 reboots or powering on the Laptop, the sound disappears, so here's the report:

 

1. Laptop model: HP ProBook 650 G1 Haswell-i5 4200M

2. Codec name: IDT 92HD91BXX
3. Layout used: 84, 33, 12, 3 no one work, only the patched AppleHDA worked with the problem told above 
4. 10.11, 10.12, 10.13
5. Autogenerated Info.plist: Info.plist.zip

 

Here's the patch used in the DSDT:



                Name (RMCF, Package (0x06)
                {
                    "CodecCommander", 
                    Package (0x02)
                    {
                        "Disable", 
                        ">y"
                    }, 

                    "CodecCommanderPowerHook", 
                    Package (0x02)
                    {
                        "Disable", 
                        ">y"
                    }, 

                    "CodecCommanderProbeInit", 
                    Package (0x04)
                    {
                        "Version", 
                        0x00020600, 
                        "111d_76e0", 
                        Package (0x02)
                        {
                            "PinConfigDefault", 
                            Package (0x02)
                            {
                                Package (0x00) {}, 
                                Package (0x04)
                                {
                                    "LayoutID", 
                                    0x03, 
                                    "PinConfigs", 
                                    Package (0x15)
                                    {
                                        Package (0x00) {}, 
                                        0x0A, 
                                        0x01811020, 
                                        0x0B, 
                                        0x01211050, 
                                        0x0C, 
                                        0x400000F0, 
                                        0x0D, 
                                        0x90100130, 
                                        0x0E, 
                                        0x400000F0, 
                                        0x0F, 
                                        0x400000F0, 
                                        0x10, 
                                        0x400000F0, 
                                        0x11, 
                                        0x90A00110, 
                                        0x1F, 
                                        0x400000F0, 
                                        0x20, 
                                        0x400000F0
                                    }
                                }
                            }
                        }
                    }
                })
                Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
                {
                    Store (Package (0x0C)
                        {
                            "device-type", 
                            Buffer (0x0E)
                            {
                                "IDT 92HD91BXX"
                            }, 

                            "codec-id", 
                            Buffer (0x04)
                            {
                                 0xE0, 0x76, 0x1D, 0x11
                            }, 

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

                            "PinConfigurations", 
                            Buffer (Zero) {}, 
                            "MaximumBootBeepVolume", 
                            Buffer (One)
                            {
                                 0x00
                            }, 

                            "multiEQDevicePresence", 
                            Buffer (0x04)
                            {
                                 0x00, 0x00, 0x01, 0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
Edited by ammoune78
Link to comment
Share on other sites

 

Hey all, i have a problem to get sound stably working, i mean in each 2 or 3 reboots or powering on the Laptop, the sound disappears, so here's the report:

 

1. Laptop model: HP ProBook 650 G1 Haswell-i5 4200M

2. Codec name: IDT 92HD91BXX

3. Layout used: 84, 33, 12, 3 no one work, only the patched AppleHDA worked with the problem told above 

4. 10.11, 10.12, 10.13

5. Autogenerated Info.plist: attachicon.gifInfo.plist.zip

 

Here's the patch used in the DSDT:



                Name (RMCF, Package (0x06)
                {
                    "CodecCommander", 
                    Package (0x02)
                    {
                        "Disable", 
                        ">y"
                    }, 

                    "CodecCommanderPowerHook", 
                    Package (0x02)
                    {
                        "Disable", 
                        ">y"
                    }, 

                    "CodecCommanderProbeInit", 
                    Package (0x04)
                    {
                        "Version", 
                        0x00020600, 
                        "111d_76e0", 
                        Package (0x02)
                        {
                            "PinConfigDefault", 
                            Package (0x02)
                            {
                                Package (0x00) {}, 
                                Package (0x04)
                                {
                                    "LayoutID", 
                                    0x03, 
                                    "PinConfigs", 
                                    Package (0x15)
                                    {
                                        Package (0x00) {}, 
                                        0x0A, 
                                        0x01811020, 
                                        0x0B, 
                                        0x01211050, 
                                        0x0C, 
                                        0x400000F0, 
                                        0x0D, 
                                        0x90100130, 
                                        0x0E, 
                                        0x400000F0, 
                                        0x0F, 
                                        0x400000F0, 
                                        0x10, 
                                        0x400000F0, 
                                        0x11, 
                                        0x90A00110, 
                                        0x1F, 
                                        0x400000F0, 
                                        0x20, 
                                        0x400000F0
                                    }
                                }
                            }
                        }
                    }
                })
                Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
                {
                    Store (Package (0x0C)
                        {
                            "device-type", 
                            Buffer (0x0E)
                            {
                                "IDT 92HD91BXX"
                            }, 

                            "codec-id", 
                            Buffer (0x04)
                            {
                                 0xE0, 0x76, 0x1D, 0x11
                            }, 

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

                            "PinConfigurations", 
                            Buffer (Zero) {}, 
                            "MaximumBootBeepVolume", 
                            Buffer (One)
                            {
                                 0x00
                            }, 

                            "multiEQDevicePresence", 
                            Buffer (0x04)
                            {
                                 0x00, 0x00, 0x01, 0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }

Did you try patch Audio DSDT Layout 12 in MacIasl ?

post-951341-0-19925200-1518135011_thumb.png

  • Like 1
Link to comment
Share on other sites

No didn't worked, i don't know how to make it work!


Should i delete RMCF also and leave only DSM?


Yep, worked now with AppleALC and without RMCF, but only HeadPhones work, if automatically switched to internal Speakers no output sound :(  

Link to comment
Share on other sites

No didn't worked, i don't know how to make it work!

Should i delete RMCF also and leave only DSM?

Yep, worked now with AppleALC and without RMCF, but only HeadPhones work, if automatically switched to internal Speakers no output sound :(  

Try don't use codec commander with this patch, only AppleALC and Lilu

  • Like 1
Link to comment
Share on other sites

Ok Captain!


Chris thank you to much, worked with no Codec Commander, switching now between HeadPhones and Internal Speakers are fine, good job MAN, really AppleALC is an Kick**s and it keep L/E & S/L/E clean, thanks to you, vit9696 and developers for this beautiful piece of work  :thumbsup_anim:  :yes:  ^_^

  • Like 1
Link to comment
Share on other sites

Ok Captain!

Chris thank you to much, worked with no Codec Commander, switching now between HeadPhones and Internal Speakers are fine, good job MAN, really AppleALC is an Kick**s and it keep L/E & S/L/E clean, thanks to you, vit9696 and developers for this beautiful piece of work  :thumbsup_anim:  :yes:  ^_^

Great!  23032310.gif

  • Like 1
Link to comment
Share on other sites

@Pavo

What exactly do you need a manual for?
Well functioning codec already exists and it is only about the handling of the AppleALC and Lilu source, or about the insertion of the finished codecs?

 

 

We need a manual to find unknown codecs that AppleALC currently does not support so we can make the necessary files needed to add the support to AppleALC.

  • Like 1
Link to comment
Share on other sites

Ok Captain!

 

Chris thank you to much, worked with no Codec Commander, switching now between HeadPhones and Internal Speakers are fine, good job MAN, really AppleALC is an Kick**s and it keep L/E & S/L/E clean, thanks to you, vit9696 and developers for this beautiful piece of work :thumbsup_anim::yes:^_^

Do you sound after sleep without codeccommander?

 

Sent from my SM-G930F using Tapatalk

Link to comment
Share on other sites

We need a manual to find unknown codecs that AppleALC currently does not support so we can make the necessary files needed to add the support to AppleALC.

 

The first step in a new codec is getting a codec_dump from a Linux live.
Then convert the codec_dump with codecgraph.
Then take the values ​​from verbs.txt and create the PinConfig with PinConfigurator.
Then from codec_dump_dec.txt and codec_dump_dec.txt.svg find the nodes chains and create the files layout??.xml.zlib and Platforms??.xml.zlib.
?? = free layoutID found in AppleALC for your chip type.
 
Take a look at my old german manual!
 
These are just examples, not a solution for everything.
All apps (PinConfigurator, codecgraph,...) can be found there in Tool_Paket_patch_AppleHDA.zip.
Some steps in the manual (binary patch, etc.) are no longer required for AppleALC.
I do not patch AppleHDA anymore. I add layout, Platforms and PinConfig only in AppleALC. My Thread patch AppleHDA is older, but the first steps are always the same.
 
If PinConfig is complete then insert the new entry in "AppleALC-master/Resources/PinConfigs.kext/Contents/Info.plist".
The finished layout??.xml.zlib and Platforms??.xml.zlib you copy into the respective ALC folder in "AppleALC-master/Resources/Folder??".
In this folder edit the "Info.plist" and add new entries for Files/Layouts and Files/Platforms.
 

 

Then compile AppleALC with xcode and try ...
  • Like 3
Link to comment
Share on other sites

 

The first step in a new codec is getting a codec_dump from a Linux live.
Then convert the codec_dump with codecgraph.
Then take the values ​​from verbs.txt and create the PinConfig with PinConfigurator.
Then from codec_dump_dec.txt and codec_dump_dec.txt.svg find the nodes chains and create the files layout??.xml.zlib and Platforms??.xml.zlib.
?? = free layoutID found in AppleALC for your chip type.
 
Take a look at my old german manual!
 
These are just examples, not a solution for everything.
All apps (PinConfigurator, codecgraph,...) can be found there in Tool_Paket_patch_AppleHDA.zip.
Some steps in the manual (binary patch, etc.) are no longer required for AppleALC.
I do not patch AppleHDA anymore. I add layout, Platforms and PinConfig only in AppleALC. My Thread patch AppleHDA is older, but the first steps are always the same.
 
If PinConfig is complete then insert the new entry in "AppleALC-master/Resources/PinConfigs.kext/Contents/Info.plist".
The finished layout??.xml.zlib and Platforms??.xml.zlib you copy into the respective ALC folder in "AppleALC-master/Resources/Folder??".
In this folder edit the "Info.plist" and add new entries for Files/Layouts and Files/Platforms.
 

 

Then compile AppleALC with xcode and try ...

 

 

Thanks MacPeet for this clear how, i just want to know how to get codec dump from Linux, so i'll can try my first attempt for this Laptop, if done, i can begin the work for others ^_^ ?  

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

On my Dell Optiplex 780 with DP Beta 1 or 2 HS 10.13.4 Lilu + AppleALC is no longer working. I have tried version 1.2.2 and 1.2.1 and the latest versions of Clover 4392, 4411 and 4414.

In kextstat Lilu and AppleALC are loaded. HDMI audio works.
 
What do these messages mean in the bootlog?
 
2018-02-11 10:43:48.843230+0100 0x73       Default     0x0                  0      0    kernel: calling mpo_policy_init for Lilu
2018-02-11 10:43:48.843790+0100 0x73       Default     0x0                  0      0    kernel: Security policy loaded: Lilu Kernel Extension 1.2.1 (Lilu)
 
This message is apparently normal.
 
Funny, I can not find a mistake.
My Lappi with Beta1 / 2 works ALC / Lilu without problems.
 
:wallbash:
Link to comment
Share on other sites

×
×
  • Create New...