aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx25840
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/cx25840')
-rw-r--r--drivers/media/video/cx25840/cx25840-ir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/cx25840/cx25840-ir.c b/drivers/media/video/cx25840/cx25840-ir.c
index 34e284b06dfa..c2b4c14dc9ab 100644
--- a/drivers/media/video/cx25840/cx25840-ir.c
+++ b/drivers/media/video/cx25840/cx25840-ir.c
@@ -886,10 +886,10 @@ static int cx25840_ir_tx_write(struct v4l2_subdev *sd, u8 *buf, size_t count,
886 */ 886 */
887 for (i = 0; i < n; ) { 887 for (i = 0; i < n; ) {
888 for (j = 0; j < FIFO_TX_DEPTH / 2 && i < n; j++) { 888 for (j = 0; j < FIFO_TX_DEPTH / 2 && i < n; j++) {
889 mark = ns_pulse[i] & V4L2_SUBDEV_IR_PULSE_LEVEL_MASK; 889 mark = ns_pulse[i] & LEVEL_MASK;
890 fifo_pulse[j] = ns_to_pulse_width_count( 890 fifo_pulse[j] = ns_to_pulse_width_count(
891 ns_pulse[i] & 891 ns_pulse[i] &
892 ~V4L2_SUBDEV_IR_PULSE_LEVEL_MASK, 892 ~LEVEL_MASK,
893 ir_state->txclk_divider); 893 ir_state->txclk_divider);
894 if (mark) 894 if (mark)
895 fifo_pulse[j] &= FIFO_RXTX_LVL; 895 fifo_pulse[j] &= FIFO_RXTX_LVL;