View Single Post
 
Old 09-07-2009, 05:17 AM
chris7519 chris7519 is offline
Cheetah
 
Join Date: May 2009
Posts: 10
Quote:
Originally Posted by mormegil View Post
If it's not there, just insert the HDEF code under Device (PCI0)
Thanks for the advice mormegil!!! Got audio up and running... however, I'm running into the no sound after sleep issue. Is it possible to fix this through the DSDT? I thought maybe inserting "Notify (\_SB.PCI0.HDEF, 0x02)" into the Method (_L05... or Method (_L0D... section might work, but so far unsuccessful.

Scope (GPE) section:
Code:
Scope (_GPE)
    {
        Method (_L01, 0, NotSerialized)
        {
            Add (L01C, One, L01C)
            P8XH (Zero, One)
            P8XH (One, L01C)
            TRAP (TRTI, 0xA1)
            If (LAnd (LEqual (RP1D, Zero), \_SB.PCI0.EXP1.HPSX))
            {
                Sleep (0x64)
                If (\_SB.PCI0.EXP1.PDCX)
                {
                    Store (One, \_SB.PCI0.EXP1.PDCX)
                    Store (One, \_SB.PCI0.EXP1.HPSX)
                    Notify (\_SB.PCI0.EXP1, Zero)
                    Store (One, PRM0)
                    Store (PEHS, SSMP)
                }
                Else
                {
                    Store (One, \_SB.PCI0.EXP1.HPSX)
                }
            }

            If (LAnd (LEqual (RP2D, Zero), \_SB.PCI0.EXP2.HPSX))
            {
                Sleep (0x64)
                If (\_SB.PCI0.EXP2.PDCX)
                {
                    Store (One, \_SB.PCI0.EXP2.PDCX)
                    Store (One, \_SB.PCI0.EXP2.HPSX)
                    Notify (\_SB.PCI0.EXP2, Zero)
                    Store (0x02, PRM0)
                    Store (PEHS, SSMP)
                }
                Else
                {
                    Store (One, \_SB.PCI0.EXP2.HPSX)
                }
            }

            If (LAnd (LEqual (RP4D, Zero), \_SB.PCI0.EXP4.HPSX))
            {
                Sleep (0x64)
                If (\_SB.PCI0.EXP4.PDCX)
                {
                    Store (One, \_SB.PCI0.EXP4.PDCX)
                    Store (One, \_SB.PCI0.EXP4.HPSX)
                    Notify (\_SB.PCI0.EXP4, Zero)
                    Store (0x04, PRM0)
                    Store (PEHS, SSMP)
                }
                Else
                {
                    Store (One, \_SB.PCI0.EXP4.HPSX)
                }
            }

            If (LAnd (LEqual (CRPS, One), LGreaterEqual (MCHD, 0x04)))
            {
                If (LAnd (LEqual (RP5D, Zero), \_SB.PCI0.EXP5.HPSX))
                {
                    Sleep (0x64)
                    If (\_SB.PCI0.EXP5.PDCX)
                    {
                        Store (One, \_SB.PCI0.EXP5.PDCX)
                        Store (One, \_SB.PCI0.EXP5.HPSX)
                        If (\_SB.PCI0.EXP5.PDSX)
                        {
                            TRAP (TRTI, 0x5A)
                            CMSW (0x75, Zero)
                            If (And (One, \_SB.PCI0.LPC.EC0.SW2S))
                            {
                                CMSW (0x75, 0xAA)
                                Store (Zero, \_SB.PCI0.EXP5.J380.D3EF)
                            }
                        }

                        Notify (\_SB.PCI0.EXP5, Zero)
                        Store (0x05, PRM0)
                        Store (PEHS, SSMP)
                    }
                    Else
                    {
                        Store (One, \_SB.PCI0.EXP5.HPSX)
                    }
                }
            }

            If (LAnd (LEqual (RP6D, Zero), \_SB.PCI0.EXP6.HPSX))
            {
                Sleep (0x64)
                If (\_SB.PCI0.EXP6.PDCX)
                {
                    Store (One, \_SB.PCI0.EXP6.PDCX)
                    Store (One, \_SB.PCI0.EXP6.HPSX)
                    Notify (\_SB.PCI0.EXP6, Zero)
                    Store (0x06, PRM0)
                    Store (PEHS, SSMP)
                }
                Else
                {
                    Store (One, \_SB.PCI0.EXP6.HPSX)
                }
            }
        }

        Method (_L06, 0, NotSerialized)
        {
            If (LAnd (\_SB.PCI0.OVGA.GSSE, LNot (GSMI)))
            {
                \_SB.PCI0.OVGA.GSCI ()
            }
            Else
            {
                If (LEqual (And (\_SB.PCI0.ESCS, 0x08), 0x08))
                {
                    Store (One, Local0)
                    Store (\_SB.PCI0.T0IS, \_SB.PCI0.T0IS)
                    Store (\_SB.PCI0.T0IS, Local0)
                    Store (\_SB.PCI0.T1IS, \_SB.PCI0.T1IS)
                    Store (\_SB.PCI0.T1IS, Local0)
                    Store (One, SCIS)
                    Store (One, \_SB.PCI0.GTSE)
                }
                Else
                {
                    Store (One, SCIS)
                }
            }
        }

        Method (_L07, 0, NotSerialized)
        {
        }

        Method (_L08, 0, NotSerialized)
        {
        }

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

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

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

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

        Method (_L20, 0, NotSerialized)
        {
        }

        Method (_L0D, 0, NotSerialized)
        {
        }

        Method (_L0E, 0, NotSerialized)
        {
        }

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