V4L/DVB: V4L: dvb-usb, add extra sync to down-up input events
authorJiri Slaby <jslaby@suse.cz>
Sun, 14 Feb 2010 20:36:25 +0000 (17:36 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:11:02 +0000 (15:11 -0300)
commit18718c96e3e10e6b821d32c50adde9fa5cc6565a
tree4e4893c06e3af7ac41802c4d0a2d6e27a3b1b53f
parentfdd70c3399fc448a87487b287f4f0dcfb2e9c52c
V4L/DVB: V4L: dvb-usb, add extra sync to down-up input events

Userspace is allowed to coalesce events between SYNCs. And since the code
emits UP right after DOWN for the same key, it may be missed
(up+down=nothing). Add an extra sync in between UP and DOWN events to disable
the coalesce.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Acked-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/dib0700_core.c
drivers/media/dvb/dvb-usb/dvb-usb-remote.c