projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c605b67
)
Input: ati_remote - add missing input_sync()
author
Dmitry Torokhov
<dtor@insightbb.com>
Sat, 5 Aug 2006 02:53:24 +0000
(22:53 -0400)
committer
Dmitry Torokhov
<dtor@insightbb.com>
Sat, 5 Aug 2006 02:53:24 +0000
(22:53 -0400)
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>
drivers/usb/input/ati_remote.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/input/ati_remote.c
b/drivers/usb/input/ati_remote.c
index bdf144bf7f1b2dc3aaab8371fe7b4da46591cf9c..5a56f6cb36a84804a9538717feb7ee3b103bf434 100644
(file)
--- 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)
input_regs(dev, regs);
input_event(dev, ati_remote_tbl[index].type,
ati_remote_tbl[index].code, 1);
+ input_sync(dev);
input_event(dev, ati_remote_tbl[index].type,
ati_remote_tbl[index].code, 0);
input_sync(dev);