Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d358aefd authored by Ulrich Eckhardt's avatar Ulrich Eckhardt Committed by Mauro Carvalho Chehab
Browse files

[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: default avatarUlrich Eckhardt <uli@uli-eckhardt.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 4cdd32b4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1678,7 +1678,8 @@ static void imon_incoming_packet(struct imon_context *ictx,
		if (press_type == 0)
			rc_keyup(ictx->rdev);
		else {
			if (ictx->rc_type == RC_BIT_RC6_MCE)
			if (ictx->rc_type == RC_BIT_RC6_MCE ||
			    ictx->rc_type == RC_BIT_OTHER)
				rc_keydown(ictx->rdev,
					   ictx->rc_type == RC_BIT_RC6_MCE ? RC_TYPE_RC6_MCE : RC_TYPE_OTHER,
					   ictx->rc_scancode, ictx->rc_toggle);