[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>
This commit is contained in:
parent
8ac456495a
commit
30cedcf34f
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user