]> git.baikalelectronics.ru Git - kernel.git/commit
media: rc: ite-cir: fix min_timeout calculation
authorMatthias Reichl <hias@horus.com>
Sat, 9 Jan 2021 20:10:55 +0000 (21:10 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 12 Jan 2021 11:47:15 +0000 (12:47 +0100)
commit82955aafc604d064bd3a8c5207f17788f22b07c0
tree4e5642c91cabfa7938b87a95b51818625b2a9176
parent82f3f7e0e45650123b977aaa632df3c050ac7733
media: rc: ite-cir: fix min_timeout calculation

Commit ca09eefb7eb2c ("media: rc: harmonize infrared durations to
microseconds") missed to switch the min_timeout calculation from ns
to us. This resulted in a minimum timeout of 1.2 seconds instead of 1.2ms,
leading to large delays and long key repeats.

Fix this by applying proper ns->us conversion.

Cc: stable@vger.kernel.org
Fixes: ca09eefb7eb2c ("media: rc: harmonize infrared durations to microseconds")
Signed-off-by: Matthias Reichl <hias@horus.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/rc/ite-cir.c