diff options
author | Sean Young <sean@mess.org> | 2018-03-23 21:59:52 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-04-20 15:15:18 +0200 |
commit | 95d1544eb643847e05df06c3de252609593c9073 (patch) | |
tree | e9e4375d60c6644996d1bef7a3175de7ab66a7ed /include | |
parent | media: rc: set timeout to smallest value required by enabled protocols (diff) | |
download | linux-95d1544eb643847e05df06c3de252609593c9073.tar.xz linux-95d1544eb643847e05df06c3de252609593c9073.zip |
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')
-rw-r--r-- | include/uapi/linux/lirc.h | 6 |
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 * |