summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndi Shyti <andi.shyti@samsung.com>2016-06-13 12:53:38 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2016-12-14 13:51:02 +0900
commitf63147121cc85fe1d2b708c8b62e0c72a5cc34a4 (patch)
tree683ccd71219e9e850cb867c53d88c3b064426c75 /include
parentf77f82a4cd39f6deb1be8b1b3da132d2387791e6 (diff)
[media] include: lirc: add set length and frequency ioctl options
The Lirc framework works mainly with receivers, but there is nothing that prevents us from using it for transmitters as well. For that we need to have more control on the device frequency to set (which is a new concept fro LIRC) and we also need to provide to userspace, as feedback, the values of the used frequency and length. Add the LIRC_SET_LENGTH, LIRC_GET_FREQUENCY and LIRC_SET_FREQUENCY ioctl commands in order to allow the above mentioned operations. Change-Id: I50b08e4da89a61f4b14f8a2752b905bc9e4a1d34 Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/media/lirc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/media/lirc.h b/include/media/lirc.h
index 4b3ab2966b5a..c4a99a30e9aa 100644
--- a/include/media/lirc.h
+++ b/include/media/lirc.h
@@ -106,6 +106,7 @@
/* code length in bits, currently only for LIRC_MODE_LIRCCODE */
#define LIRC_GET_LENGTH _IOR('i', 0x0000000f, __u32)
+#define LIRC_SET_LENGTH _IOW('i', 0x00000010, __u32)
#define LIRC_SET_SEND_MODE _IOW('i', 0x00000011, __u32)
#define LIRC_SET_REC_MODE _IOW('i', 0x00000012, __u32)
@@ -116,6 +117,10 @@
#define LIRC_SET_REC_DUTY_CYCLE _IOW('i', 0x00000016, __u32)
#define LIRC_SET_TRANSMITTER_MASK _IOW('i', 0x00000017, __u32)
+/* driver dependent frequency settings */
+#define LIRC_GET_FREQUENCY _IOR('i', 0x00000024, __u32)
+#define LIRC_SET_FREQUENCY _IOW('i', 0x00000025, __u32)
+
/*
* when a timeout != 0 is set the driver will send a
* LIRC_MODE2_TIMEOUT data packet, otherwise LIRC_MODE2_TIMEOUT is