]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[media] rc: rc-core: Add support for encode_wakeup drivers
authorJames Hogan <james@albanarts.com>
Tue, 31 Mar 2015 17:48:10 +0000 (14:48 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 14 May 2015 17:34:53 +0000 (14:34 -0300)
commit0d830b2d1295fee82546d57185da5a6604f11ae2
treeb0add410d25c1a8b80127f82c7a056b30f491edd
parentcf257e288ad3a134d4bb809c542a3ae6c87ddfa3
[media] rc: rc-core: Add support for encode_wakeup drivers

Add support in rc-core for drivers which implement the wakeup scancode
filter by encoding the scancode using the raw IR encoders. This is by
way of rc_dev::encode_wakeup which should be set to true to make the
allowed wakeup protocols the same as the set of raw IR encoders.

As well as updating the sysfs interface to know which wakeup protocols
are allowed for encode_wakeup drivers, also ensure that the IR
decoders/encoders are loaded when an encode_wakeup driver is registered.

Signed-off-by: James Hogan <james@albanarts.com>
Signed-off-by: Antti Seppälä <a.seppala@gmail.com>
Cc: David Härdeman <david@hardeman.nu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/rc/rc-core-priv.h
drivers/media/rc/rc-ir-raw.c
drivers/media/rc/rc-main.c
include/media/rc-core.h