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>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
ed8c34d7ec
commit
a86d6df84a
@@ -226,6 +226,7 @@ static struct ir_raw_handler sharp_handler = {
|
||||
.decode = ir_sharp_decode,
|
||||
.encode = ir_sharp_encode,
|
||||
.carrier = 38000,
|
||||
.min_timeout = SHARP_ECHO_SPACE + SHARP_ECHO_SPACE / 4,
|
||||
};
|
||||
|
||||
static int __init ir_sharp_decode_init(void)
|
||||
|
Reference in New Issue
Block a user