浏览代码

V4L/DVB: dib0700: avoid bad repeat

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>
Mauro Carvalho Chehab 15 年之前
父节点
当前提交
8dc0900497
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      drivers/media/dvb/dvb-usb/dib0700_core.c

+ 3 - 0
drivers/media/dvb/dvb-usb/dib0700_core.c

@@ -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;