mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
UPSTREAM: [media] rc: rc6 decoder should report protocol correctly
When reporting decoded protocol use the enum rather than the bitmap.
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
(cherry picked from commit e998c92d6c)
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
This commit is contained in:
@@ -248,7 +248,7 @@ again:
|
||||
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 @@ again:
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user