media: mtk-cir: reduce message end to fix nec repeats
authorSean Young <sean@mess.org>
Fri, 14 Jan 2022 14:24:27 +0000 (15:24 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 24 Jan 2022 00:38:32 +0000 (01:38 +0100)
commit1ad09bbf8458298f224eea04e44507bccbe8b229
tree4ffbb78d31cdb5b00ed8aa01a8005a9e9cbb3091
parentd49a14a946db0a8e0713aa43034879f967ab75e2
media: mtk-cir: reduce message end to fix nec repeats

The ir receiver generates an interrupt with the IR data, once a space of
at least ok_count is has been seen. Currently this is about 110ms; when
holding down a button on a nec remote, no such space is seen until the
button is released. This means nothing happens until you release the
button.

The sample rate is fixed at 46us, so the maximum space that can be
encoded is about 12ms. So, the set ok_count above that at 23ms.

Cc: Sean Wang <sean.wang@mediatek.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/rc/mtk-cir.c