linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4l-utils 1/2] ir-ctl/keytable: add see also to reference to man pages
@ 2019-02-19  9:58 Sean Young
  2019-02-19  9:58 ` [PATCH v4l-utils 2/2] rc-mm protocol support Sean Young
  0 siblings, 1 reply; 2+ messages in thread
From: Sean Young @ 2019-02-19  9:58 UTC (permalink / raw)
  To: linux-media

Add hint to how you can start to figure out what protocol a remote
uses.

Signed-off-by: Sean Young <sean@mess.org>
---
 utils/ir-ctl/ir-ctl.1.in        | 3 +++
 utils/keytable/ir-keytable.1.in | 9 +++++++++
 2 files changed, 12 insertions(+)

diff --git a/utils/ir-ctl/ir-ctl.1.in b/utils/ir-ctl/ir-ctl.1.in
index 226bf606..f6192dab 100644
--- a/utils/ir-ctl/ir-ctl.1.in
+++ b/utils/ir-ctl/ir-ctl.1.in
@@ -233,3 +233,6 @@ License GPLv2: GNU GPL version 2 <http://gnu.org/licenses/gpl.html>.
 .br
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.
+.SH SEE ALSO
+To display decoded IR, or set IR decoding options, use
+ir\-keytable(1).
diff --git a/utils/keytable/ir-keytable.1.in b/utils/keytable/ir-keytable.1.in
index c8ff722e..e7fd7760 100644
--- a/utils/keytable/ir-keytable.1.in
+++ b/utils/keytable/ir-keytable.1.in
@@ -118,6 +118,13 @@ To read the current keytable, on the second remote controller:
 To enable NEC protocol and load a BPF protocol, with a parameter for the BPF protocol:
 .br
 	\fBir\-keytable \-p nec,pulse_distance \-e pulse_header=9000
+.PP
+If you do not know what protocol a remote uses, it can be helpful to first
+try with all kernel decoders enabled. The decoded protocol and scancodes
+will be displayed in the output:
+.br
+	\fBir\-keytable \-c \-p all \-t\fR
+
 .SH BUGS
 Report bugs to \fBLinux Media Mailing List <linux-media@vger.kernel.org>\fR
 .SH COPYRIGHT
@@ -127,3 +134,5 @@ License GPLv2: GNU GPL version 2 <http://gnu.org/licenses/gpl.html>.
 .br
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.
+.SH SEE ALSO
+To transmit IR or receive raw IR, use ir\-ctl(1).
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH v4l-utils 2/2] rc-mm protocol support
  2019-02-19  9:58 [PATCH v4l-utils 1/2] ir-ctl/keytable: add see also to reference to man pages Sean Young
@ 2019-02-19  9:58 ` Sean Young
  0 siblings, 0 replies; 2+ messages in thread
From: Sean Young @ 2019-02-19  9:58 UTC (permalink / raw)
  To: linux-media

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 --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	},
 };
 
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-02-19  9:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-19  9:58 [PATCH v4l-utils 1/2] ir-ctl/keytable: add see also to reference to man pages Sean Young
2019-02-19  9:58 ` [PATCH v4l-utils 2/2] rc-mm protocol support Sean Young

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).