From: LiPeng Huang <huanglipeng@vivo.com>
When certain infrared remote controls send codes, the kernel side
does not receive them, which is due to a timeout in transmission.
Modifying the maximum timeout time in this area can solve this issue.
Signed-off-by: LiPeng Huang <huanglipeng@vivo.com>
---
include/media/rc-core.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/media/rc-core.h b/include/media/rc-core.h
index 35c7a0546f02..9214f3fc174d 100644
--- a/include/media/rc-core.h
+++ b/include/media/rc-core.h
@@ -303,7 +303,7 @@ struct ir_raw_event {
#define US_TO_NS(usec) ((usec) * 1000)
#define MS_TO_US(msec) ((msec) * 1000)
-#define IR_MAX_DURATION MS_TO_US(500)
+#define IR_MAX_DURATION MS_TO_US(1000)
#define IR_DEFAULT_TIMEOUT MS_TO_US(125)
#define IR_MAX_TIMEOUT LIRC_VALUE_MASK
--
2.34.1