XmodD Posted January 22, 2012 Share Posted January 22, 2012 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 https://www.insanelymac.com/forum/topic/274945-hdef-store-package/ Share on other sites More sharing options...
juanerson Posted January 22, 2012 Share Posted January 22, 2012 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 https://www.insanelymac.com/forum/topic/274945-hdef-store-package/#findComment-1788484 Share on other sites More sharing options...
RYIK Posted January 23, 2012 Share Posted January 23, 2012 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 https://www.insanelymac.com/forum/topic/274945-hdef-store-package/#findComment-1788623 Share on other sites More sharing options...
LatinMcG Posted January 23, 2012 Share Posted January 23, 2012 i just used a voodoohda for cx20671 i found in snow works with output or speakers. http://www.insanelymac.com/forum/index.php?showtopic=211225 103c is hp/compaq Link to comment https://www.insanelymac.com/forum/topic/274945-hdef-store-package/#findComment-1788723 Share on other sites More sharing options...
XmodD Posted January 24, 2012 Author Share Posted January 24, 2012 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 https://www.insanelymac.com/forum/topic/274945-hdef-store-package/#findComment-1789083 Share on other sites More sharing options...
LatinMcG Posted January 24, 2012 Share Posted January 24, 2012 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 https://www.insanelymac.com/forum/topic/274945-hdef-store-package/#findComment-1789147 Share on other sites More sharing options...
Recommended Posts