mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
From cef83483341e258beed49ce78fb2cc0c46ab1757 Mon Sep 17 00:00:00 2001
|
|
From: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
|
|
Date: Thu, 30 Oct 2014 06:54:12 -0300
|
|
Subject: [media] rc5-decoder: BZ#85721: Fix RC5-SZ decoding
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Changeset e87b540be2dd broke RC5-SZ decoding, as it forgot to add
|
|
the extra bit check for the enabled protocols at the beginning of
|
|
the logic.
|
|
|
|
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
|
|
Acked-by: David Härdeman <david@hardeman.nu>
|
|
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
|
|
|
|
diff --git a/drivers/media/rc/ir-rc5-decoder.c b/drivers/media/rc/ir-rc5-decoder.c
|
|
index 2ef7639..84fa6e9 100644
|
|
--- a/drivers/media/rc/ir-rc5-decoder.c
|
|
+++ b/drivers/media/rc/ir-rc5-decoder.c
|
|
@@ -53,7 +53,7 @@ static int ir_rc5_decode(struct rc_dev *dev, struct ir_raw_event ev)
|
|
u32 scancode;
|
|
enum rc_type protocol;
|
|
|
|
- if (!(dev->enabled_protocols & (RC_BIT_RC5 | RC_BIT_RC5X)))
|
|
+ if (!(dev->enabled_protocols & (RC_BIT_RC5 | RC_BIT_RC5X | RC_BIT_RC5_SZ)))
|
|
return 0;
|
|
|
|
if (!is_timing_event(ev)) {
|
|
--
|
|
cgit v0.10.1
|
|
|