linux: adding patch to increase repeat time fir IR devices (will be in 2.6.37)

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-09-20 18:34:31 +02:00
parent dc7e012c51
commit 0ad13fc8a1

View File

@ -0,0 +1,20 @@
X-Git-Url: http://git.linuxtv.org/media_tree.git?a=blobdiff_plain;f=drivers%2Fmedia%2FIR%2Fir-keytable.c;h=d00ef194f2e812daf26d11b13b82396ad196b8fd;hp=7e82a9df726b51ab6d90f00fc1b1fa22998c8862;hb=c9889354c6d36d6278ed851c74ace02d72efdd59;hpb=14a8e125f5713757e5e5f2911136033ed8bd5408
diff --git a/drivers/media/IR/ir-keytable.c b/drivers/media/IR/ir-keytable.c
index 7e82a9d..d00ef19 100644
--- a/drivers/media/IR/ir-keytable.c
+++ b/drivers/media/IR/ir-keytable.c
@@ -510,6 +510,13 @@ int __ir_input_register(struct input_dev *input_dev,
(ir_dev->props && ir_dev->props->driver_type == RC_DRIVER_IR_RAW) ?
" in raw mode" : "");
+ /*
+ * Default delay of 250ms is too short for some protocols, expecially
+ * since the timeout is currently set to 250ms. Increase it to 500ms,
+ * to avoid wrong repetition of the keycodes.
+ */
+ input_dev->rep[REP_DELAY] = 500;
+
return 0;
out_event: