Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] Use a more consistent value for RC repeat period

The default REP_PERIOD is 33 ms. This doesn't make sense for IR's,
as, in general, an IR repeat scancode is provided at every 110/115ms,
depending on the RC protocol. So, increase its default, to do a
better job avoiding ghost repeat events.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Acked-by: Jarod Wilson <jarod@redhat.com>

+7
+7
drivers/media/rc/rc-main.c
··· 1078 1078 */ 1079 1079 dev->input_dev->rep[REP_DELAY] = 500; 1080 1080 1081 + /* 1082 + * As a repeat event on protocols like RC-5 and NEC take as long as 1083 + * 110/114ms, using 33ms as a repeat period is not the right thing 1084 + * to do. 1085 + */ 1086 + dev->input_dev->rep[REP_PERIOD] = 125; 1087 + 1081 1088 path = kobject_get_path(&dev->dev.kobj, GFP_KERNEL); 1082 1089 printk(KERN_INFO "%s: %s as %s\n", 1083 1090 dev_name(&dev->dev),