media: rc-core: improve ir_raw_store_edge() handling
authorSean Young <sean@mess.org>
Sun, 6 Aug 2017 19:25:52 +0000 (15:25 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 20 Aug 2017 13:55:48 +0000 (09:55 -0400)
commite5e26439d1c46c8a201b0d05c719e33f0f091802
treed4ad1aa893c13fe975129104f50392b2040003b0
parent4fe055ecfc0a597e19dc159cf5289fd8f18ef9e3
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>
drivers/media/pci/saa7134/saa7134-input.c
drivers/media/rc/rc-core-priv.h
drivers/media/rc/rc-ir-raw.c