summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2015-05-24 03:17:42 +0200
committerStefan Reinauer <stefan.reinauer@coreboot.org>2015-07-07 02:40:50 +0200
commitf6dde95e8722bf8b5cfbba9469f3aabea3a593ab (patch)
treeaf8973f39d3a755bccfdcc39950906134bfd252e /src
parent49a8c8a3adc94c76542389b0bb3dcabec9eb7280 (diff)
downloadcoreboot-f6dde95e8722bf8b5cfbba9469f3aabea3a593ab.tar.xz
ec/lenovo/h8: silence sound on boot
Fix a bug when a sound was generated while going into suspend. E.g. When a low battery sound is played while going into suspend a sample is stuck in this register. The user will hear a sample forever. Change-Id: I103a5f462c8044ef5875a9adf812234b5e6960ac Signed-off-by: Alexander Couzens <lynxis@fe80.eu> Reviewed-on: http://review.coreboot.org/10297 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Nicolas Reinecke <nr@das-labor.org>
Diffstat (limited to 'src')
-rw-r--r--src/ec/lenovo/h8/h8.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ec/lenovo/h8/h8.c b/src/ec/lenovo/h8/h8.c
index 46480f4174..2cafc88847 100644
--- a/src/ec/lenovo/h8/h8.c
+++ b/src/ec/lenovo/h8/h8.c
@@ -233,6 +233,9 @@ static void h8_enable(struct device *dev)
ec_write(H8_SOUND_REPEAT, 0x00);
+ /* silence sounds in queue */
+ ec_write(H8_SOUND_REG, 0x00);
+
ec_write(0x10, conf->event0_enable);
ec_write(0x11, conf->event1_enable);
ec_write(0x12, conf->event2_enable);