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

[media] sanyo decoder: address was being truncated

The address is 13 bits but it was stuffed in an u8, so 5 bits are
missing from the scancode.
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent a56bc171
...@@ -56,7 +56,8 @@ static int ir_sanyo_decode(struct rc_dev *dev, struct ir_raw_event ev) ...@@ -56,7 +56,8 @@ static int ir_sanyo_decode(struct rc_dev *dev, struct ir_raw_event ev)
{ {
struct sanyo_dec *data = &dev->raw->sanyo; struct sanyo_dec *data = &dev->raw->sanyo;
u32 scancode; u32 scancode;
u8 address, command, not_command; u16 address;
u8 command, not_command;
if (!is_timing_event(ev)) { if (!is_timing_event(ev)) {
if (ev.reset) { if (ev.reset) {
......
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