Jump to content

HDEF -->Store (Package (?)


XmodD
 Share

6 posts in this topic

Recommended Posts

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)
                               }
                       }


Link to comment
Share on other sites

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

Link to comment
Share on other sites

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)
							}
					}

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

 Share

×
×
  • Create New...