media: rc: meson-ir: lower timeout and make configurable
authorSean Young <sean@mess.org>
Mon, 12 Mar 2018 21:23:00 +0000 (17:23 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 21 Mar 2018 17:59:38 +0000 (13:59 -0400)
commitb358e747aebc4a52f20732d569ec04c6bc15d008
tree8be7e097b5b5e8d1a54e982e243415171e34fa5c
parent8d7a77ce56cdb5f50b83ca0c59a31362e1a5eeb4
media: rc: meson-ir: lower timeout and make configurable

A timeout of 200ms is much longer than necessary, and delays the decoding
decoding of a single scancode and the last scancode when a button is being
held. This makes the remote seem sluggish.

If the min_timeout and max_timeout values are set, the timeout is
configurable via the LIRC_SET_REC_TIMEOUT ioctl.

Tested-by: Matthias Reichl <hias@horus.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/meson-ir.c