]> git.baikalelectronics.ru Git - kernel.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)
commit147f3053a6996a8cacd0a41baa65c59e70c06c7a
tree5ee99fa789d1dee9ca1c1ad8e56c354c92b8c37d
parent5bf7fcebf4f8002a2ccd3dabb9d36f3341c5e71e
[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