Skip to content

Commit

Permalink
DSL changes for microphone LED state
Browse files Browse the repository at this point in the history
  • Loading branch information
x authored and x committed May 29, 2020
1 parent 8844f76 commit 7320f08
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CLOVER/ACPI/patched/SSDT-EXT4-WakeScreen.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ DefinitionBlock("", "SSDT", 2, "OCLT", "EXT4", 0)
External(_SB.LID0, DeviceObj)
External(_SB.PCI0.LPCB.LID, DeviceObj)
External(_SB.PCI0.LPCB.LID0, DeviceObj)

External(_SB.PCI0.LPCB.EC.WKBD, MethodObj)

Method (EXT4, 1, NotSerialized)
{
Expand All @@ -27,6 +29,11 @@ DefinitionBlock("", "SSDT", 2, "OCLT", "EXT4", 0)
{
Notify (\_SB.PCI0.LPCB.LID0, 0x80)
}

If (CondRefOf ( \_SB.PCI0.LPCB.EC.WKBD))
{
\_SB.PCI0.LPCB.EC.WKBD ()
}
}
}
}
Expand Down
16 changes: 16 additions & 0 deletions CLOVER/ACPI/patched/SSDT-KBD.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,22 @@ DefinitionBlock ("", "SSDT", 2, "hack", "_KBD", 0x00000000)
Name (LED1, Zero)
Name (LED2, Zero)

Method (WKBD, 0, NotSerialized)
{
If (_OSI ("Darwin"))
{
// Toggle Mute Microphone LED
If ((LED1 == Zero))
{
\_SB.PCI0.LPCB.EC.HKEY.MMTS (Zero)
}
Else
{
\_SB.PCI0.LPCB.EC.HKEY.MMTS (0x02)
}
}
}

Method (_Q14, 0, NotSerialized) // _Qxx: EC Query
{
Notify (\_SB.PCI0.LPCB.KBD, 0x0206)
Expand Down

0 comments on commit 7320f08

Please sign in to comment.