]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
[media] em28xx: add support for NEC proto variants on em2874 and upper
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 15 Dec 2012 11:29:11 +0000 (08:29 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 21 Dec 2012 23:15:52 +0000 (21:15 -0200)
commit105e3687ada4ebe6dfbda7abc3b16106f86a787d
tree5ee99fa789d1dee9ca1c1ad8e56c354c92b8c37d
parent37285bf2a516a808f1282540badcaf847340a154
[media] em28xx: add support for NEC proto variants on em2874 and upper

By disabling the NEC parity check, it is possible to handle all 3 NEC
protocol variants (32, 24 or 16 bits).
Change the driver in order to handle all of them.
Unfortunately, em2860/em2863 provide only 16 bits for the IR scancode,
even when NEC parity is disabled. So, this change should affect only
em2874 and newer devices, with provides up to 32 bits for the scancode.
Tested with one NEC-16, one NEC-24 and one RC5 IR.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/em28xx/em28xx-input.c
drivers/media/usb/em28xx/em28xx-reg.h