diff options
author | Sean Young | 2018-03-23 21:47:37 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab | 2018-04-20 15:14:31 +0200 |
commit | a86d6df84ae6eb1fd1ca6cbd03f16637674a6af8 (patch) | |
tree | 0d66f7424a12d1c5521f797823be5c24838c3340 /drivers/media/rc/rc-core-priv.h | |
parent | media: rc: report receiver and transmitter type on device register (diff) | |
download | kernel-qcow2-linux-a86d6df84ae6eb1fd1ca6cbd03f16637674a6af8.tar.gz kernel-qcow2-linux-a86d6df84ae6eb1fd1ca6cbd03f16637674a6af8.tar.xz kernel-qcow2-linux-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/rc-core-priv.h')
-rw-r--r-- | drivers/media/rc/rc-core-priv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/rc/rc-core-priv.h b/drivers/media/rc/rc-core-priv.h index e0e6a17460f6..f78551344eca 100644 --- a/drivers/media/rc/rc-core-priv.h +++ b/drivers/media/rc/rc-core-priv.h @@ -37,6 +37,7 @@ struct ir_raw_handler { int (*encode)(enum rc_proto protocol, u32 scancode, struct ir_raw_event *events, unsigned int max); u32 carrier; + u32 min_timeout; /* These two should only be used by the mce kbd decoder */ int (*raw_register)(struct rc_dev *dev); |