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)
commit7366646e20f8800433333a7102e3ce488215e33f
treecba4f6fc7606d9ad68d05f7ab94a2e9060485f92
parentc2284261113f09bca4d362f5d51c008b65f55b6a
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