]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit954e461b84f5e99a0aa0018766706a0e4213f24f
treee3e28eff10f8f01f1bfd7ff865a29076bf6700dc
parent84f8e95f5ad04e55b92f9f918022b7fa3dfd4461
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