media: rc: ite-cir: lower timeout and extend allowed timeout range
authorMatthias Reichl <hias@horus.com>
Sun, 13 May 2018 11:24:31 +0000 (07:24 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 14 May 2018 11:17:28 +0000 (07:17 -0400)
commit0630efeee8538ae30d81d6e42c9ffb299a3e67b3
treea8f92d71579cd3dae6062374d3ee48e3aedbc0d7
parent5dae9cea2a72b6de84fd834358d8af21cc255513
media: rc: ite-cir: lower timeout and extend allowed timeout range

The minimum possible timeout of ite-cir is 8 samples, which is
typically about 70us. The driver however changes the FIFO trigger
level from the hardware's default of 1 byte to 17 bytes, so the minimum
usable timeout value is 17 * 8 samples, which is typically about 1.2ms.

Tests showed that using timeouts down to 1.2ms actually work fine.

The current default timeout of 200ms is much longer than necessary and
the maximum timeout of 1s seems to have been chosen a bit arbitrarily.

So change the minimum timeout to the driver's limit of 17 * 8 samples
and bring timeout and maximum timeout in line with the settings
of many other receivers.

Signed-off-by: Matthias Reichl <hias@horus.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/rc/ite-cir.c
drivers/media/rc/ite-cir.h