This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: ir-ctl/keytable: rc-mm protocol support
Author:  Sean Young <s...@mess.org>
Date:    Tue Feb 19 09:48:59 2019 +0000

Signed-off-by: Sean Young <s...@mess.org>

 utils/common/ir-encode.c        | 3 +++
 utils/ir-ctl/ir-ctl.1.in        | 3 ++-
 utils/keytable/ir-keytable.1.in | 4 ++--
 utils/keytable/keytable.c       | 2 ++
 4 files changed, 9 insertions(+), 3 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=5da0a28799f730f8f795ebdc06de633de5237aea
diff --git a/utils/common/ir-encode.c b/utils/common/ir-encode.c
index ccc7503251ee..4bd1b694f14a 100644
--- a/utils/common/ir-encode.c
+++ b/utils/common/ir-encode.c
@@ -372,6 +372,9 @@ static const struct {
        [RC_PROTO_XMP] = { "xmp" },
        [RC_PROTO_CEC] = { "cec" },
        [RC_PROTO_IMON] = { "imon", 0x7fffffff },
+       [RC_PROTO_RCMM12] = { "rc-mm-12", 0x0fff },
+       [RC_PROTO_RCMM24] = { "rc-mm-24", 0xffffff },
+       [RC_PROTO_RCMM32] = { "rc-mm-32", 0xffffffff },
 };
 
 static bool str_like(const char *a, const char *b)
diff --git a/utils/ir-ctl/ir-ctl.1.in b/utils/ir-ctl/ir-ctl.1.in
index b9a401e1643d..c3ab118f6969 100644
--- a/utils/ir-ctl/ir-ctl.1.in
+++ b/utils/ir-ctl/ir-ctl.1.in
@@ -181,7 +181,8 @@ pulse and space file. The following protocols are supported:
 \fBrc5\fR, \fBrc5x_20\fR, \fBrc5_sz\fR, \fBjvc\fR, \fBsony12\fR,
 \fBsony\fB15\fR, \fBsony20\fR, \fBnec\fR, \fBnecx\fR, \fBnec32\fR,
 \fBsanyo\fR, \fBrc6_0\fR, \fBrc6_6a_20\fR, \fBrc6_6a_24\fR, \fBrc6_6a_32\fR,
-\fBrc6_mce\fR, \fBsharp\fR, \fBimon\fR.
+\fBrc6_mce\fR, \fBsharp\fR, \fBimon\fR, \fBrc_mm_12\fR, \fBrc_mm_24\fR,
+\fBrc_mm_32\fR.
 If the scancode starts with 0x it will be interpreted as a
 hexadecimal number, and if it starts with 0 it will be interpreted as an
 octal number.
diff --git a/utils/keytable/ir-keytable.1.in b/utils/keytable/ir-keytable.1.in
index ef4aabce6ec1..47fa1dfe3842 100644
--- a/utils/keytable/ir-keytable.1.in
+++ b/utils/keytable/ir-keytable.1.in
@@ -85,8 +85,8 @@ a set of scancode1=keycode1,scancode2=keycode2.. value pairs
 Comma separated list of kernel protocols to be enabled (case insensitive).
 Supported kernel protocols are: \fBnec\fR, \fBrc\-5\fR, \fBrc\-6\fR, \fBjvc\fR,
 \fBsony\fR, \fBsanyo\fR, \fBrc\-5\-sz\fR, \fBsharp\fR, \fBmce\-kbd\fR,
-\fBxmp\fR, \fBimon\fR, \fBother\fR, \fBall\fR. It can also be a BPF protocol,
-e.g. \fBmanchester\fR, \fBrc_mm\fR, \fBpulse_distance\fR, \fBpulse_length\fR.
+\fBxmp\fR, \fBimon\fR, \fBrc\-mm\fR, \fBother\fR, \fBall\fR. It can also be a 
BPF protocol,
+e.g. \fBmanchester\fR, \fBpulse_distance\fR, \fBpulse_length\fR.
 If it does not match any of these, it is taken to be the path of BPF decoder
 to be loaded.
 .IP \fIPARAMETERS\fR
diff --git a/utils/keytable/keytable.c b/utils/keytable/keytable.c
index 0aceb015d8a9..0726e5fda247 100644
--- a/utils/keytable/keytable.c
+++ b/utils/keytable/keytable.c
@@ -127,6 +127,7 @@ enum sysfs_protocols {
        SYSFS_XMP               = (1 << 12),
        SYSFS_CEC               = (1 << 13),
        SYSFS_IMON              = (1 << 14),
+       SYSFS_RCMM              = (1 << 15),
        SYSFS_INVALID           = 0,
 };
 
@@ -161,6 +162,7 @@ const struct protocol_map_entry protocol_map[] = {
        { "xmp",        "/xmp_decoder", SYSFS_XMP       },
        { "cec",        NULL,           SYSFS_CEC       },
        { "imon",       NULL,           SYSFS_IMON      },
+       { "rc-mm",      NULL,           SYSFS_RCMM      },
        { NULL,         NULL,           SYSFS_INVALID   },
 };
 

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to