From: Mauro Carvalho Chehab Date: Thu, 30 Oct 2014 09:54:12 +0000 (-0300) Subject: [media] rc5-decoder: BZ#85721: Fix RC5-SZ decoding X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cef83483341e258beed49ce78fb2cc0c46ab1757;p=linux-beck.git [media] rc5-decoder: BZ#85721: Fix RC5-SZ decoding 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 Acked-by: David Härdeman Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/rc/ir-rc5-decoder.c b/drivers/media/rc/ir-rc5-decoder.c index 2ef763928ca4..84fa6e9b59a1 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)) {