OSDN Git Service

media: rc: default to idle on at startup or after reset
authorSean Young <sean@mess.org>
Thu, 10 May 2018 20:41:15 +0000 (16:41 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 14 May 2018 11:14:51 +0000 (07:14 -0400)
commite0d51e6ceff818c5d7a812c26bbd1bb84348a71a
tree906bb6cadef250039a6d514173889ee59a80b18d
parentd898cc1df08397b53e8f84b764ec2c409dd5ac9e
media: rc: default to idle on at startup or after reset

Any spaces events received after a reset or startup should be discarded,
so ensure the rc device is in idle mode.

This also makes it much easier to detect incorrect raw events, as we will
do in a following commit.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/rc/rc-ir-raw.c
include/media/rc-core.h