Jump to content

AppleALC — dynamic AppleHDA patching


vit9696
5,390 posts in this topic

Recommended Posts

On 6/19/2020 at 9:43 PM, MacPeet said:

@phuanh004

 

This is like on-the-fly for your computer with AppleALC / Lilu.

Delete realtekALC.kext in the clover!
Delete all KextToPatch eggs for audio (AppleHDA) in the clover!

try this in Clover / kexts / other:

change Inject LayoutID 3 to ID15
In DSDT or SSDT hexadecimal layoutid = 0F000000
or as a boot flag
alcid=15

 

trial_alc290_layoutID15.zip

Hi, what should i do / file to send you to help me make my macpro6,1 hackintosh audio works?

Link to comment
Share on other sites

Hello guys, ive been trying in hackintosh 1 week later. the problem had to resolve now only about audio. I use AppleALC Audio described as guide with ALC290 codec on my dell vostro 5480, been trying all supported layout id 3,4,28 for that device but problem still same. internal speaker volume is low, compare to windows i think about 20%. It also happen to low volume input mic too. i think is only affect on internal speaker, cause when i use headphone, volume and clarity is good enough. AppleALC.kext + lilu install to /L/E folder, with essential kext in clover/kext/other. can anybody helps me with that ? i hope my laptop subwoofer would work to.. sorry for my bad grammar in english . i attach codec_dump from linux ubuntu and some debug file codec_dump_2.txt debug_23539.zip

 

 

Screen Shot 2020-07-04 at 15.21.59.png

Screen Shot 2020-07-04 at 15.26.08.png

Screen Shot 2020-07-04 at 15.26.28.png

Screen Shot 2020-07-04 at 15.26.39.png

Screen Shot 2020-07-04 at 15.27.02.png

Screen Shot 2020-07-04 at 15.27.35.png

debug_23539.zip

Edited by deryrochiman
Link to comment
Share on other sites

hi guys I can't seem to get headphone working on my hp 440 g4 Mojave .conexant cx8200

I tried all different alc posted here but same result.

When I plug in iphone  headphones not recognised  but the mic from it works from it.

I use stock applehda lilu alc and codec commander all loaded .

I use rehabman hot patch for clover .Every thing works but no headphones Im going crazy trying to make it work but no luck

Should something be in clover config???

I have this in Rehabman config

Don't know what to try anymore

I enclose audio device id

 

<key>Devices</key>
    <dict>
        <key>Audio</key>
        <dict>
            <key>Inject</key>
            <integer>0</integer>
        </dict>
        <key>Properties</key>
        <dict>
            <key>PciRoot(0)/Pci(0x02,0)</key>
            <dict>
                <key>framebuffer-con1-alldata</key>
                <data>
                AQUKAAAIAACHAQAAAgQKAAAIAACHAQAA
                </data>
                <key>framebuffer-con1-enable</key>
                <integer>1</integer>
                <key>framebuffer-patch-enable</key>
                <integer>1</integer>
            </dict>

 

 

Screenshot 2020-07-06 at 10.14.51.png

Edited by robi62
Link to comment
Share on other sites

Helllo, thanks in advance to anyone who would like to help me not to become more crazy than I'm :lol:

 

Problem: No output sound from speaker and headphones

 

  • Laptop -- Asus ROG Strix II GL504GW:
    • i7-8750H UHD630
    • 32GB 2667 RAM (2x16)
    • Realtek ALC294
      • All layout-ids tried without success
  • Bootloader and OS info:
    • OpenCore 0.5.9
    • macOS Catalina Version 10.15.5 (Build 19F101)

A user called cowpod released a codec for the same laptop (layout-id: 22) but I haven't success to use it. I can turn the volume up and down, when I insert the headphones they are recognized and even the microphone works. The problem is that I can't hear any sound in any way. What I can do? I attach the files to my laptop! Thanks ;)

 

codec_dump.txt

Hackintool Sound.png

Info.plist

IORegistry Audio.png

