aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorJames Hogan <james@albanarts.com>2015-03-31 13:48:06 -0400
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-05-14 13:17:03 -0400
commit9869da5bacc5c9b865a183bd36c04be76cdd325d (patch)
tree8e88c886f8da2a61542ad803bdd3139587e9e34a /include/media
parentf7e5a6559640dfac9d96bee74d02066a28107aef (diff)
[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 filter 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> Cc: David Härdeman <david@hardeman.nu> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/rc-core.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/media/rc-core.h b/include/media/rc-core.h
index 2c7fbca40b69..5703c082fba6 100644
--- a/include/media/rc-core.h
+++ b/include/media/rc-core.h
@@ -250,6 +250,9 @@ int ir_raw_event_store_edge(struct rc_dev *dev, enum raw_event_type type);
250int ir_raw_event_store_with_filter(struct rc_dev *dev, 250int ir_raw_event_store_with_filter(struct rc_dev *dev,
251 struct ir_raw_event *ev); 251 struct ir_raw_event *ev);
252void ir_raw_event_set_idle(struct rc_dev *dev, bool idle); 252void ir_raw_event_set_idle(struct rc_dev *dev, bool idle);
253int ir_raw_encode_scancode(u64 protocols,
254 const struct rc_scancode_filter *scancode,
255 struct ir_raw_event *events, unsigned int max);
253 256
254static inline void ir_raw_event_reset(struct rc_dev *dev) 257static inline void ir_raw_event_reset(struct rc_dev *dev)
255{ 258{