Jump to content

HD4000 HDMI Audio + ALC892


badaxe2
 Share

2 posts in this topic

Recommended Posts

Hi guys,

 

Could somebody explain to me how I combine these two HDEF into one so I can get HDMI Audio and ALC892 at the same time ?

 

            Method (_DSM, 4, NotSerialized)
            {
                Store (Package (0x06)
                    {
                        "layout-id", 
                        Buffer (0x04)
                        {
                            0x01, 0x00, 0x00, 0x00
                        }, 


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


                        "PinConfigurations", 
                        Buffer (Zero) {}
                    }, Local0)
                DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                Return (Local0)
            }

 

+

 

Device (HDEF)        {
            Name (_ADR, 0x001B0000)  // _ADR: Address
            OperationRegion (HDAR, PCI_Config, 0x4C, 0x10)
            Field (HDAR, WordAcc, NoLock, Preserve)
            {
                DCKA,   1, 
                Offset (0x01), 
                DCKM,   1, 
                    ,   6, 
                DCKS,   1, 
                Offset (0x08), 
                    ,   15, 
                PMES,   1
            }

            Method (_PRW, 0, NotSerialized)  // _PRW: Power Resources for Wake
            {
                Return (GPRW (0x0D, 0x04))
            }

            Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
            {
                Store (Package (0x08)
                    {
                        "layout-id", 
                        Buffer (0x04)
                        {
                             0x01, 0x00, 0x00, 0x00
                        }, 

                        "codec-id", 
                        Buffer (0x04)
                        {
                             0x92, 0x08, 0xEC, 0x10
                        }, 

                        "device-type", 
                        Buffer (0x11)
                        {
                            "ALC892"
                        }, 

                        "PinConfigurations", 
                        Buffer (Zero) {}
                    }, Local0)
                DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                Return (Local0)
            }        }
Link to comment
Share on other sites

Hi guys,

 

Could somebody explain to me how I combine these two HDEF into one so I can get HDMI Audio and ALC892 at the same time ?

 

 

            Method (_DSM, 4, NotSerialized)
            {
                Store (Package (0x06)
                    {
                        "layout-id", 
                        Buffer (0x04)
                        {
                            0x01, 0x00, 0x00, 0x00
                        }, 


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


                        "PinConfigurations", 
                        Buffer (Zero) {}
                    }, Local0)
                DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                Return (Local0)
            }
 

+[/size]

 

 

Device (HDEF)        {
            Name (_ADR, 0x001B0000)  // _ADR: Address
            OperationRegion (HDAR, PCI_Config, 0x4C, 0x10)
            Field (HDAR, WordAcc, NoLock, Preserve)
            {
                DCKA,   1, 
                Offset (0x01), 
                DCKM,   1, 
                    ,   6, 
                DCKS,   1, 
                Offset (0x08), 
                    ,   15, 
                PMES,   1
            }

            Method (_PRW, 0, NotSerialized)  // _PRW: Power Resources for Wake
            {
                Return (GPRW (0x0D, 0x04))
            }

            Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
            {
                Store (Package (0x08)
                    {
                        "layout-id", 
                        Buffer (0x04)
                        {
                             0x01, 0x00, 0x00, 0x00
                        }, 

                        "codec-id", 
                        Buffer (0x04)
                        {
                             0x92, 0x08, 0xEC, 0x10
                        }, 

                        "device-type", 
                        Buffer (0x11)
                        {
                            "ALC892"
                        }, 

                        "PinConfigurations", 
                        Buffer (Zero) {}
                    }, Local0)
                DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                Return (Local0)
            }        }

 

Add the "hda-gfx" from the first to the second:

           Name (_ADR, 0x001B0000)  // _ADR: Address
            OperationRegion (HDAR, PCI_Config, 0x4C, 0x10)
            Field (HDAR, WordAcc, NoLock, Preserve)
            {
                DCKA,   1, 
                Offset (0x01), 
                DCKM,   1, 
                    ,   6, 
                DCKS,   1, 
                Offset (0x08), 
                    ,   15, 
                PMES,   1
            }

            Method (_PRW, 0, NotSerialized)  // _PRW: Power Resources for Wake
            {
                Return (GPRW (0x0D, 0x04))
            }

            Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
            {
                Store (Package (10) //changed package size
                    {
                        "hda-gfx", Buffer() { "onboard-1" },
                        "layout-id", 
                        Buffer (0x04)
                        {
                             0x01, 0x00, 0x00, 0x00
                        }, 

                        "codec-id", 
                        Buffer (0x04)
                        {
                             0x92, 0x08, 0xEC, 0x10
                        }, 

                        "device-type", 
                        Buffer (0x11)
                        {
                            "ALC892"
                        }, 

                        "PinConfigurations", 
                        Buffer (Zero) {}
                    }, Local0)
                DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                Return (Local0)
Chances are, however, that you're doing something fundamentally wrong.
Link to comment
Share on other sites

 Share

×
×
  • Create New...