diff options
author | Sean Young <sean@mess.org> | 2018-05-10 16:41:15 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-05-14 07:14:51 -0400 |
commit | e0d51e6ceff818c5d7a812c26bbd1bb84348a71a (patch) | |
tree | 906bb6cadef250039a6d514173889ee59a80b18d /include/media | |
parent | d898cc1df08397b53e8f84b764ec2c409dd5ac9e (diff) | |
download | linux-e0d51e6ceff818c5d7a812c26bbd1bb84348a71a.tar.bz2 |
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>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/rc-core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/rc-core.h b/include/media/rc-core.h index 6742fd86ff65..61571773a98d 100644 --- a/include/media/rc-core.h +++ b/include/media/rc-core.h @@ -347,6 +347,7 @@ static inline void ir_raw_event_reset(struct rc_dev *dev) struct ir_raw_event ev = { .reset = true }; ir_raw_event_store(dev, &ev); + dev->idle = true; ir_raw_event_handle(dev); } |