Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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 <mchehab@osg.samsung.com>
Acked-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>

+1 -1
+1 -1
drivers/media/rc/ir-rc5-decoder.c
··· 53 53 u32 scancode; 54 54 enum rc_type protocol; 55 55 56 - if (!(dev->enabled_protocols & (RC_BIT_RC5 | RC_BIT_RC5X))) 56 + if (!(dev->enabled_protocols & (RC_BIT_RC5 | RC_BIT_RC5X | RC_BIT_RC5_SZ))) 57 57 return 0; 58 58 59 59 if (!is_timing_event(ev)) {