From: Sean Young Date: Wed, 15 Sep 2021 16:14:07 +0000 (+0200) Subject: media: ir-kbd-i2c: improve responsiveness of hauppauge zilog receivers X-Git-Tag: v4.19.218~307 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=25e90be93b99f213fbfc8a2edce08656d832a29b;p=users%2Fdwmw2%2Flinux.git media: ir-kbd-i2c: improve responsiveness of hauppauge zilog receivers commit c73ba202a851c0b611ef2c25e568fadeff5e667f upstream. The IR receiver has two issues: - Sometimes there is no response to a button press - Sometimes a button press is repeated when it should not have been Hanging the polling interval fixes this behaviour. Link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=994050 Cc: stable@vger.kernel.org Suggested-by: Joaquín Alberto Calderón Pozo Signed-off-by: Sean Young Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/media/i2c/ir-kbd-i2c.c b/drivers/media/i2c/ir-kbd-i2c.c index 19ff9cb08e884..933ddfcc50a16 100644 --- a/drivers/media/i2c/ir-kbd-i2c.c +++ b/drivers/media/i2c/ir-kbd-i2c.c @@ -801,6 +801,7 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id) rc_proto = RC_PROTO_BIT_RC5 | RC_PROTO_BIT_RC6_MCE | RC_PROTO_BIT_RC6_6A_32; ir_codes = RC_MAP_HAUPPAUGE; + ir->polling_interval = 125; probe_tx = true; break; }