Jump to content

AppleALC — dynamic AppleHDA patching


vit9696
5,390 posts in this topic

Recommended Posts

I was able to get AppleHDA recognized audio code ALC662 (at address 2) with AppleALC using layout-id 11 on G41-M7 motherboard running 10.9.5. However, there is no sound output to any jack. dmeag shows "Sound assertion in AppleHDAWidget at line 2208". Any suggestion? 

post-47313-0-85272500-1491658886_thumb.jpg

post-47313-0-21715500-1491658898_thumb.jpg

  • Like 1
Link to comment
Share on other sites

Alc662 use 5, 7 or 11

 

if dont work try with AppleHdaPatcher

 

btw, new version dont work for me in 10.xx folders, work only in Other's folder.

Link to comment
Share on other sites

Yes, I was using 11 due to codecAddress=2

 

I just tried AppleHDAPatcher with layoutid 5, 9. Unfortunately, I got different Sound assertions and the audio device doesn't even show up in sound preference. Here are the assertion from dmesg:

 

Sound assertion in AppleHDADriver at line 1572

Sound assertion in AppleHDADriver at line 2252

Sound assertion in AppleHDADriver at line 219

Sound assertion in AppleHDADriver at line 1110

Link to comment
Share on other sites

Wern Apfel, I reinstalled Sierra (vanilla install) and audio again is distorted :D. I don't know what to do. Tested with last clover versions - 4035 and 4049.

 

Audio MIDI

Do you use the gerrard kext?, if so, is the sound also distorted when you use the rear black jack ?, the lower in the middle. 

Link to comment
Share on other sites

 

I'll try something else later and also
Ask someone to move these posts to AppleHDA Patch Request.
By are OffTopic.

 

Hey man. Anything going on? I couldn't find the Patch Request thread, it may be deleted? Anything I can do to help you, or anything I can do to fix it myself?

 

Many thanks!

Link to comment
Share on other sites

Hey man. Anything going on? I couldn't find the Patch Request thread, it may be deleted? Anything I can do to help you, or anything I can do to fix it myself?

 

Many thanks!

From what I know Mirone is retired, maybe is this the reason there isn't this topic, or then would be another reason personal, no matter, now we must walk with our own legs or ask for help from those who are willing to help here.

  • Like 1
Link to comment
Share on other sites

I had Success with AppleALC 1.1.1 and lilu 1.1.0 with my Gigabyte Z170X Gaming 7 rev 1.0 CA0132 with layout ID 2. Including Volume Control.

 

So audio should not be a reason anymore not to buy the Z170X Gaming 7

 

Thanks

Link to comment
Share on other sites

Hi,

I have upgraded my graphic card to pascal gtx 1070 from gtx 970 and I've lost HDMI/DP Audio when using AppleALC. I've tried VoodooHDA and it detects HDMI outputs and reproduce sound.

Could this be an AppleALC problem or maybe a Nvidia Web Driver problem? Any thoughts?

 

Thanks.

Link to comment
Share on other sites

I have upgraded my graphic card to pascal gtx 1070 from gtx 970 and I've lost HDMI/DP Audio when using AppleALC. I've tried VoodooHDA and it detects HDMI outputs and reproduce sound. Could this be an AppleALC problem or maybe a Nvidia Web Driver problem? Any thoughts?

I don't think AppleALC has anything to do with graphics card HDA (well, there is a codecLookup array which includes nvidia and intel graphics but I don't know if that leads to any functional changes). To be sure, you could try removing AppleALC, run Kext Utility.app, restart, and redo your graphics card audio tests.
Link to comment
Share on other sites

I don't think AppleALC has anything to do with graphics card HDA (well, there is a codecLookup array which includes nvidia and intel graphics but I don't know if that leads to any functional changes). To be sure, you could try removing AppleALC, run Kext Utility.app, restart, and redo your graphics card audio tests.

 

Thanks for helping joevt,

 

I dont understand what you propose to be sure it´s not AppleALC problem. Specifically "redo your graphics card audio tests"

 

