InfiniteMac OSx86

InfiniteMac OSx86 (http://infinitemac.com/forum.php)
-   Snow Leopard 10.6 (http://infinitemac.com/forumdisplay.php?f=87)
-   -   [GUIDE] How to port AppleHDA to SL (http://infinitemac.com/showthread.php?t=3981)

mimayin 11-20-2009 10:29 PM

I noticed I don't have anything pointing to AZAL or HDEF in the _GPE section of the DSDT. Could this be the problem?

eg: http://www.insanelymac.com/forum/ind...owtopic=184692

there the guy has:

Code:

        Method (_L05, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.HDEF, 0x02)
        }

whereas my _GPE section looks like:

Code:

    Scope (_GPE)
    {
        Method (_L00, 0, NotSerialized)
        {
            Notify (\_TZ.THRM, 0x80)
        }

        Method (_L03, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.USB0, 0x02)
        }

        Method (_L04, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.USB1, 0x02)
        }

        Method (_L0C, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.USB2, 0x02)
        }

        Method (_L0E, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.USB3, 0x02)
        }

        Method (_L05, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.USB4, 0x02)
        }

        Method (_L20, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.USB5, 0x02)
        }

        Method (_L0D, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.EHC1, 0x02)
            Notify (\_SB.PCI0.EHC2, 0x02)
            Notify (\_SB.PCI0.IGBE, 0x02)
        }

        Method (_L0B, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.HUB0, 0x02)
        }

        Method (_L08, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.PX40.UAR1, 0x02)
            Notify (\_SB.PCI0.PX40.UAR2, 0x02)
        }

        Method (_L09, 0, NotSerialized)
        {
            If (LNotEqual (VID0, 0xFFFF))
            {
                If (LEqual (And (RSR0, One), One))
                {
                    Store (0xFF, RSR0)
                    Store (0x80, PMC0)
                    Notify (\_SB.PCI0.PEX0, 0x02)
                }
            }

            If (LNotEqual (VID1, 0xFFFF))
            {
                If (LEqual (And (RSR1, One), One))
                {
                    Store (0xFF, RSR1)
                    Store (0x80, PMC1)
                    Notify (\_SB.PCI0.PEX1, 0x02)
                }
            }

            If (LNotEqual (VID2, 0xFFFF))
            {
                If (LEqual (And (RSR2, One), One))
                {
                    Store (0xFF, RSR2)
                    Store (0x80, PMC2)
                    Notify (\_SB.PCI0.PEX2, 0x02)
                }
            }

            If (LNotEqual (VID3, 0xFFFF))
            {
                If (LEqual (And (RSR3, One), One))
                {
                    Store (0xFF, RSR3)
                    Store (0x80, PMC3)
                    Notify (\_SB.PCI0.PEX3, 0x02)
                }
            }

            If (LNotEqual (VID4, 0xFFFF))
            {
                If (LEqual (And (RSR4, One), One))
                {
                    Store (0xFF, RSR4)
                    Store (0x80, PMC4)
                    Notify (\_SB.PCI0.PEX4, 0x02)
                }
            }

            If (LNotEqual (VID5, 0xFFFF))
            {
                If (LEqual (And (RSR5, One), One))
                {
                    Store (0xFF, RSR5)
                    Store (0x80, PMC5)
                    Notify (\_SB.PCI0.PEX5, 0x02)
                }
            }
        }
    }

maybe i should add that in? perhaps using a different unused _L0x?

dan10 11-20-2009 10:45 PM

There should be 2 instances of AZAL replaced to HDEF. I thing you are close

mimayin 11-20-2009 11:02 PM

I figured out the missing part, I added HDEF to the _L0D method:

Code:

        Method (_L0D, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.EHC1, 0x02)
            Notify (\_SB.PCI0.EHC2, 0x02)
            Notify (\_SB.PCI0.IGBE, 0x02)
            Notify (\_SB.PCI0.HDEF, 0x02)
        }


