Message ID | 20210511090728.18001-2-po-hsu.lin@canonical.com |
---|---|
State | New |
Headers | show |
Series | Fix for IR Remote repeat issue | expand |
diff --git a/drivers/media/rc/ite-cir.c b/drivers/media/rc/ite-cir.c index 390d66f..07667c0 100644 --- a/drivers/media/rc/ite-cir.c +++ b/drivers/media/rc/ite-cir.c @@ -1551,7 +1551,7 @@ static int ite_probe(struct pnp_dev *pdev, const struct pnp_device_id rdev->s_rx_carrier_range = ite_set_rx_carrier_range; /* FIFO threshold is 17 bytes, so 17 * 8 samples minimum */ rdev->min_timeout = 17 * 8 * ITE_BAUDRATE_DIVISOR * - itdev->params.sample_period / 1000; + itdev->params.sample_period; rdev->timeout = IR_DEFAULT_TIMEOUT; rdev->max_timeout = 10 * IR_DEFAULT_TIMEOUT; rdev->rx_resolution = ITE_BAUDRATE_DIVISOR *
BugLink: https://bugs.launchpad.net/bugs/1926030 This reverts commit 6dd64bcb5d79bf8be4e222a939a7a8b35a53fe9b. The commit 528222d853f92 ("media: rc: harmonize infrared durations to microseconds") that need to be fixed by this patch does not exist in 5.8 kernel. User reported that IR Remote keys will be repeated for multiple times with this patch. Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com> --- drivers/media/rc/ite-cir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)