aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2010-02-14 15:36:25 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-02-26 13:11:02 -0500
commit18718c96e3e10e6b821d32c50adde9fa5cc6565a (patch)
tree4e4893c06e3af7ac41802c4d0a2d6e27a3b1b53f /drivers/media/dvb
parentfdd70c3399fc448a87487b287f4f0dcfb2e9c52c (diff)
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>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/dvb-usb/dib0700_core.c1
-rw-r--r--drivers/media/dvb/dvb-usb/dvb-usb-remote.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/dvb/dvb-usb/dib0700_core.c b/drivers/media/dvb/dvb-usb/dib0700_core.c
index 4450214e2c64..4f961d2d1817 100644
--- a/drivers/media/dvb/dvb-usb/dib0700_core.c
+++ b/drivers/media/dvb/dvb-usb/dib0700_core.c
@@ -612,6 +612,7 @@ static void dib0700_rc_urb_completion(struct urb *purb)
612 case REMOTE_KEY_REPEAT: 612 case REMOTE_KEY_REPEAT:
613 deb_info("key repeated\n"); 613 deb_info("key repeated\n");
614 input_event(d->rc_input_dev, EV_KEY, event, 1); 614 input_event(d->rc_input_dev, EV_KEY, event, 1);
615 input_sync(d->rc_input_dev);
615 input_event(d->rc_input_dev, EV_KEY, d->last_event, 0); 616 input_event(d->rc_input_dev, EV_KEY, d->last_event, 0);
616 input_sync(d->rc_input_dev); 617 input_sync(d->rc_input_dev);
617 break; 618 break;
diff --git a/drivers/media/dvb/dvb-usb/dvb-usb-remote.c b/drivers/media/dvb/dvb-usb/dvb-usb-remote.c
index 6b5ded9e7d5d..a03ef7efec9a 100644
--- a/drivers/media/dvb/dvb-usb/dvb-usb-remote.c
+++ b/drivers/media/dvb/dvb-usb/dvb-usb-remote.c
@@ -107,6 +107,7 @@ static void dvb_usb_read_remote_control(struct work_struct *work)
107 case REMOTE_KEY_REPEAT: 107 case REMOTE_KEY_REPEAT:
108 deb_rc("key repeated\n"); 108 deb_rc("key repeated\n");
109 input_event(d->rc_input_dev, EV_KEY, event, 1); 109 input_event(d->rc_input_dev, EV_KEY, event, 1);
110 input_sync(d->rc_input_dev);
110 input_event(d->rc_input_dev, EV_KEY, d->last_event, 0); 111 input_event(d->rc_input_dev, EV_KEY, d->last_event, 0);
111 input_sync(d->rc_input_dev); 112 input_sync(d->rc_input_dev);
112 break; 113 break;