But still no sound with AppleHDA :(

dan10 11-20-2009 11:20 PM

Here it's mine:

Code:


  Method (_L0D, 0, NotSerialized)
        {
            Store (SMI (0xC6, Zero), Local0)
            If (And (Local0, One))
            {
                Notify (\_SB.PCI0.HDEF, 0x02)
            }

            If (And (Local0, 0x02))
            {
                Notify (\_SB.PCI0.EHCI, 0x02)
            }

            If (And (Local0, 0x04))
            {
                Notify (\_SB.PCI0.EHC2, 0x02)
            }
        }


mimayin 11-20-2009 11:26 PM

This is too much of a headache, i give up, im buying an Xmod

scififan68 11-21-2009 02:30 AM

Hey!, thanks for this sweet guide, it really helped me port the applehda kext to work for my alc888! :D

mimayin 11-21-2009 01:57 PM

Ok I'm following TheKing's guide, but I'm stuck on how to convert the output from VerbIt to the encoded format used in the ConfigData parameter in Info.plist:

Code:

Verbs from Linux Codec Dump File: codec_dump.txt

Codec: Realtek ALC885  Address: 2  DevID: 283904133 (0x10ec0885)

  Jack  Color  Description                  Node    PinDefault            Original Verbs
--------------------------------------------------------------------------------------------------------
    1/8  Green  Line Out at Ext Rear        20 0x14  0x01014410  21471c10 21471d44 21471e01 21471f01
    1/8  Black  Line Out at Ext Rear        21 0x15  0x01011412  21571c12 21571d14 21571e01 21571f01
    1/8  Orange  Line Out at Ext Rear        22 0x16  0x01016411  21671c11 21671d64 21671e01 21671f01
    1/8    Grey  Line Out at Ext Rear        23 0x17  0x01012414  21771c14 21771d24 21771e01 21771f01
    1/8    Pink  Mic at Ext Rear            24 0x18  0x01a19c40  21871c40 21871d9c 21871ea1 21871f01
    1/8    Pink  Mic at Ext Front            25 0x19  0x02a19c50  21971c50 21971d9c 21971ea1 21971f02
    1/8    Blue  Line In at Ext Rear        26 0x1a  0x0181344f  21a71c4f 21a71d34 21a71e81 21a71f01
    1/8  Green  HP Out at Ext Front        27 0x1b  0x02214c20  21b71c20 21b71d4c 21b71e21 21b71f02
  ATAPI Unknown  CD at Int ATAPI            28 0x1c  0x593301f0  21c71cf0 21c71d01 21c71e33 21c71f59
  ATAPI Unknown  Line In at Int ATAPI        29 0x1d  0x598301f0  21d71cf0 21d71d01 21d71e83 21d71f59
  Comb  Black  SPDIF Out at Ext Rear      30 0x1e  0x014b1130  21e71c30 21e71d11 21e71e4b 21e71f01
    1/8  Black  Speaker at Ext Rear        31 0x1f  0x411111f0  21f71cf0 21f71d11 21f71e11 21f71f41
--------------------------------------------------------------------------------------------------------


  Jack  Color  Description                  Node    PinDefault            Modified Verbs
--------------------------------------------------------------------------------------------------------
    1/8  Green  Line Out at Ext Rear        20 0x14  0x01014410  21471c10 21471d40 21471e01 21471f01
    1/8  Black  Line Out at Ext Rear        21 0x15  0x01011412  21571c60 21571d10 21571e01 21571f01
    1/8  Orange  Line Out at Ext Rear        22 0x16  0x01016411  21671c70 21671d60 21671e01 21671f01
    1/8    Grey  Line Out at Ext Rear        23 0x17  0x01012414  21771c80 21771d20 21771e01 21771f01
    1/8    Pink  Mic at Ext Rear            24 0x18  0x01a19c40  21871c40 21871d90 21871ea1 21871f01
    1/8    Pink  Mic at Ext Front            25 0x19  0x02a19c50  21971c50 21971d90 21971ea1 21971f01
    1/8    Blue  Line In at Ext Rear        26 0x1a  0x0181344f  21a71c90 21a71d30 21a71e81 21a71f01
    1/8  Green  HP Out at Ext Front        27 0x1b  0x02214c20  21b71c20 21b71d40 21b71e21 21b71f01
  ATAPI Unknown  Line In at Int ATAPI        29 0x1d  0x598301f0  21d71cf0 21d71d00 21d71e83 21d71f50
  Comb  Black  SPDIF Out at Ext Rear      30 0x1e  0x014b1130  21e71c30 21e71d10 21e71e4b 21e71f01
--------------------------------------------------------------------------------------------------------

How do I convert those hex strings for the ConfigData, which is in this format:

AUccEAFHHUABRx4RAUcfAQFXHBIBVx0gAVce
AQFXHwEBZxwRAWcdYAFnHgEBZx8BAXccFAF3
HRABdx4BAXcfAQGHHDABhx2ZAYceoQGHHwEB
lxw/AZcdkAGXHqEBlx8CAaccMQGnHTEBpx6B
AacfAQG3HB8Btx1AAbceIQG3HwIBxxwyAccd
AQHHHjMBxx+ZAdccAAHXHQEB1x4AAdcfQAHn
HGAB5x0BAeceRQHnH4EB9xwAAfcdAQH3HgAB
9x9A


Thanks..

mimayin 11-21-2009 02:04 PM

NM figured it out, wish me luck :)

max.1974 12-01-2009 03:09 PM

Alc 262 for snow leopard..please!!!
 
Hi everyone...tks for a lot help!!!
I need ask a very great favor: send me by mail or download link, the compiled kexts that i need replace in Snow [email protected]

ALC262 SONY VAIO VGN-NS150AE

Im a inexperient user to compiled my on, so sorry my bad english...

Best regards...i hope some mail about that!!!

TKS!!!!

max.1974 12-02-2009 03:58 AM

Please My firends...post kext....ALC 262
 
Please...i need that kext modified...AppleHDA.kext for my ALC262...
I suplies for help...just post or send by mail...im very tired to look around (google)

Thanks...