diff options
author | Sean Young <sean@mess.org> | 2017-08-06 21:25:52 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-20 15:55:48 +0200 |
commit | e5e26439d1c46c8a201b0d05c719e33f0f091802 (patch) | |
tree | d4ad1aa893c13fe975129104f50392b2040003b0 /drivers/media/rc/rc-core-priv.h | |
parent | media: winbond-cir: buffer overrun during transmit (diff) | |
download | linux-e5e26439d1c46c8a201b0d05c719e33f0f091802.tar.xz linux-e5e26439d1c46c8a201b0d05c719e33f0f091802.zip |
media: rc-core: improve ir_raw_store_edge() handling
The gpio-ir-recv driver does many wakeups (once per edge); the saa7134
driver has special handling to only wakeup 15ms after the first edge.
Make this part of rc-core so gpio-ir-recv also benefits from
this (so a rc-5 keypress now causes 3 wakeups rather than 24).
Signed-off-by: Sean Young <sean@mess.org>
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.h | 2 |
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 b3e7cac2c3ee..cae13efc1a88 100644 --- a/drivers/media/rc/rc-core-priv.h +++ b/drivers/media/rc/rc-core-priv.h @@ -43,6 +43,8 @@ struct ir_raw_event_ctrl { ktime_t last_event; /* when last event occurred */ enum raw_event_type last_type; /* last event type */ struct rc_dev *dev; /* pointer to the parent rc_dev */ + /* edge driver */ + struct timer_list edge_handle; /* raw decoder state follows */ struct ir_raw_event prev_ev; |