summaryrefslogtreecommitdiffstats
path: root/drivers/media/IR/ir-core-priv.h
diff options
context:
space:
mode:
authorMaxim Levitsky2010-07-31 16:59:22 +0200
committerMauro Carvalho Chehab2010-08-09 04:43:00 +0200
commit4a702ebf61120906696f8366dd2be0653b1643e3 (patch)
treed83d2662edcf538ebcb6bac103bdcadbed430426 /drivers/media/IR/ir-core-priv.h
parentV4L/DVB: IR: Allow not to compile keymaps in (diff)
downloadkernel-qcow2-linux-4a702ebf61120906696f8366dd2be0653b1643e3.tar.gz
kernel-qcow2-linux-4a702ebf61120906696f8366dd2be0653b1643e3.tar.xz
kernel-qcow2-linux-4a702ebf61120906696f8366dd2be0653b1643e3.zip
V4L/DVB: IR: add helper function for hardware with small o/b buffer
Some ir input devices have small buffer, and interrupt the host each time it is full (or half full) Add a helper that automaticly handles timeouts, and also automaticly merges samples of same time (space-space) Such samples might be placed by hardware because size of sample in the buffer is small (a byte for example). Also remove constness from ir_dev_props, because it now contains timeout settings that driver might want to change Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com> Acked-by: Jarod Wilson <jarod@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/IR/ir-core-priv.h')
-rw-r--r--drivers/media/IR/ir-core-priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/IR/ir-core-priv.h b/drivers/media/IR/ir-core-priv.h
index be6817261c8f..8053e3b84272 100644
--- a/drivers/media/IR/ir-core-priv.h
+++ b/drivers/media/IR/ir-core-priv.h
@@ -41,6 +41,7 @@ struct ir_raw_event_ctrl {
/* raw decoder state follows */
struct ir_raw_event prev_ev;
+ struct ir_raw_event this_ev;
struct nec_dec {
int state;
unsigned count;