aboutsummaryrefslogtreecommitdiffstats
path: root/include/media/ir-common.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-03-20 19:59:44 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-17 23:52:56 -0400
commita3572c34da8dacc78a629211a91cf34e9b408701 (patch)
tree281efd4d69b68bd4720668fd91cfcf16d1ed3089 /include/media/ir-common.h
parent0210894956cf57d525d56341cc3e0f3d5d2db659 (diff)
V4L/DVB: ir-core: Add logic to decode IR protocols at the IR core
Adds a method to pass IR raw pulse/code events into ir-core. This is needed in order to support LIRC. It also helps to move common code from the drivers into the core. In order to allow testing, it implements a simple NEC protocol decoder at ir-nec-decoder.c file. The logic is about the same used at saa7134 driver that handles Avermedia M135A and Encore FM53 boards. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/ir-common.h')
-rw-r--r--include/media/ir-common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/media/ir-common.h b/include/media/ir-common.h
index 41469b79ad11..87f2ec78deb8 100644
--- a/include/media/ir-common.h
+++ b/include/media/ir-common.h
@@ -82,6 +82,9 @@ struct card_ir {
82 /* NEC decoding */ 82 /* NEC decoding */
83 u32 nec_gpio; 83 u32 nec_gpio;
84 struct tasklet_struct tlet; 84 struct tasklet_struct tlet;
85
86 /* IR core raw decoding */
87 u32 raw_decode;
85}; 88};
86 89
87/* Routines from ir-functions.c */ 90/* Routines from ir-functions.c */