summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2012-08-25 22:46:52 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-09-25 18:09:10 +0200
commit30cedcf34f0309ea1ad6e0fdf7a52fcf37985658 (patch)
tree3307f959a006e5e8eac21cd14091300bc2af90c2
parent[media] stk1160: Stop device and unqueue buffers when start_streaming() fails (diff)
downloadlinux-30cedcf34f0309ea1ad6e0fdf7a52fcf37985658.tar.xz
linux-30cedcf34f0309ea1ad6e0fdf7a52fcf37985658.zip
[media] winbond-cir: correctness fix
This is a minor correctness fix for the duration calculation in winbond-cir (the read value should be incremented by one). Signed-off-by: David Härdeman <david@hardeman.nu> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/rc/winbond-cir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/rc/winbond-cir.c b/drivers/media/rc/winbond-cir.c
index 54ee34872d14..29e6769b91a8 100644
--- a/drivers/media/rc/winbond-cir.c
+++ b/drivers/media/rc/winbond-cir.c
@@ -358,7 +358,7 @@ wbcir_irq_rx(struct wbcir_data *data, struct pnp_dev *device)
if (data->rxstate == WBCIR_RXSTATE_ERROR)
continue;
rawir.pulse = irdata & 0x80 ? false : true;
- rawir.duration = US_TO_NS((irdata & 0x7F) * 10);
+ rawir.duration = US_TO_NS(((irdata & 0x7F) + 1) * 10);
ir_raw_event_store_with_filter(data->dev, &rawir);
}