]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - include/media/rc-core.h
[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@s-opensource.com>
Mon, 30 Jan 2017 15:55:45 +0000 (13:55 -0200)
commitf423ccc1a32f8111ddfec9ef7efbccc8b73f3ea5
tree1103efd9c2e7d18be447330aa7433a9ce31de975
parent103293be9d23de8347fc2e5aecd06f8962d18154
[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 and
rc_dev::allowed_wakeup_protocols should be set to the raw IR encoders.

We also do not permit the mask to be set as we cannot generate IR
which would match that.

Signed-off-by: James Hogan <james@albanarts.com>
Signed-off-by: Antti Seppälä <a.seppala@gmail.com>
Signed-off-by: Sean Young <sean@mess.org>
Cc: David Härdeman <david@hardeman.nu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/rc-main.c
include/media/rc-core.h
include/media/rc-map.h