forked from RehabMan/Intel-NUC-DSDT-Patch
-
Notifications
You must be signed in to change notification settings - Fork 3
/
SSDT-HDAU.dsl
29 lines (26 loc) · 837 Bytes
/
SSDT-HDAU.dsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Automatic injection of HDAU properties
// Note: Only for Haswell and Broadwell
//DefinitionBlock("", "SSDT", 2, "hack", "_HDAU", 0)
//{
External(_SB.PCI0.HDAU, DeviceObj)
External(\RMDA, IntObj)
//External(RMCF.AUDL, IntObj)
// inject properties for audio
Method(_SB.PCI0.HDAU._DSM, 4)
{
If (Ones == \RMCF.AUDL) { Return(0) }
If (!Arg2) { Return (Buffer() { 0x03 } ) }
Local0 = Package()
{
"layout-id", Buffer(4) { },
"hda-gfx", Buffer() { "onboard-1" },
}
// set layout-id value based on \RMCF.AUDL
CreateDWordField(DerefOf(Local0[1]), 0, AUDL)
AUDL = \RMCF.AUDL
// disable "hda-gfx" injection if \RMDA is present
If (CondRefOf(\RMDA)) { Local0[2] = "#hda-gfx" }
Return(Local0)
}
//}
//EOF