Jump to content

HDEF -->Store (Package (?)


  • Please log in to reply
5 replies to this topic

#1
XmodD

XmodD

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 106 posts
  • Gender:Male
  • Location:Germany Cologe
Good Evening ....
I need some help with my HDEF. In my Original DSDT were no HDEF so I created my own. First I only inserted the device ID. But now I added some more definitions. So now I have got a Problem with Store (Package (0x6E) I do not know how the part in () has to be defined.

So can someone help me out???

Thank you anyway

XmodD







  Device (HDEF)
                        {
                                Name (_ADR, 0x001B0000)
                                Name (_S3D, 0x03)
                                Name (RID, Zero)
                                Name (_PRW, Package (0x02)
                                {
                                        0x0D,
                                        0x04
                                })
                                Method (_DSM, 4, NotSerialized)
                                {
                                        Store (Package (0x6E)
                                                {
                                                 "hda-gfx", 
                             /**** This is needed for HDMI Audio  ****/Buffer (0x0A)
                             {
                                 "onboard-2"
                             }, 
                                                        "AAPL,slot-name",
                                                        Buffer (0x09)
                                                        {
                                                                "Built in"
                                                        },
                                                        "device-id",  /**** This is the Oriinal Conexant HD CX20671 ID  ****/ 
                                                        Buffer (0x04)
                                                        {
                                                                0x6E, 0x50, 0xF1, 0x14 
                                                        },
                                                        "layout-id",
                                                        Buffer (0x04)
                                                        {
                                                                0x0C, 0x00, 0x00, 0x00
                                                        },
                                                        "model",
                                                        Buffer (0x1A)
                                                        {
                                                                "HD Audio Conexant Cx20671"
                                                        },
                                                        "name",
                                                        Buffer (0x11)
                                                        {
                                                                "Conexant Cx20671"
                                                        },
                                                        "device_type",
                                                        Buffer (0x11)
                                                        {
                                                                "Audio Controller"
                                                        },
                                                        "PinConfigurations",
                                                        Buffer (One)
                                                        {
                                                                0x00
                                                        }
                                                }, Local0)
                                        DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                                        Return (Local0)
                                }
                        }
                        



#2
juanerson

juanerson

    InsanelyMac Legend

  • Local Moderators
  • 1,486 posts
  • Gender:Male
  • Location:Tru, Venezuela
Hi. The easy way... just leave it empty (), than the Disassembler/Compiler IASL (recent versions) should calculate it automatically.

Furthermore, manually you can make a sum of the number of Buffer entries, or something like that inside the Package. For example:
"hda-gfx"
+ "AAPL,slot-name"
+ "device-id"
+ blablabla, etc... = 8 in total. Then, the Package should be X 2 = 16 in decimal. And need to convert to hexadecimal, which is 0x10.

Hex Calculator Widget

#3
RYIK

RYIK

    InsanelyMac Protégé

  • Members
  • Pip
  • 24 posts
  • Gender:Male
  • Location:Ukraine
  • Interests:MacOSX, Windows OS, IT Security

Change to

Device (HDEF)
						{
								Name (_ADR, 0x001B0000)
								Name (_S3D, 0x03)
								Name (RID, Zero)
								Name (_PRW, Package (0x02)
								{
										0x0D,
										0x04
								})
								Method (_DSM, 4, NotSerialized)
								{
										Store (Package ()
												{
												 "hda-gfx",
							 /**** This is needed for HDMI Audio  ****/Buffer (0x0A)
							 {
								 "onboard-2"
							 },
														"AAPL,slot-name",
														Buffer (0x09)
														{
																"Built in"
														},
														"device-id",  /**** This is the Oriinal Conexant HD CX20671 ID  ****/
														Buffer (0x04)
														{
																0x6E, 0x50, 0xF1, 0x14
														},
														"layout-id",
														Buffer (0x04)
														{
																0x0C, 0x00, 0x00, 0x00
														},
														"model",
														Buffer (0x1A)
														{
																"HD Audio Conexant Cx20671"
														},
														"name",
														Buffer (0x11)
														{
																"Conexant Cx20671"
														},
														"device_type",
														Buffer (0x11)
														{
																"Audio Controller"
														},
														"PinConfigurations",
														Buffer (One)
														{
																0x00
														}
												}, Local0)
										DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
										Return (Local0)
								}
						}



#4
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,509 posts
  • Gender:Male
  • Location:Tampa, Florida
i just used a voodoohda for cx20671 i found in snow works with output or speakers.
http://www.insanelym...howtopic=211225
103c is hp/compaq

#5
XmodD

XmodD

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 106 posts
  • Gender:Male
  • Location:Germany Cologe
Hey thanks for the answers. I left it blank () and it worked out thanks a lot. I patched AppleHDA to run with cx20671 cause with VoodooHDA I had no auto switching. My AppleHDA works fine. Currently there are some NodeIDs missing in platform.xml so it shows only speakers. But both Headphone and speaker works. Also auto switching. @ LatinMcG u got auto input switching???

Thx u guys a lot

#6
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,509 posts
  • Gender:Male
  • Location:Tampa, Florida

Hey thanks for the answers. I left it blank () and it worked out thanks a lot. I patched AppleHDA to run with cx20671 cause with VoodooHDA I had no auto switching. My AppleHDA works fine. Currently there are some NodeIDs missing in platform.xml so it shows only speakers. But both Headphone and speaker works. Also auto switching. @ LatinMcG u got auto input switching???

Thx u guys a lot


havent tested .. will ask friend. i think he manualy selects it on the audo setings.





1 user(s) are reading this topic

1 members, 0 guests, 0 anonymous users


© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy