提交 e998c92d 编写于 作者: S Sean Young 提交者: 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: NSean Young <sean@mess.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册