]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: lirc: increase IR_MAX_DURATION to send extended code sequences
authorLiPeng Huang <huanglipeng@vivo.com>
Thu, 5 Feb 2026 01:48:52 +0000 (09:48 +0800)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 17 Mar 2026 13:43:57 +0000 (14:43 +0100)
commita93a51f42ac354425a252210183c4151d991f75d
tree0826de266ff35774c50a38e2770971c33d660576
parent1f03894b2830e21f62659a803d76d06918deb3b3
media: lirc: increase IR_MAX_DURATION to send extended code sequences

 sensor:increase IR_MAX_DURATION to 1000ms
 to fix long IR remote timeouts Certain infrared remotes
 (e.g., brand-specific smart home remotes, custom consumer electronics)
 send extended code sequences that exceed the default 500ms
 IR_MAX_DURATION threshold. This causes the kernel's raw
 IR driver to discard incomplete code, resulting in unrecognized commands.

Increase IR_MAX_DURATION to 1000ms:
- Aligns with common extended IR protocol specs
 (most long sequences use 700-900ms)
- No impact on standard remotes
 (all mainstream IR codes are <500ms)
- Validated on vivo X200 and vivo X300,
 resolves timeout issues without regressions

Signed-off-by: LiPeng Huang <huanglipeng@vivo.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/rc/gpio-ir-tx.c
include/media/rc-core.h