Files
LibreELEC.tv/packages/sysutils/v4l-utils/patches/v4l-utils-03-irctl-fix-rc6-on-32bit.patch
Matthias Reichl 9ab6b71716 v4l-utils: fix sending scancodes with ir-ctl
- fix sending multiple scancodes with configurable gap
- fix sending rc6 scancodes on 32bit platforms

Patches are backported from v4l-utils master branch

Signed-off-by: Matthias Reichl <hias@horus.com>
2017-12-01 10:08:47 +01:00

30 lines
827 B
Diff

From 9a20a75e132e26f6c49971f9818c6fad053875f2 Mon Sep 17 00:00:00 2001
From: Sean Young <sean@mess.org>
Date: Wed, 2 Aug 2017 11:47:23 -0400
Subject: [PATCH] ir-ctl: "ir-ctl -S rc6_mce:0x800f0410" does not work on
32-bit
0x800f0410 does not fit in 32-bit signed long.
Signed-off-by: Sean Young <sean@mess.org>
---
utils/ir-ctl/ir-ctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/utils/ir-ctl/ir-ctl.c b/utils/ir-ctl/ir-ctl.c
index 3d66063af..562a05da3 100644
--- a/utils/ir-ctl/ir-ctl.c
+++ b/utils/ir-ctl/ir-ctl.c
@@ -152,7 +152,7 @@ static int strtoint(const char *p, const char *unit)
static bool strtoscancode(const char *p, unsigned *ret)
{
char *end;
- long arg = strtol(p, &end, 0);
+ long long arg = strtoll(p, &end, 0);
if (end == NULL || end[0] != 0)
return false;
--
2.11.0