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

[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
...@@ -248,7 +248,7 @@ static int ir_rc6_decode(struct rc_dev *dev, struct ir_raw_event ev) ...@@ -248,7 +248,7 @@ static int ir_rc6_decode(struct rc_dev *dev, struct ir_raw_event ev)
toggle = 0; toggle = 0;
break; break;
case 24: case 24:
protocol = RC_BIT_RC6_6A_24; protocol = RC_TYPE_RC6_6A_24;
toggle = 0; toggle = 0;
break; break;
case 32: case 32:
...@@ -257,7 +257,7 @@ static int ir_rc6_decode(struct rc_dev *dev, struct ir_raw_event ev) ...@@ -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); toggle = !!(scancode & RC6_6A_MCE_TOGGLE_MASK);
scancode &= ~RC6_6A_MCE_TOGGLE_MASK; scancode &= ~RC6_6A_MCE_TOGGLE_MASK;
} else { } else {
protocol = RC_BIT_RC6_6A_32; protocol = RC_TYPE_RC6_6A_32;
toggle = 0; toggle = 0;
} }
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment