summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ec/lenovo/h8/h8.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ec/lenovo/h8/h8.c b/src/ec/lenovo/h8/h8.c
index 560c39cb87..f81a39cb24 100644
--- a/src/ec/lenovo/h8/h8.c
+++ b/src/ec/lenovo/h8/h8.c
@@ -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)