aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/media/usb/em28xx/em28xx-reg.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-12-15 08:29:11 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-12-21 21:15:52 -0200
commit105e3687ada4ebe6dfbda7abc3b16106f86a787d (patch)
tree5ee99fa789d1dee9ca1c1ad8e56c354c92b8c37d /drivers/media/usb/em28xx/em28xx-reg.h
parentem28xx: add two missing tuners at the Kconfig file (diff)
downloadwireguard-linux-105e3687ada4ebe6dfbda7abc3b16106f86a787d.tar.xz
wireguard-linux-105e3687ada4ebe6dfbda7abc3b16106f86a787d.zip
[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>
Diffstat (limited to 'drivers/media/usb/em28xx/em28xx-reg.h')
-rw-r--r--drivers/media/usb/em28xx/em28xx-reg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/usb/em28xx/em28xx-reg.h b/drivers/media/usb/em28xx/em28xx-reg.h
index 6ff368297f6e..2ad357354d81 100644
--- a/drivers/media/usb/em28xx/em28xx-reg.h
+++ b/drivers/media/usb/em28xx/em28xx-reg.h
@@ -177,6 +177,7 @@
/* em2874 IR config register (0x50) */
#define EM2874_IR_NEC 0x00
+#define EM2874_IR_NEC_NO_PARITY 0x01
#define EM2874_IR_RC5 0x04
#define EM2874_IR_RC6_MODE_0 0x08
#define EM2874_IR_RC6_MODE_6A 0x0b