linux-hardened/drivers/media/rc
James Hogan 6bea25af14 [media] rc-main: automatically refresh filter on protocol change
When either of the normal or wakeup filter protocols are changed,
refresh the corresponding scancode filter, i.e. try and set the same
scancode filter with the new protocol. If that fails clear the filter
instead.

If no protocol was selected the filter is just cleared, and if no
s_filter callback exists the filter is left unmodified.

Similarly clear the filter mask when the filter is set if no protocol is
currently selected.

This simplifies driver code which no longer has to explicitly worry
about modifying the filter on a protocol change. This also allows the
change_wakeup_protocol callback to be omitted entirely if there is only
a single available wakeup protocol at a time, since selecting no
protocol will automatically clear the wakeup filter, disabling wakeup.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Reviewed-by: Antti Seppälä <a.seppala@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-03-11 13:29:52 -03:00
..
keymaps [media, edac] Change my email address 2014-02-07 08:03:07 -02:00
ati_remote.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ene_ir.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ene_ir.h [media] ene_ir: don't use pr_debug after all 2013-07-29 11:49:45 -03:00
fintek-cir.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
fintek-cir.h [media] rc: Fir warnings on m68k arch 2013-11-08 09:45:37 -02:00
gpio-ir-recv.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
iguanair.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
imon.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-jvc-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-lirc-codec.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-mce_kbd-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-nec-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-raw.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-rc5-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-rc5-sz-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-rc6-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-rx51.c [media] ir-rx51: remove deprecated IRQF_DISABLED 2013-10-17 06:09:02 -03:00
ir-sanyo-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-sharp-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-sony-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ite-cir.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ite-cir.h [media] ite-cir: 8709 needs to use pnp resource 2 2011-07-01 16:31:38 -03:00
Kconfig [media] media: rc: add raw decoder for Sharp protocol 2014-02-04 15:43:13 -02:00
lirc_dev.c [media] media: lirc: Allow lirc dev to talk to rc device 2013-07-31 16:30:27 -03:00
Makefile [media] media: rc: add raw decoder for Sharp protocol 2014-02-04 15:43:13 -02:00
mceusb.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
nuvoton-cir.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
nuvoton-cir.h [media] nuvoton-cir: Don't touch PS/2 interrupts while initializing 2014-02-04 17:47:26 -02:00
rc-core-priv.h [media, edac] Change my email address 2014-02-07 08:03:07 -02:00
rc-loopback.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
rc-main.c [media] rc-main: automatically refresh filter on protocol change 2014-03-11 13:29:52 -03:00
redrat3.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
st_rc.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
streamzap.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ttusbir.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
winbond-cir.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00