]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB: IR: only initially registers protocol that matches loaded keymap
authorJarod Wilson <jarod@redhat.com>
Tue, 1 Jun 2010 20:27:07 +0000 (17:27 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 2 Aug 2010 17:05:46 +0000 (14:05 -0300)
commit94a4cbece9c72c2e2152ff3802313ad20c1fc7f6
treecba4f6fc7606d9ad68d05f7ab94a2e9060485f92
parentc177606a8b6c5c5d56c4a7fe1f3c77b6823249cc
V4L/DVB: IR: only initially registers protocol that matches loaded keymap

Rather than registering all IR protocol decoders as enabled when bringing
up a new device, only enable the IR protocol decoder that matches the
keymap being loaded. Additional decoders can be enabled on the fly by
those that need to, either by twiddling sysfs bits or by using the
ir-keytable util from v4l-utils.

Functional testing done with the mceusb driver, and it behaves as expected,
only the rc6 decoder is enabled, keys are all handled properly, etc.

Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/IR/ir-jvc-decoder.c
drivers/media/IR/ir-nec-decoder.c
drivers/media/IR/ir-rc5-decoder.c
drivers/media/IR/ir-rc6-decoder.c
drivers/media/IR/ir-sony-decoder.c