Skip to content

Commit cef8348

Browse files
committed
[media] rc5-decoder: BZ#85721: Fix RC5-SZ decoding
Changeset e87b540 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 parent 14edb59 commit cef8348

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/media/rc/ir-rc5-decoder.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static int ir_rc5_decode(struct rc_dev *dev, struct ir_raw_event ev)
5353
u32 scancode;
5454
enum rc_type protocol;
5555

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)))
5757
return 0;
5858

5959
if (!is_timing_event(ev)) {

0 commit comments

Comments
 (0)