MacOS Settings Input.png

MacOS Settings Output.png

Link to comment
Share on other sites

On 5/28/2020 at 3:46 PM, MacPeet said:

@seri

 

Your computer has other nodes for HP (node 22).
ID 3, ID15, ... (node 29 for HP)

 

try this with layoutID 3:

 

trial_cx8200_layoutID3.zip

@MacPeet I just tried your alc and now I have headphone but speaker sound not working

Pluging headphone in works automatic switch to headphones but I lost speakers output although its showingudio 

 

This is my DSDT for audio device

 

 Method (_SB.PCI0.HDEF._DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
    {
        If (LNot (Arg2))
        {
            Return (Buffer (One)
            {
                 0x03                                           
            })
        }

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

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

            "PinConfigurations", 
            Buffer (Zero){}, 
            "RM,disable_FakePCIID", 
            One
        })
    }

    Name (_SB.PCI0.HDEF.RMCF, Package (0x02)
    {
        "CodecCommander", 
        Package (0x04)
        {
            "Version", 
            0x00020600, 
            "14f1_2008", 
            Package (0x02)
            {
                "Custom Commands", 
                Package (0x02)
                {
                    Package (0x00){}, 
                    Package (0x08)
                    {
                        "Command", 
                        Buffer (0x04)
                        {
                             0x01, 0x97, 0x07, 0x24                         
                        }, 

                        "On Init", 
                        ">y", 
                        "On Sleep", 
                        ">n", 
                        "On Wake", 
                        ">y"
                    }
                }
            }
        }
    })
 

 

Link to comment
Share on other sites

Can someone explain how do i correctly configure layout**.xml and pinconfigs for an External Microphone, not LineIn but External Microphone.

 

Realtek ALC3232 (ALC292)

 

Outputs:

- Speaker

- Headphones (Laptop combo jack)

- LineOut (Docking station combo jack)

 

Inputs:

- Internal Microphone

- External Microphone if possible (laptop combo jack)

- LineIn (Docking station Combo Jack)

Link to comment
Share on other sites

Eureka got my headphone working on my hp 440 g4 I just edited my hdef audio from layout 3 to 15 on my DSDT and now with stock lilu and alc

