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

[media] imon: fix other RC type protocol support

With kernel 3.17 the imon remote control for device 15c2:0034 does not
work anymore, which uses the OTHER protocol. Only the front panel
buttons which uses the RC6 protocol are working.

Adds the missing comparison for the RC_BIT_OTHER.

Cc: stable@vger.kernel.org # for Kernel 3.17
Signed-off-by: Ulrich Eckhardt <uli@uli-eckhardt.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>

authored by

Ulrich Eckhardt and committed by
Mauro Carvalho Chehab
d358aefd 4cdd32b4

+2 -1
+2 -1
drivers/media/rc/imon.c
··· 1678 1678 if (press_type == 0) 1679 1679 rc_keyup(ictx->rdev); 1680 1680 else { 1681 - if (ictx->rc_type == RC_BIT_RC6_MCE) 1681 + if (ictx->rc_type == RC_BIT_RC6_MCE || 1682 + ictx->rc_type == RC_BIT_OTHER) 1682 1683 rc_keydown(ictx->rdev, 1683 1684 ictx->rc_type == RC_BIT_RC6_MCE ? RC_TYPE_RC6_MCE : RC_TYPE_OTHER, 1684 1685 ictx->rc_scancode, ictx->rc_toggle);