]> 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)
commit4c31ef9b620172cb79eb0d76fe94d99dddf31608
tree24ed3ba39f0c1b81e6b0b3afedcaa6763c8115ec
parentf7dcd618f76e895e72372afc5dd97ae06d26aa8f
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