diff mbox

v4l-utils: keytable: add support for imon protocol

Message ID 20180323104919.gof5vqu7hu3refpi@gofer.mess.org (mailing list archive)
State New, archived
Headers show

Commit Message

Sean Young March 23, 2018, 10:49 a.m. UTC
Signed-off-by: Sean Young <sean@mess.org>
---
 utils/common/ir-encode.c  | 1 +
 utils/keytable/keytable.c | 2 ++
 2 files changed, 3 insertions(+)
diff mbox

Patch

diff --git a/utils/common/ir-encode.c b/utils/common/ir-encode.c
index e6b65b5b..c7e319eb 100644
--- a/utils/common/ir-encode.c
+++ b/utils/common/ir-encode.c
@@ -376,6 +376,7 @@  static const struct {
 	[RC_PROTO_MCIR2_MSE] = { "mcir2-mse" },
 	[RC_PROTO_XMP] = { "xmp" },
 	[RC_PROTO_CEC] = { "cec" },
+	[RC_PROTO_IMON] = { "imon", 0x7fffffff },
 };
 
 static bool str_like(const char *a, const char *b)
diff --git a/utils/keytable/keytable.c b/utils/keytable/keytable.c
index 925eab00..482fcf86 100644
--- a/utils/keytable/keytable.c
+++ b/utils/keytable/keytable.c
@@ -116,6 +116,7 @@  enum sysfs_protocols {
 	SYSFS_SHARP		= (1 << 11),
 	SYSFS_XMP		= (1 << 12),
 	SYSFS_CEC		= (1 << 13),
+	SYSFS_IMON		= (1 << 14),
 	SYSFS_INVALID		= 0,
 };
 
@@ -149,6 +150,7 @@  const struct protocol_map_entry protocol_map[] = {
 	{ "sharp",	NULL,		SYSFS_SHARP	},
 	{ "xmp",	"/xmp_decoder",	SYSFS_XMP	},
 	{ "cec",	NULL,		SYSFS_CEC	},
+	{ "imon",	NULL,		SYSFS_IMON	},
 	{ NULL,		NULL,		SYSFS_INVALID	},
 };