diff options
author | Andy Walls <awalls@md.metrocast.net> | 2010-07-18 18:57:25 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-08 22:42:54 -0400 |
commit | 5a28d9a320c865007da830c065bcaecfe91b3932 (patch) | |
tree | 60ca62e075c8b917165582707f1b0748512a471e /include/media/v4l2-subdev.h | |
parent | d06d5777b211112e8355e2f5a700c6a9babfdd6f (diff) |
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 'include/media/v4l2-subdev.h')
-rw-r--r-- | include/media/v4l2-subdev.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h index 9195ad490ee2..a780cca185fd 100644 --- a/include/media/v4l2-subdev.h +++ b/include/media/v4l2-subdev.h | |||
@@ -379,7 +379,10 @@ struct v4l2_subdev_ir_parameters { | |||
379 | u32 max_pulse_width; /* ns, valid only for baseband signal */ | 379 | u32 max_pulse_width; /* ns, valid only for baseband signal */ |
380 | unsigned int carrier_freq; /* Hz, valid only for modulated signal*/ | 380 | unsigned int carrier_freq; /* Hz, valid only for modulated signal*/ |
381 | unsigned int duty_cycle; /* percent, valid only for modulated signal*/ | 381 | unsigned int duty_cycle; /* percent, valid only for modulated signal*/ |
382 | bool invert; /* logically invert sense of mark/space */ | 382 | bool invert_level; /* invert signal level */ |
383 | |||
384 | /* Tx only */ | ||
385 | bool invert_carrier_sense; /* Send 0/space as a carrier burst */ | ||
383 | 386 | ||
384 | /* Rx only */ | 387 | /* Rx only */ |
385 | u32 noise_filter_min_width; /* ns, min time of a valid pulse */ | 388 | u32 noise_filter_min_width; /* ns, min time of a valid pulse */ |