V4L/DVB: ir-core: Add logic to decode IR protocols at the IR core
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 20 Mar 2010 23:59:44 +0000 (20:59 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:52:56 +0000 (00:52 -0300)
commita3572c34da8dacc78a629211a91cf34e9b408701
tree281efd4d69b68bd4720668fd91cfcf16d1ed3089
parent0210894956cf57d525d56341cc3e0f3d5d2db659
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>
drivers/media/IR/Makefile
drivers/media/IR/ir-nec-decoder.c [new file with mode: 0644]
drivers/media/IR/ir-raw-event.c [new file with mode: 0644]
drivers/media/video/saa7134/saa7134-input.c
include/media/ir-common.h
include/media/ir-core.h