]> git.baikalelectronics.ru Git - kernel.git/commit
media: lirc: simplify gap calculation
authorSean Young <sean@mess.org>
Thu, 13 Jan 2022 11:29:01 +0000 (12:29 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 24 Jan 2022 00:38:32 +0000 (01:38 +0100)
commit815422f7502a63842a56363bbcc85d451f3fc953
tree24ed3ba39f0c1b81e6b0b3afedcaa6763c8115ec
parentc8a4d29be06808397a82083111075fb22379cbcd
media: lirc: simplify gap calculation

When a driver reports a timeout, no more IR activity will be reported
until the next pulse. A space is inserted between the timeout and the
next pulse, based on ktime.

The timeout reports already a duration, so this duration should not be
added to the gap. Otherwise there is no change to the functionality.

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