everything works So happy

 

  Method (_SB.PCI0.HDEF._DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
    {
        If (LNot (Arg2))
        {
            Return (Buffer (One)
            {
                 0x03                                           
            })
        }

        Return (Package (0x08)
        {
            "layout-id", 
            Buffer (0x04)
            {
                 0x15, 0x00, 0x00, 0x00                         
            }, 
 

Link to comment
Share on other sites

On 6/29/2020 at 12:45 PM, deryrochiman said:

Hello guys, ive been trying in hackintosh 1 week later. the problem had to resolve now only about audio. I use AppleALC Audio described as guide with ALC290 codec on my dell vostro 5480, been trying all supported layout id 3,4,28 for that device but problem still same. internal speaker volume is low, compare to windows i think about 20%. It also happen to low volume input mic too. i think is only affect on internal speaker, cause when i use headphone, volume and clarity is good enough. AppleALC.kext + lilu install to /L/E folder, with essential kext in clover/kext/other. can anybody helps me with that ? i hope my laptop subwoofer would work to.. sorry for my bad grammar in english . i attach codec_dump from linux ubuntu and some debug file codec_dump_2.txt debug_23539.zip

 

 

Screen Shot 2020-07-04 at 15.21.59.png

Screen Shot 2020-07-04 at 15.26.08.png

Screen Shot 2020-07-04 at 15.26.28.png

Screen Shot 2020-07-04 at 15.26.39.png

Screen Shot 2020-07-04 at 15.27.02.png

Screen Shot 2020-07-04 at 15.27.35.png

debug_23539.zip

Anybody can help ?

Link to comment
Share on other sites

Support CometLake on Intel NUC10i7FNK. It has Realtek ALC256
Tried with all supported layouts - no luck.

OS: Catalina 10.15.5

 

With layout 28 it recognises Internal Speaker/HDMI Audio/Headset but no sound

 

Please support. 

Thanks!

Edited by Evgeny R.
Link to comment
Share on other sites

19 minutes ago, Evgeny R. said:

Support CometLake on Intel NUC10i7FNK. It has Realtek ALC256
Tried with all supported layouts - no luck.

OS: Catalina 10.15.5

 

With layout 28 it recognises Internal Speaker/HDMI Audio/Headset but no sound

 

Please support. 

Thanks!

 

Build the latest AppleALC from source and try layout 28, and all the other layouts again.

Link to comment
Share on other sites

28 minutes ago, fewtarius said:

 

Build the latest AppleALC from source and try layout 28, and all the other layouts again.

 

In kern_start.cpp Kernel version was KernelVersion::BigSur, changed it to KernelVersion::Catalina

Now I have errors while rebuilding latest source code for GitHub

 

/Users/evgeny/Documents/Xcode/AppleALC-master/AppleALC/kern_alc.cpp:80:13: error: no member named 'awaitPublishing' in namespace 'WIOKit'

                                WIOKit::awaitPublishing(devInfo->audioBuiltinDigital);

                                ~~~~~~~~^

/Users/evgeny/Documents/Xcode/AppleALC-master/AppleALC/kern_alc.cpp:105:14: error: no member named 'awaitPublishing' in namespace 'WIOKit'

                                        WIOKit::awaitPublishing(devInfo->audioBuiltinAnalog);

 

I have no problem rebuilding ver 1.5.0

 

How to fix it?

 

Link to comment
Share on other sites

Hi@all, I've encountered a weird issue with AppleALC and thought I would share it with you (don't know if someone already noticed it or not).
I have an Asus Crosshair VI Hero motherboard with an AMD Ryzen 1700x + AMD RX560 + Nvidia 1080Ti.

This motherboard has a "ROG SupremeFX S1220" chip.

The beginning of the result of the "cat /proc/asound/cardX/codec#0 | less" command is (you can find the end of it in attached file) :

Quote

Codec: Realtek ALC1220
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x10ec1220
Subsystem Id: 0x10438735
Revision Id: 0x100003

 

I've installed successfully Catalina following Dortania's OpenCore guide and didn't check if the sound was working or not.
At the end, the guide tells how to disable a gpu, so I did it with my 1080Ti as I thought it was useless. 

 

The thing is, I noticed later that my sound card wasn't working, and as I didn't check beforehand, I thought that it wasn't working from the beginning. 
I discovered waaaay later after starting to dig into IOReg that AppleALC, instead of patching my Realtek card, was patching a "HDAU" available on my 1080Ti gpu when I disable via SSDT or config.plist.
Therefore, I was getting the GPP8/HDAU recognized as HDEF with the alc-layout injected into it instead of getting my GP18/AZUL patched.

I've removed my SSDT patch for now and the sound is working nicely with an alcid=1 parameter :)

 

Thanks for your work guys!

alc1220.txt

Link to comment
Share on other sites

On 7/11/2020 at 12:56 AM, Evgeny R. said:

 

In kern_start.cpp Kernel version was KernelVersion::BigSur, changed it to KernelVersion::Catalina

Now I have errors while rebuilding latest source code for GitHub

 

/Users/evgeny/Documents/Xcode/AppleALC-master/AppleALC/kern_alc.cpp:80:13: error: no member named 'awaitPublishing' in namespace 'WIOKit'

                                WIOKit::awaitPublishing(devInfo->audioBuiltinDigital);

                                ~~~~~~~~^

/Users/evgeny/Documents/Xcode/AppleALC-master/AppleALC/kern_alc.cpp:105:14: error: no member named 'awaitPublishing' in namespace 'WIOKit'

                                        WIOKit::awaitPublishing(devInfo->audioBuiltinAnalog);

 

I have no problem rebuilding ver 1.5.0

 

How to fix it?

 

I compiled new Lilo and AppleALC with it. With layout 23,28 it works with headset, no HDMI audio with any layout. Anything else to try? My HDMI audio is LG HDR 4K monitor

Edited by Evgeny R.
Link to comment
Share on other sites

Hi!
AppleALC works for me, except that versions post 1.2.8 increase boot time by 4mn under High Sierra and Mojave! (against 22s boot time with v 1.2.8 or without AppleALC)
So, until now, I've stayed with Lilu (whatever version) + AppleALC 1.2.8 in 10.11 and 10.13, but now that I'm trying Mojave, version 1.2.8 won't work anymore — latest Lilu-1.4.5 + AppleALC-1.5.0 are working, but I'd rather like to avoid waiting 5 mn for my computer to boot, if possible... :rolleyes:
In any case, I always have sound working in the end, with no issue. Sound after sleep/wake ok.

Note that it's quite the same thing for my main OS (10.11.6) but a lot shorter (1mn10s — against 25s with AppleALC 1.2.8).

I haven't found anything meaningful in the Console, except for a "time hole" (here in High Sierra, between 12:13:26 and 12:17:00):

12:13:26 HiSRA timed[79]: settimeofday({0x5d0cadc6,0x5a092}) == 0
12:17:00 HiSRA com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.user.212): com.apple.pluginkit.pkd (lint): Service sets EnableTransactions=false and EnablePressuredExit=true, which makes no sense. Enabling Transactions.



1. Laptop model/Motherboard model
Motherboard: Gigabyte GA-Z68XP-UD3
2. Codec name
ALC889
3. Layout used
1 (I've tried them all)
4. OS X versions you tried
10.9, 10.11, 10.13, 10.14
5. Autogenerated Info.plist made with the help of this utility.
 => gives the exact same result, be it in 10.11 or 10.13, AppleALC 1.2.8 or 1.4.4

Info144 1013.plist

Link to comment
Share on other sites

To complement my precedent post, here is how the "time hole" looks like in Mojave:

14/07/2020 14:50:25,101 com.apple.xpc.launchd[1]: (com.apple.locationd[80]) Service exited with abnormal code: 1
14/07/2020 14:54:11,564 WindowServer[130]: DEPRECATED USE in libdispatch client: dispatch source activated with no event handler set; set a breakpoint on _dispatch_bug_deprecated to debug
14/07/2020 14:54:11,967 com.apple.xpc.launchd[1]: (com.apple.xpc.launchd.domain.user.88) com.apple.pluginkit.pkd (lint): Service sets EnableTransactions=false and EnablePressuredExit=true, which makes no sense. Enabling Transactions.
14/07/2020 14:54:13,656 com.apple.xpc.launchd[1]: (com.apple.xpc.launchd.domain.user.212) com.apple.pluginkit.pkd (lint): Service sets EnableTransactions=false and EnablePressuredExit=true, which makes no sense. Enabling Transactions.
14/07/2020 14:54:13,782 com.apple.xpc.launchd[1]: (com.apple.AmbientDisplayAgent) Service only ran for 1 seconds. Pushing respawn out by 9 seconds.
14/07/2020 14:54:13,881 Installer Progress[65]: 1 Boot windows acquired

Note that this is an absolutely clean install.

Link to comment
Share on other sites

@macpeet

 

Sorry for the long delay before a replay, with COVID, school and moving I have been a bit busy ! I tried trial2_alc289_layoutID15_SwitchMode with no luck. using these files I could not get any sound out of the computer. not even from the internal speaker which was originally working. trial one was almost perfect just the "line in" from the headphone microphone does not work, everything els works like a charm. Thank you so much for all your help so far!

Link to comment
Share on other sites

On 7/15/2020 at 11:42 AM, Nodarkthings said:

To complement my precedent post, here is how the "time hole" looks like in Mojave:


14/07/2020 14:50:25,101 com.apple.xpc.launchd[1]: (com.apple.locationd[80]) Service exited with abnormal code: 1
14/07/2020 14:54:11,564 WindowServer[130]: DEPRECATED USE in libdispatch client: dispatch source activated with no event handler set; set a breakpoint on _dispatch_bug_deprecated to debug
14/07/2020 14:54:11,967 com.apple.xpc.launchd[1]: (com.apple.xpc.launchd.domain.user.88) com.apple.pluginkit.pkd (lint): Service sets EnableTransactions=false and EnablePressuredExit=true, which makes no sense. Enabling Transactions.
14/07/2020 14:54:13,656 com.apple.xpc.launchd[1]: (com.apple.xpc.launchd.domain.user.212) com.apple.pluginkit.pkd (lint): Service sets EnableTransactions=false and EnablePressuredExit=true, which makes no sense. Enabling Transactions.
14/07/2020 14:54:13,782 com.apple.xpc.launchd[1]: (com.apple.AmbientDisplayAgent) Service only ran for 1 seconds. Pushing respawn out by 9 seconds.
14/07/2020 14:54:13,881 Installer Progress[65]: 1 Boot windows acquired

Note that this is an absolutely clean install.

 

I finally understood what changed between v1.2.8 and the following ones, and found a workaround:

• the HDMI audio port of my NVidia GT210 is renamed to HDAU by AppleALC and probably the rename was not done until v1.2.8

• adding the following patch to hide HDMI restores normal behaviour.

In Clover Configurator, I add a new line in KextsToPatch with values:
Name: com.apple.driver.AppleHDAController
Find: DE10E30B
Replace: 00000000

No more long boots! :thumbsup_anim:

  • Like 1
Link to comment
Share on other sites

hi, let me write here because I would like to report a compatibility problem between my realtek alc294 sound card and appleALC.kext.
I tried everything possible with the help of other more competent guys on appleALC configuration, using the various compatible layouts: 11,12,13,21,22,28,66, using them both with bootargs, and setting it through the section clover devices.
With all the layouts I am recognized the speaker and the microphone, (unlike the port for the jack that does not appear), but nobody can hear anything coming from the speaker. I am attaching the debug created and my efi. Thank you!

My laptop is: Asus Rog strix g512lv

debug.mio.zip

Edited by serpinu
Link to comment
Share on other sites

On 7/11/2020 at 12:56 AM, Evgeny R. said:

 

In kern_start.cpp Kernel version was KernelVersion::BigSur, changed it to KernelVersion::Catalina

Now I have errors while rebuilding latest source code for GitHub

 

/Users/evgeny/Documents/Xcode/AppleALC-master/AppleALC/kern_alc.cpp:80:13: error: no member named 'awaitPublishing' in namespace 'WIOKit'

                                WIOKit::awaitPublishing(devInfo->audioBuiltinDigital);

                                ~~~~~~~~^

/Users/evgeny/Documents/Xcode/AppleALC-master/AppleALC/kern_alc.cpp:105:14: error: no member named 'awaitPublishing' in namespace 'WIOKit'

                                        WIOKit::awaitPublishing(devInfo->audioBuiltinAnalog);

 

I have no problem rebuilding ver 1.5.0

 

How to fix it?

 

 

Edited by Evgeny R.
Link to comment
Share on other sites

On 7/13/2020 at 8:26 PM, Evgeny R. said:

I compiled new Lilo and AppleALC with it. With layout 23,28 it works with headset, no HDMI audio with any layout. Anything else to try? My HDMI audio is LG HDR 4K monitor

Anyone can help with this issue?

Link to comment
Share on other sites

2 hours ago, MacPeet said:

@hugodlc

 

Device Hex 14F120D0 is Dec 351346896 = CX8400 in AppleALC

 

CX8400 only one Codec - layoutID 12

 

try 12

 

I tried all the Conexant layouts and even faked the ID and/or injected my pin config data to similar id's and nothing.

 

This is as far as it get's recognized with ALC.

 

Thank you for your help!

Screen Shot 2020-07-30 at 12.09.54 PM.png

Link to comment
Share on other sites

×
×
  • Create New...