diff options
author | Sean Young <sean@mess.org> | 2018-03-08 09:42:44 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-03-21 13:54:51 -0400 |
commit | 8d7a77ce56cdb5f50b83ca0c59a31362e1a5eeb4 (patch) | |
tree | 704d04613b6aedc97be22b042cac5ddc91aa058e /include/media | |
parent | 20f2e1aa77314decf395558fd3a13875c0e56074 (diff) | |
download | op-kernel-dev-8d7a77ce56cdb5f50b83ca0c59a31362e1a5eeb4.zip op-kernel-dev-8d7a77ce56cdb5f50b83ca0c59a31362e1a5eeb4.tar.gz |
media: rc: meson-ir: add timeout on idle
Meson doesn't seem to be able to generate timeout events in hardware. So
install a software timer to generate the timeout events required by the
decoders to prevent "ghost keypresses".
Reported-by: Matthias Reichl <hias@horus.com>
Tested-by: Matthias Reichl <hias@horus.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/rc-core.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/media/rc-core.h b/include/media/rc-core.h index fc3a926..6742fd8 100644 --- a/include/media/rc-core.h +++ b/include/media/rc-core.h @@ -334,7 +334,9 @@ void ir_raw_event_handle(struct rc_dev *dev); int ir_raw_event_store(struct rc_dev *dev, struct ir_raw_event *ev); int ir_raw_event_store_edge(struct rc_dev *dev, bool pulse); int ir_raw_event_store_with_filter(struct rc_dev *dev, - struct ir_raw_event *ev); + struct ir_raw_event *ev); +int ir_raw_event_store_with_timeout(struct rc_dev *dev, + struct ir_raw_event *ev); void ir_raw_event_set_idle(struct rc_dev *dev, bool idle); int ir_raw_encode_scancode(enum rc_proto protocol, u32 scancode, struct ir_raw_event *events, unsigned int max); |