[media] saa7134: NEC scancode fix
This driver codes the two address bytes in reverse order when compared to the other drivers, so make it consistent (and update the keymap, note that the result is a prefix change from 0x6b86 -> 0x866b, and the latter is pretty common among the NECX keymaps. While not conclusive, it's still a strong hint that the change is correct). Signed-off-by: David Härdeman <david@hardeman.nu> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
120703f9eb
commit
0bc56cbef9
@ -346,7 +346,7 @@ static int get_key_beholdm6xx(struct IR_i2c *ir, enum rc_type *protocol,
|
||||
return 0;
|
||||
|
||||
*protocol = RC_TYPE_NEC;
|
||||
*scancode = RC_SCANCODE_NECX(((data[10] << 8) | data[11]), data[9]);
|
||||
*scancode = RC_SCANCODE_NECX(data[11] << 8 | data[10], data[9]);
|
||||
*toggle = 0;
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user