summaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/rc-core-priv.h
diff options
context:
space:
mode:
authorJames Hogan2015-03-31 19:48:06 +0200
committerMauro Carvalho Chehab2017-01-30 16:46:55 +0100
commit3875233d0b42c6d194657735d1a4b6a8797bfaaa (patch)
tree28e9c1795fc98216881977a0c654d1252b220c0b /drivers/media/rc/rc-core-priv.h
parent[media] rc: raw IR drivers cannot handle cec, unknown or other (diff)
downloadkernel-qcow2-linux-3875233d0b42c6d194657735d1a4b6a8797bfaaa.tar.gz
kernel-qcow2-linux-3875233d0b42c6d194657735d1a4b6a8797bfaaa.tar.xz
kernel-qcow2-linux-3875233d0b42c6d194657735d1a4b6a8797bfaaa.zip
[media] rc: rc-ir-raw: Add scancode encoder callback
Add a callback to raw ir handlers for encoding and modulating a scancode to a set of raw events. This could be used for transmit, or for converting a wakeup scancode to a form that is more suitable for raw hardware wake up filters. 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>
Diffstat (limited to 'drivers/media/rc/rc-core-priv.h')
-rw-r--r--drivers/media/rc/rc-core-priv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/rc/rc-core-priv.h b/drivers/media/rc/rc-core-priv.h
index 577128ad0ae5..18f932684e2e 100644
--- a/drivers/media/rc/rc-core-priv.h
+++ b/drivers/media/rc/rc-core-priv.h
@@ -27,6 +27,8 @@ struct ir_raw_handler {
u64 protocols; /* which are handled by this handler */
int (*decode)(struct rc_dev *dev, struct ir_raw_event event);
+ int (*encode)(enum rc_type protocol, u32 scancode,
+ struct ir_raw_event *events, unsigned int max);
/* These two should only be used by the lirc decoder */
int (*raw_register)(struct rc_dev *dev);