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

Commit e998c92d authored by Sean Young's avatar Sean Young Committed by Mauro Carvalho Chehab
Browse files

[media] rc: rc6 decoder should report protocol correctly



When reporting decoded protocol use the enum rather than the bitmap.

Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 6db01688
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -248,7 +248,7 @@ static int ir_rc6_decode(struct rc_dev *dev, struct ir_raw_event ev)
				toggle = 0;
				break;
			case 24:
				protocol = RC_BIT_RC6_6A_24;
				protocol = RC_TYPE_RC6_6A_24;
				toggle = 0;
				break;
			case 32:
@@ -257,7 +257,7 @@ static int ir_rc6_decode(struct rc_dev *dev, struct ir_raw_event ev)
					toggle = !!(scancode & RC6_6A_MCE_TOGGLE_MASK);
					scancode &= ~RC6_6A_MCE_TOGGLE_MASK;
				} else {
					protocol = RC_BIT_RC6_6A_32;
					protocol = RC_TYPE_RC6_6A_32;
					toggle = 0;
				}
				break;