I have this in SSDT

    Scope (\_SB.PCI0)
    {
        Device (HDEF)
        {
            Name (_ADR, 0x001B0000)  // _ADR: Address
            Method (_INI, 0, NotSerialized)  // _INI: Initialize
            {
                Store (Zero, \_SB.PCI0.ALZA._ADR)
            }

            Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
            {
                If (LEqual (Arg2, Zero))
                {
                    Return (Buffer (One)
                    {
                         0x03                                           
                    })
                }

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

                    "PinConfigurations", 
                    Buffer (Zero) {}
                })
            }
        }
    }

    Scope (\_SB.PCI0.BR3A.H000)
    {
        Name (_STA, Zero)  // _STA: Status
    }

    Scope (\_SB.PCI0.BR3A.H001)
    {
        Name (_STA, Zero)  // _STA: Status
    }

    Scope (\_SB.PCI0.BR3A.D080)
    {
        Name (_STA, Zero)  // _STA: Status
    }

    Scope (\_SB.PCI0.BR3A)
    {
        Device (GFX1)
        {
            Name (_ADR, Zero)  // _ADR: Address
            Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
            {
                If (LEqual (Arg2, Zero))
                {
                    Return (Buffer (One)
                    {
                         0x03                                           
                    })
                }

                Return (Package (0x12)
                {
                    "NVCAP", 
                    Buffer (0x14)
                    {
                        /* 0000 */  0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF,
                        /* 0008 */  0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0E,
                        /* 0010 */  0x00, 0x00, 0x00, 0x00                         
                    }, 

                    "@0,connector-type", 
                    Buffer (0x04)
                    {
                         0x04, 0x00, 0x00, 0x00                         
                    }, 

                    "@1,connector-type", 
                    Buffer (0x04)
                    {
                         0x00, 0x04, 0x00, 0x00                         
                    }, 

                    "@2,connector-type", 
                    Buffer (0x04)
                    {
                         0x00, 0x04, 0x00, 0x00                         
                    }, 

                    "@3,connector-type", 
                    Buffer (0x04)
                    {
                         0x00, 0x08, 0x00, 0x00                         
                    }, 

                    "@4,connector-type", 
                    Buffer (0x04)
                    {
                         0x00, 0x04, 0x00, 0x00                         
                    }, 

                    "@5,connector-type", 
                    Buffer (0x04)
                    {
                         0x00, 0x08, 0x00, 0x00                         
                    }, 

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

        Device (HDAU)
        {
            Name (_ADR, One)  // _ADR: Address
            Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
            {
                If (LEqual (Arg2, Zero))
                {
                    Return (Buffer (One)
                    {
                         0x03                                           
                    })
                }

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

                })
            }
        }
    }

Compiled AppleALC in debug mode, and this is the output:

2017-04-16 14:26:09.573402+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) util @ getOSData vendor-id has 8086 value
2017-04-16 14:26:09.583298+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) util @ getOSData device-id has 8D20 value
2017-04-16 14:26:09.583524+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) util @ getOSData revision-id has 5 value
2017-04-16 14:26:09.726256+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) util @ getOSData layout-id has 7 value
2017-04-16 14:26:09.735694+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) util @ getOSData AAPL,ig-platform-id was not found
2017-04-16 14:26:09.745170+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ found 1 audio controllers
2017-04-16 14:26:09.754153+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ validating 0 controller 8086:8D20:5
2017-04-16 14:26:09.763757+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ comparing to 0 mod 8086:A2F0
2017-04-16 14:26:09.773240+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ comparing to 1 mod 8086:8D21
2017-04-16 14:26:09.782494+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ comparing to 2 mod 8086:8D20
2017-04-16 14:26:09.791809+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ found mod for 0 controller
2017-04-16 14:26:09.800563+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ applying patches for 1 kext
2017-04-16 14:26:09.809295+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ applying 0 patch for 1 kext
2017-04-16 14:26:09.950001+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ codec entry misses properties, skipping
2017-04-16 14:26:09.958631+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ found supported Realtek ALC1150 codec revision 0x100001
2017-04-16 14:26:09.982688+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ applying patches for 3 kext
2017-04-16 14:26:09.990818+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ will route callbacks resource loading callbacks
2017-04-16 14:26:09.999643+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ applying patches for 3 kext
2017-04-16 14:26:10.007903+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ applying 1 patch for 3 kext
2017-04-16 14:26:10.016533+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ applying 2 patch for 3 kext
2017-04-16 14:26:10.024935+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ applying 3 patch for 3 kext
2017-04-16 14:26:10.034115+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ applying 5 patch for 3 kext
2017-04-16 14:26:10.043198+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) layout call 55 48 89 E5 41 57 41 56 41 54 53 41 89 CE 49 89
2017-04-16 14:26:10.052167+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) platform call 55 48 89 E5 41 57 41 56 41 54 53 41 89 CE 49 89
2017-04-16 14:26:10.215989+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ resource-request arrived layout
2017-04-16 14:26:10.225518+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ checking codec 10EC:900:100001
2017-04-16 14:26:10.234983+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ selecting from 6 files
2017-04-16 14:26:10.244066+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ comparing 0 layout 1/7
2017-04-16 14:26:10.252896+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ comparing 1 layout 2/7
2017-04-16 14:26:10.261754+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ comparing 2 layout 3/7
2017-04-16 14:26:10.270504+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ comparing 3 layout 5/7
2017-04-16 14:26:10.278897+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ comparing 4 layout 7/7
2017-04-16 14:26:10.287252+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) Found layout at 4 index
2017-04-16 14:26:10.303813+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ resource-request arrived layout
2017-04-16 14:26:10.311993+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ checking codec 10EC:900:100001
2017-04-16 14:26:10.320054+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ selecting from 6 files
2017-04-16 14:26:10.327790+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ comparing 0 layout 1/7
2017-04-16 14:26:10.335331+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ comparing 1 layout 2/7
2017-04-16 14:26:10.342886+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ comparing 2 layout 3/7
2017-04-16 14:26:10.350228+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ comparing 3 layout 5/7
2017-04-16 14:26:10.357559+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ comparing 4 layout 7/7
2017-04-16 14:26:10.364667+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) Found layout at 4 index
2017-04-16 14:26:10.387875+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ resource-request arrived paltform
2017-04-16 14:26:10.395367+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ checking codec 10EC:900:100001
2017-04-16 14:26:10.402750+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ selecting from 6 files
2017-04-16 14:26:10.409927+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ comparing 0 layout 1/7
2017-04-16 14:26:10.416987+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ comparing 1 layout 2/7
2017-04-16 14:26:10.424235+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ comparing 2 layout 3/7
2017-04-16 14:26:10.431344+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ comparing 3 layout 5/7
2017-04-16 14:26:10.438375+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ comparing 4 layout 7/7
2017-04-16 14:26:10.445416+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) Found platform at 4 index
2017-04-16 14:26:10.460728+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ resource-request arrived paltform
2017-04-16 14:26:10.467762+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ checking codec 10EC:900:100001
2017-04-16 14:26:10.474818+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ selecting from 6 files
2017-04-16 14:26:10.481526+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ comparing 0 layout 1/7
2017-04-16 14:26:10.488171+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ comparing 1 layout 2/7
2017-04-16 14:26:10.494585+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ comparing 2 layout 3/7
2017-04-16 14:26:10.501169+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ comparing 3 layout 5/7
2017-04-16 14:26:10.507676+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) alc @ comparing 4 layout 7/7
2017-04-16 14:26:10.513992+0200  localhost kernel[0]: (kernel) AppleALC: (DEBUG) Found platform at 4 index

