From 6901b561eb39904c0d44c59e71c58952b690d8d8 Mon Sep 17 00:00:00 2001 From: Sven Schnelle Date: Fri, 19 Aug 2011 13:43:04 +0200 Subject: [PATCH] Lenovo H8: Always clear audio mute The mute bit is set by ACPI before poweroff/going to suspend. So clear it after resume, to have working volume control even if the ACPI doesn't clear it on resume. OSPM should control Audio mute with ec bit 0x30:6, so it is safe to clear this bit even if the user has audio muted. Change-Id: I18bebe532bf21cfb61b3d294a396bf15012f9f1a Signed-off-by: Sven Schnelle Reviewed-on: http://review.coreboot.org/162 Reviewed-by: Peter Stuge Tested-by: build bot (Jenkins) --- src/ec/lenovo/h8/h8.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ec/lenovo/h8/h8.c b/src/ec/lenovo/h8/h8.c index 2c25d2914..560c39cb8 100644 --- a/src/ec/lenovo/h8/h8.c +++ b/src/ec/lenovo/h8/h8.c @@ -141,6 +141,8 @@ static void h8_enable(device_t dev) if (!get_option(&val, "volume")) ec_write(H8_VOLUME_CONTROL, val); + + h8_set_audio_mute(0); } struct chip_operations ec_lenovo_h8_ops = { -- 2.25.1