diff options
author | Andy Walls <awalls@radix.net> | 2009-09-27 19:55:41 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:40:21 -0500 |
commit | dbda8f701abb0e4693a30e9bef4a2301d1c8ea80 (patch) | |
tree | f9c4b4ccde78509d3dcc874def16df49861188ec /drivers/media/video/cx23885/cx23885-ir.c | |
parent | 1d23a002434802078d806ddc2937bd69bbbd6dc8 (diff) |
V4L/DVB (13100): cx23885: Add IR input keypress handling and enable for the HVR-1850
This changes adds IR Rx keypress input event handling to the CX23885 module.
This change specifically only adds input handling for IR devices implemented as
v4l2_subdevices, using only the pulse width mode (for now), and only with
RC-5 remotes. The V4L-DVB infrastructure is missing too much to support RC-6
mode 6A as used in many media center remotes. The grey Hauppauge RC-5 remote
and HVR-1850 IR receiver work now.
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx23885/cx23885-ir.c')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-ir.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/video/cx23885/cx23885-ir.c b/drivers/media/video/cx23885/cx23885-ir.c index e84f90c75bf1..6ae982cc9856 100644 --- a/drivers/media/video/cx23885/cx23885-ir.c +++ b/drivers/media/video/cx23885/cx23885-ir.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <media/v4l2-device.h> | 24 | #include <media/v4l2-device.h> |
25 | 25 | ||
26 | #include "cx23885.h" | 26 | #include "cx23885.h" |
27 | #include "cx23885-input.h" | ||
27 | 28 | ||
28 | #define CX23885_IR_RX_FIFO_SERVICE_REQ 0 | 29 | #define CX23885_IR_RX_FIFO_SERVICE_REQ 0 |
29 | #define CX23885_IR_RX_END_OF_RX_DETECTED 1 | 30 | #define CX23885_IR_RX_END_OF_RX_DETECTED 1 |
@@ -51,6 +52,9 @@ void cx23885_ir_rx_work_handler(struct work_struct *work) | |||
51 | 52 | ||
52 | if (events == 0) | 53 | if (events == 0) |
53 | return; | 54 | return; |
55 | |||
56 | if (dev->ir_input) | ||
57 | cx23885_input_rx_work_handler(dev, events); | ||
54 | } | 58 | } |
55 | 59 | ||
56 | void cx23885_ir_tx_work_handler(struct work_struct *work) | 60 | void cx23885_ir_tx_work_handler(struct work_struct *work) |