]> Git Repo - J-linux.git/commitdiff
media: ir-kbd-i2c: improve responsiveness of hauppauge zilog receivers
authorSean Young <[email protected]>
Wed, 15 Sep 2021 16:14:07 +0000 (18:14 +0200)
committerMauro Carvalho Chehab <[email protected]>
Thu, 30 Sep 2021 08:08:00 +0000 (10:08 +0200)
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: [email protected]
Suggested-by: Joaquín Alberto Calderón Pozo <[email protected]>
Signed-off-by: Sean Young <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
drivers/media/i2c/ir-kbd-i2c.c

index 92376592455eebf2f8c0eb56a23e991e8944c255..56674173524fdb25775f812761e140253d723fb5 100644 (file)
@@ -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;
        }
This page took 0.05413 seconds and 4 git commands to generate.