From bc608339545dc0561d1170e5a57b54b5bd74f3ea Mon Sep 17 00:00:00 2001 From: Sven Schnelle Date: Mon, 4 Apr 2011 15:19:59 +0000 Subject: X60: assert audio mute before entering Suspend Signed-off-by: Sven Schnelle Acked-by: Sven Schnelle git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6479 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/mainboard/lenovo/x60/acpi/ec.asl | 7 +++++++ src/mainboard/lenovo/x60/acpi/platform.asl | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/mainboard/lenovo/x60/acpi/ec.asl b/src/mainboard/lenovo/x60/acpi/ec.asl index 043b72ef56..85ea4914ba 100644 --- a/src/mainboard/lenovo/x60/acpi/ec.asl +++ b/src/mainboard/lenovo/x60/acpi/ec.asl @@ -35,6 +35,8 @@ Device(EC) HSPA, 1, Offset (0x0C), LEDS, 8, /* LED state */ + Offset (0x3a), + AMUT, 1, /* Audio Mute */ Offset (0x3B), , 1, KBLT, 1, /* Keyboard Light */ @@ -66,6 +68,11 @@ Device(EC) { } + Method (MUTE, 1, NotSerialized) + { + Store(Arg0, AMUT) + } + /* Sleep Button pressed */ Method(_Q13, 0, NotSerialized) { diff --git a/src/mainboard/lenovo/x60/acpi/platform.asl b/src/mainboard/lenovo/x60/acpi/platform.asl index 1cd5c66932..85a987bae0 100644 --- a/src/mainboard/lenovo/x60/acpi/platform.asl +++ b/src/mainboard/lenovo/x60/acpi/platform.asl @@ -67,8 +67,7 @@ Method(_PIC, 1) Method(_PTS,1) { - // Call a trap so SMI can prepare for Sleep as well. - // TRAP(0x55) + \_SB.PCI0.LPCB.EC.MUTE(1) } /* The _WAK method is called on system wakeup */ -- cgit v1.2.3