summaryrefslogtreecommitdiff
path: root/include/uapi/linux/lirc.h
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2018-03-23 16:59:52 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-04-20 09:15:18 -0400
commit95d1544eb643847e05df06c3de252609593c9073 (patch)
treee9e4375d60c6644996d1bef7a3175de7ab66a7ed /include/uapi/linux/lirc.h
parenta86d6df84ae6eb1fd1ca6cbd03f16637674a6af8 (diff)
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>
Diffstat (limited to 'include/uapi/linux/lirc.h')
-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 f189931042a7..6b319581882f 100644
--- a/include/uapi/linux/lirc.h
+++ b/include/uapi/linux/lirc.h
@@ -134,6 +134,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
*