mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 09:10:55 +07:00
[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>
This commit is contained in:
parent
4cdd32b4ba
commit
d358aefdc0
@ -1678,7 +1678,8 @@ static void imon_incoming_packet(struct imon_context *ictx,
|
|||||||
if (press_type == 0)
|
if (press_type == 0)
|
||||||
rc_keyup(ictx->rdev);
|
rc_keyup(ictx->rdev);
|
||||||
else {
|
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,
|
rc_keydown(ictx->rdev,
|
||||||
ictx->rc_type == RC_BIT_RC6_MCE ? RC_TYPE_RC6_MCE : RC_TYPE_OTHER,
|
ictx->rc_type == RC_BIT_RC6_MCE ? RC_TYPE_RC6_MCE : RC_TYPE_OTHER,
|
||||||
ictx->rc_scancode, ictx->rc_toggle);
|
ictx->rc_scancode, ictx->rc_toggle);
|
||||||
|
Loading…
Reference in New Issue
Block a user