]> 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)
commit8e68f63d219265e5d04290f3eeda1d999385a8a6
tree5ee99fa789d1dee9ca1c1ad8e56c354c92b8c37d
parent3046bc7d21645ad1e5882fd1b39201a7d919b271
[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