Lenovo H8: Fix h8_set_audio_mute()

Logic is inverted (if argument is true, one would expect that
mute is enabled) and the wrong bit was used (1 instead 0)

Change-Id: I71133ba639f1fb0d3c3582f16211dd266a11cc64
Signed-off-by: Sven Schnelle <svens@stackframe.org>
Reviewed-on: http://review.coreboot.org/334
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Sven Schnelle 2011-10-25 15:29:47 +02:00 committed by Stefan Reinauer
parent 2b1fbbbc89
commit d0ea6789e6
1 changed files with 4 additions and 4 deletions

View File

@ -63,12 +63,12 @@ static void h8_log_ec_version(void)
fwvh >> 4, fwvh & 0x0f, fwvl >> 4, 0x41 + (fwvl & 0xf));
}
void h8_set_audio_mute(int on)
void h8_set_audio_mute(int mute)
{
if (on)
ec_clr_bit(0x3a, 0);
if (mute)
ec_set_bit(0x3a, 0);
else
ec_set_bit(0x3a, 1);
ec_clr_bit(0x3a, 0);
}
void h8_enable_event(int event)