diff mbox series

[v4l-utils,2/2] rc-mm protocol support

Message ID 20190219095811.31946-2-sean@mess.org (mailing list archive)
State New, archived
Headers show
Series [v4l-utils,1/2] ir-ctl/keytable: add see also to reference to man pages | expand

Commit Message

Sean Young Feb. 19, 2019, 9:58 a.m. UTC
Signed-off-by: Sean Young <sean@mess.org>
---
 utils/common/ir-encode.c  | 3 +++
 utils/keytable/keytable.c | 2 ++
 2 files changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/utils/common/ir-encode.c b/utils/common/ir-encode.c
index ccc75032..4bd1b694 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/keytable/keytable.c b/utils/keytable/keytable.c
index 0aceb015..0726e5fd 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	},
 };