V4L/DVB: dib0700: avoid bad repeat
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 1 Aug 2010 02:37:19 +0000 (23:37 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 2 Aug 2010 19:43:48 +0000 (16:43 -0300)
a 250ms delay is too low for this device. It ends by producing false
repeat events. Increase the delay time to 500 ms to avoid troubles.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/dib0700_core.c

index 164fa9c3bec1bf09e656afade5a6231df606a426..a05d95592226abd250581c9a256fd95bc8c058a1 100644 (file)
@@ -648,6 +648,9 @@ static int dib0700_probe(struct usb_interface *intf,
                        else
                                dev->props.rc.core.bulk_mode = false;
 
+                       /* Need a higher delay, to avoid wrong repeat */
+                       dev->rc_input_dev->rep[REP_DELAY] = 500;
+
                        dib0700_rc_setup(dev);
 
                        return 0;