Lenovo H8: Always clear audio mute
authorSven Schnelle <svens@stackframe.org>
Fri, 19 Aug 2011 11:43:04 +0000 (13:43 +0200)
committerPeter Stuge <peter@stuge.se>
Fri, 19 Aug 2011 12:17:06 +0000 (14:17 +0200)
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 <svens@stackframe.org>
Reviewed-on: http://review.coreboot.org/162
Reviewed-by: Peter Stuge <peter@stuge.se>
Tested-by: build bot (Jenkins)
src/ec/lenovo/h8/h8.c

index 2c25d29141341843e0f1e81fb9b69c7528ef8be2..560c39cb872d6ae216a5a19d68aa393ed30cf47a 100644 (file)
@@ -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 = {