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>
This commit is contained in:
parent
49a8c8a3ad
commit
f6dde95e87
|
@ -233,6 +233,9 @@ static void h8_enable(struct device *dev)
|
||||||
|
|
||||||
ec_write(H8_SOUND_REPEAT, 0x00);
|
ec_write(H8_SOUND_REPEAT, 0x00);
|
||||||
|
|
||||||
|
/* silence sounds in queue */
|
||||||
|
ec_write(H8_SOUND_REG, 0x00);
|
||||||
|
|
||||||
ec_write(0x10, conf->event0_enable);
|
ec_write(0x10, conf->event0_enable);
|
||||||
ec_write(0x11, conf->event1_enable);
|
ec_write(0x11, conf->event1_enable);
|
||||||
ec_write(0x12, conf->event2_enable);
|
ec_write(0x12, conf->event2_enable);
|
||||||
|
|
Loading…
Reference in New Issue