diff options
author | Dmitry Torokhov <dtor@insightbb.com> | 2006-08-04 22:53:24 -0400 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2006-08-04 22:53:24 -0400 |
commit | c3c38fbd0cc8cc200a65b2ca7700e4dddedc13a0 (patch) | |
tree | 8e68190cf244c39bc295e0392341aff34714ea81 | |
parent | c605b679144a39f291debd7031a4ada0337f02ef (diff) |
Input: ati_remote - add missing input_sync()
When emulating button toggle drivers need to send input_sync()
between 'down' and 'up' events, otherwise some users might miss
keypress because device's state is only considered finalized
after EV_SYN/SYN_REPORT is received.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
-rw-r--r-- | drivers/usb/input/ati_remote.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/input/ati_remote.c b/drivers/usb/input/ati_remote.c index bdf144bf7f1b..5a56f6cb36a8 100644 --- a/drivers/usb/input/ati_remote.c +++ b/drivers/usb/input/ati_remote.c | |||
@@ -489,6 +489,7 @@ static void ati_remote_input_report(struct urb *urb, struct pt_regs *regs) | |||
489 | input_regs(dev, regs); | 489 | input_regs(dev, regs); |
490 | input_event(dev, ati_remote_tbl[index].type, | 490 | input_event(dev, ati_remote_tbl[index].type, |
491 | ati_remote_tbl[index].code, 1); | 491 | ati_remote_tbl[index].code, 1); |
492 | input_sync(dev); | ||
492 | input_event(dev, ati_remote_tbl[index].type, | 493 | input_event(dev, ati_remote_tbl[index].type, |
493 | ati_remote_tbl[index].code, 0); | 494 | ati_remote_tbl[index].code, 0); |
494 | input_sync(dev); | 495 | input_sync(dev); |