summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2018-03-23 16:59:52 -0400
committerTao Huang <huangtao@rock-chips.com>2018-12-10 20:36:35 +0800
commitd43c56cdfdca605c001b06232b5d2222b0fc01c3 (patch)
tree6d3d3cdfc6d943cfcaf46bd4599b9daba9348681 /include/uapi
parent3822f577e6a956a71ae68b3847e8edcbbb57e684 (diff)
UPSTREAM: media: rc: add ioctl to get the current timeout
Since the kernel now modifies the timeout, make it possible to retrieve the current value. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> (cherry picked from commit 95d1544eb643847e05df06c3de252609593c9073) Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com> Conflicts: Documentation/media/uapi/rc/lirc-set-rec-timeout.rst
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/lirc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/uapi/linux/lirc.h b/include/uapi/linux/lirc.h
index cb1f83257ee6..b99c940b05d3 100644
--- a/include/uapi/linux/lirc.h
+++ b/include/uapi/linux/lirc.h
@@ -133,6 +133,12 @@
#define LIRC_SET_WIDEBAND_RECEIVER _IOW('i', 0x00000023, __u32)
/*
+ * Return the recording timeout, which is either set by
+ * the ioctl LIRC_SET_REC_TIMEOUT or by the kernel after setting the protocols.
+ */
+#define LIRC_GET_REC_TIMEOUT _IOR('i', 0x00000024, __u32)
+
+/*
* struct lirc_scancode - decoded scancode with protocol for use with
* LIRC_MODE_SCANCODE
*