summaryrefslogtreecommitdiff
path: root/include/media
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2021-07-05 20:56:01 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-07-22 09:21:03 +0300
commit50634548d3c360c19013f665964e6c5b8300ff05 (patch)
tree78aa6b087e04e2a61cbee51f7a7b42a82d990938 /include/media
parent7300d0c2391a08d03b69100c454146b578322fa3 (diff)
downloadlinux-50634548d3c360c19013f665964e6c5b8300ff05.tar.xz
media: rc-loopback: max_timeout of UINT_MAX does not work
Any timeout larger than LIRC_VALUE_MASK cannot work for the lirc uapi. LIRC_VALUE_MASK is about 16 seconds which is more than enough. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/rc-core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/rc-core.h b/include/media/rc-core.h
index a1019c4ab5e8..64b43d76f7f0 100644
--- a/include/media/rc-core.h
+++ b/include/media/rc-core.h
@@ -313,6 +313,7 @@ struct ir_raw_event {
#define MS_TO_US(msec) ((msec) * 1000)
#define IR_MAX_DURATION MS_TO_US(500)
#define IR_DEFAULT_TIMEOUT MS_TO_US(125)
+#define IR_MAX_TIMEOUT LIRC_VALUE_MASK
void ir_raw_event_handle(struct rc_dev *dev);
int ir_raw_event_store(struct rc_dev *dev, struct ir_raw_event *ev);