[media] ati_remote: switch to single-byte scancodes
authorAnssi Hannula <anssi.hannula@iki.fi>
Wed, 7 Dec 2011 01:34:29 +0000 (22:34 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 11 Dec 2011 12:51:59 +0000 (10:51 -0200)
commit5eefb4f09bd8b250421fbd055e67d136d57f4030
tree7463a7dc35dd9c5dc40b55dad92f7b2552468d38
parent6b806e30a3149816454a7ab71d50c244ebdb27d1
[media] ati_remote: switch to single-byte scancodes

The ati_remote driver currently uses 2-byte scancodes. However, one of
those bytes is actually a checksum and therefore shouldn't be considered
as part of the scancode.

Fix the driver to only use the actual data byte as a scancode and to
check the checksum itself. Update the bundled keymaps accordingly.

Since ati_remote was only migrated to the rc subsystem for 3.2, the
previous scancodes weren't emitted on any stable kernel.

Reported-by: George Spelvin <linux@horizon.com>
Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/rc/ati_remote.c
drivers/media/rc/keymaps/rc-ati-x10.c
drivers/media/rc/keymaps/rc-medion-x10.c
drivers/media/rc/keymaps/rc-snapstream-firefly.c