]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3204fb491428f57eaaf34124556ac58ac8bcdb3f
treed4ad1aa893c13fe975129104f50392b2040003b0
parenta8ca86b55c1364fe3ccfe6c49c06536d8fbf1568
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