media: rc: mce_kbd decoder: fix stuck keys
Subsystems (3)
This is an automatic generated email to let you know that the following patch were queued:
Subject: media: rc: mce_kbd decoder: fix stuck keys Author: Sean Young <[email protected]> Date: Sun Apr 8 06:36:40 2018 -0400
The MCE Remote sends a 0 scancode when keys are released. If this is not received or decoded, then keys can get "stuck"; the keyup event is not sent since the input_sync() is missing from the timeout handler.
Signed-off-by Sean Young <[email protected]>
Signed-off-by Mauro Carvalho Chehab <[email protected]>
drivers/media/rc/ir-mce_kbd-decoder.c | 2 ++ 1 file changed, 2 insertions(+)
---
drivers/media/rc/ir-mce_kbd-decoder.c +2 -0
@@ -130,6 +130,8 @@ static void mce_kbd_rx_timeout(struct timer_list *t)for (i =0 ; i <MCIR2_MASK_KEYS_START ; i++)input_report_key (raw->mce_kbd.idev, kbd_keycodes[i],0 ); + +input_sync (raw->mce_kbd.idev); }static enum mce_kbd_mode mce_kbd_mode (struct mce_kbd_dec *data)