From patchwork Wed Sep 15 16:24:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sean Young X-Patchwork-Id: 77033 X-Patchwork-Delegate: sean@mess.org Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1mQXhu-00BVDY-Ax; Wed, 15 Sep 2021 16:24:22 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230364AbhIOQZj (ORCPT + 1 other); Wed, 15 Sep 2021 12:25:39 -0400 Received: from gofer.mess.org ([88.97.38.141]:55335 "EHLO gofer.mess.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230368AbhIOQZd (ORCPT ); Wed, 15 Sep 2021 12:25:33 -0400 Received: by gofer.mess.org (Postfix, from userid 1000) id 72356C66BC; Wed, 15 Sep 2021 17:24:12 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mess.org; s=2020; t=1631723052; bh=P/AsyzmcgTKLSxvBEDO8t7dL3rkEQ0tOcHVXgQ1PSZU=; h=From:To:Cc:Subject:Date:From; b=WkKDp3IOqlUGiH0h6fZJ8wrOsBU7aG2GQOzuKgkIRt8z6R0qV1s2e2ziHkCeEhDFl QAm/P9w856Yc2OwpBMNkMpo51EDpYwaU5jglQFCIIZdnPOK6Rv5QgL9VYIP7IG+hQq YhkDZfhu8X8GEB15BxQPSaKa2JtDXj+PWqqDNopz2rWJHbq/6eZDWxXsA2cGHvl4HL HquihXT1GOJ13QryW18Avq9+tt0gcAeexscbyWQJDTWaOH0lqpihfBxEbfS3H1afzs TpBTuHYfuUhOxfo2X9N9xouppijpFpWAhzM1RwiwVaa53M3wIkQKg1EHmdpiXC3+wI P7W6+w0wU859w== From: Sean Young To: linux-media@vger.kernel.org Cc: stable@vger.kernel.org, =?utf-8?q?Joaqu=C3=ADn_Alberto_Calder=C3=B3n_Poz?= =?utf-8?q?o?= Subject: [PATCH] media: ir-kbd-i2c: improve responsiveness of hauppauge zilog receivers Date: Wed, 15 Sep 2021 17:24:12 +0100 Message-Id: <20210915162412.17993-1-sean@mess.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-LSpam-Score: -4.6 (----) X-LSpam-Report: No, score=-4.6 required=5.0 tests=BAYES_00=-1.9,DKIM_SIGNED=0.1,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3,T_DKIM_INVALID=0.01 autolearn=ham autolearn_force=no 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. Cc: stable@vger.kernel.org Link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=994050 Suggested-by: Joaquín Alberto Calderón Pozo Signed-off-by: Sean Young --- drivers/media/i2c/ir-kbd-i2c.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/ir-kbd-i2c.c b/drivers/media/i2c/ir-kbd-i2c.c index 92376592455e..56674173524f 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; }