V4L/DVB: ir-core: dynamically load the compiled IR protocols
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 24 Mar 2010 23:47:53 +0000 (20:47 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:52:59 +0000 (00:52 -0300)
commit995187bed30c0545e8da88372e9807da0a85911e
treee3e28eff10f8f01f1bfd7ff865a29076bf6700dc
parent9f1547829a6f39fe6b2da22653dff40502f3d568
V4L/DVB: ir-core: dynamically load the compiled IR protocols

Instead of hardcoding the protocols into ir-core, add a register interface
for the IR protocol decoders, and convert ir-nec-decoder into a client of
ir-core.

With this approach, it is possible to dynamically load the needed IR protocols,
and to add a RAW IR interface module, registered as one IR raw protocol decoder.

This patch opens a way to register a lirc_dev interface to work as an userspace
IR protocol decoder.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/IR/Kconfig
drivers/media/IR/Makefile
drivers/media/IR/ir-nec-decoder.c
drivers/media/IR/ir-raw-event.c
drivers/media/IR/ir-sysfs.c
include/media/ir-core.h