summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx23885/cx23885-input.c
diff options
context:
space:
mode:
authorAndy Walls2010-07-19 00:57:25 +0200
committerMauro Carvalho Chehab2010-08-09 04:42:54 +0200
commit5a28d9a320c865007da830c065bcaecfe91b3932 (patch)
tree60ca62e075c8b917165582707f1b0748512a471e /drivers/media/video/cx23885/cx23885-input.c
parentV4L/DVB: cx25840: Add s_io_pin_config core subdev ops for the CX2388[578] (diff)
downloadkernel-qcow2-linux-5a28d9a320c865007da830c065bcaecfe91b3932.tar.gz
kernel-qcow2-linux-5a28d9a320c865007da830c065bcaecfe91b3932.tar.xz
kernel-qcow2-linux-5a28d9a320c865007da830c065bcaecfe91b3932.zip
V4L/DVB: v4l2_subdev, cx23885: Differentiate IR carrier sense and I/O pin inversion
There is a distinction on IR Tx for the CX2388[578] chips of carrier sense inversion (space is a carrier burst and mark is no burst) and I/O pin level inversion (0 is high output level, 1 is low output level). Allow the caller to set these parameters distinctly as v4l2_subdevice IR parameters. This permits the IR device to be configured and enabled without the IR Tx LED being on during idle/space time due to an external hardware level inversion Signed-off-by: Andy Walls <awalls@md.metrocast.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx23885/cx23885-input.c')
-rw-r--r--drivers/media/video/cx23885/cx23885-input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/cx23885/cx23885-input.c b/drivers/media/video/cx23885/cx23885-input.c
index d0b1613ede2f..496d751ffdc8 100644
--- a/drivers/media/video/cx23885/cx23885-input.c
+++ b/drivers/media/video/cx23885/cx23885-input.c
@@ -170,7 +170,7 @@ static int cx23885_input_ir_start(struct cx23885_dev *dev)
* mark is received as low logic level;
* falling edges are detected as rising edges; etc.
*/
- params.invert = true;
+ params.invert_level = true;
break;
}
v4l2_subdev_call(dev->sd_ir, ir, rx_s_parameters, &params);