diff options
author | Sean Young <sean@mess.org> | 2018-03-23 23:59:52 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-04-20 16:15:18 +0300 |
commit | 95d1544eb643847e05df06c3de252609593c9073 (patch) | |
tree | e9e4375d60c6644996d1bef7a3175de7ab66a7ed /include | |
parent | a86d6df84ae6eb1fd1ca6cbd03f16637674a6af8 (diff) | |
download | linux-95d1544eb643847e05df06c3de252609593c9073.tar.xz |
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 * |