aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/ir-imon-decoder.c
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2018-03-23 16:47:37 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-04-20 09:14:31 -0400
commita86d6df84ae6eb1fd1ca6cbd03f16637674a6af8 (patch)
tree0d66f7424a12d1c5521f797823be5c24838c3340 /drivers/media/rc/ir-imon-decoder.c
parentmedia: rc: report receiver and transmitter type on device register (diff)
downloadlinux-dev-a86d6df84ae6eb1fd1ca6cbd03f16637674a6af8.tar.xz
linux-dev-a86d6df84ae6eb1fd1ca6cbd03f16637674a6af8.zip
media: rc: set timeout to smallest value required by enabled protocols
The longer the IR timeout, the longer the rc device waits until delivering the trailing space. So, by reducing this timeout, we reduce the delay for the last scancode to be delivered. Note that the lirc daemon disables all protocols, in which case we revert back to the default value. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/rc/ir-imon-decoder.c')
-rw-r--r--drivers/media/rc/ir-imon-decoder.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/rc/ir-imon-decoder.c b/drivers/media/rc/ir-imon-decoder.c
index a1ff06a26542..52ea3b2fda74 100644
--- a/drivers/media/rc/ir-imon-decoder.c
+++ b/drivers/media/rc/ir-imon-decoder.c
@@ -170,6 +170,7 @@ static struct ir_raw_handler imon_handler = {
.decode = ir_imon_decode,
.encode = ir_imon_encode,
.carrier = 38000,
+ .min_timeout = IMON_UNIT * IMON_BITS * 2,
};
static int __init ir_imon_decode_init(void)