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: archive/raspbian/5.14.16-1+rpi1^2~29 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b86f329e4c38df89442af8ea1073e20cdd72a1a7;p=linux.git media: ir-kbd-i2c: improve responsiveness of hauppauge zilog receivers Origin: https://git.linuxtv.org/media_stage.git/commit/?id=c73ba202a851c0b611ef2c25e568fadeff5e667f Bug-Debian: https://bugs.debian.org/994050 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 Gbp-Pq: Topic bugfix/all Gbp-Pq: Name media-ir-kbd-i2c-improve-responsiveness-of-hauppauge.patch --- diff --git a/drivers/media/i2c/ir-kbd-i2c.c b/drivers/media/i2c/ir-kbd-i2c.c index 92376592455..56674173524 100644 --- a/drivers/media/i2c/ir-kbd-i2c.c +++ b/drivers/media/i2c/ir-kbd-i2c.c @@ -791,6 +791,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; }