And there aren't any apparent difference in IOREG HDAU device comparing before-after changing the video card.

 

 

As for applehda log there seem to be a new sound assertion comparing before-after changing the video card:

 

gtx970:

 

kernel: (AppleHDA) Sound assertion in AppleHDAEngine at line 9539

 

gtx1070:

 

kernel: (AppleHDAController) Sound assertion in AppleHDAController at line 1434

kernel: (AppleHDA) Sound assertion in AppleHDAEngine at line 9539

 

I dont know how to continue troubleshooting... Also it would be interesting if anybody with pascal video card could confirm if their hdmi audio is working using AppleALC.

 

Thanks

Link to comment
Share on other sites

AppleALC does nothing for HDMI audio on Nvidia or AMD cards. It should work with native AppleHDA with correct DSDT patches. In certain cases binary device-id changes needed. Also don't forget about limitation of inputs/outputs. There should be no more than 7 outputs/inputs including SPDIF and HDMI. External audio devices are not counted.

Link to comment
Share on other sites

AppleALC does nothing for HDMI audio on Nvidia or AMD cards. It should work with native AppleHDA with correct DSDT patches. In certain cases binary device-id changes needed. Also don't forget about limitation of inputs/outputs. There should be no more than 7 outputs/inputs including SPDIF and HDMI. External audio devices are not counted.

 

Ok Toleda has written about this in other forum and seems to be a problem with Pascal Web Drivers:

 

 

Nvidia 10xx Web driver: DP/HDMI audio working on DP Ports, HDMI audio is not working on HDMI ports.

Link to comment
Share on other sites

ALC1220 files/2 versions/2 layout-ids

 

versions:

1220A/0x1168: Asus/Strix only 

1220/0x1220: All other Desktop motherboards

 

layout-ids:

1: 3, 5, 6 motherboard audio ports

2: 3 motherboard audio ports (repurposes 2 inputs/1 output > 3 outputs/5.1)

 

macOS: 10.12.4 and newer

All inputs and outputs (except 1220/gray)

No special patches

audio_alc1220-alc.zip

  • Like 2
Link to comment
Share on other sites

So, I should report that after attempting to upgrade to 10.12.4, AppleALC caused an endless stream of kernel panics, which made it impossible to proceed.  Once I removed AppleALC, I was able to upgrade.

 

Any updates on AppleALC?

 

I am on a complex machine:  Asus X99-A II with Thunderbolt 3 (enabled and working), GTX 980, Built-in Realtek 1150 audio, 64GB of DDR4 3000 Mhz RAM, etc.

 

Check if the latest AppleALC and Lilu kexts are installed. Note that latest AppleALC.kext don't work without Lilu.kext

Link to comment
Share on other sites

Really?  It worked without Lilu in 10.12.3......Hmmm.

 

Should AppleALC be loaded in Kexts in Clover or in S/L/E?  I was told it might be better to load it before AppleHDA, and so that's where I loaded it before.  Also, should I load Lilu in Clover or in S/L/E?

 

AppleALC from v1.1.0 is a plugin for Lilu.kext. Both Lilu.kext and AppleALC.kext should be in EFI/Clover/Kexts folder!!! 

Latest AppleALC.kext https://github.com/vit9696/AppleALC/releases

Latest Lilu.kext https://github.com/vit9696/Lilu/releases

 

Known plugins for Lilu https://github.com/vit9696/Lilu/blob/master/KnownPlugins.md

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...