From patchwork Fri Jan 2 13:56:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 5559131 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3A4A89F344 for ; Fri, 2 Jan 2015 13:57:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6A93720219 for ; Fri, 2 Jan 2015 13:56:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 836622021B for ; Fri, 2 Jan 2015 13:56:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752041AbbABN4z (ORCPT ); Fri, 2 Jan 2015 08:56:55 -0500 Received: from mail-wi0-f175.google.com ([209.85.212.175]:64899 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751950AbbABN4y (ORCPT ); Fri, 2 Jan 2015 08:56:54 -0500 Received: by mail-wi0-f175.google.com with SMTP id l15so27787863wiw.8; Fri, 02 Jan 2015 05:56:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=d3OJ/YFkMfw9YwUUFZq5GpM9JDa+BaeXHwcfGFxbYk0=; b=WQEbFBwuQbaTUwwWofLKsxDBE2FJ4BorBVCygLrk0f8vb92UMLpsvZwNafiOzsFN6x 5796Qw3SUCWqdZhaxwFW+NqXBQZ0+ziNgdV15nv38TPac1lYjc80UP8DGOdrJw2i2UDx Vsa7QthTRCz8Hh5jnlSO3KLTmaqpvDA6jSkPOSKc/9YF+zilz394otVrE2PLVREtWJ7i 833tiuPHAmKJ2gcvTVc8mdh+f6s4vTcUa5JR74pg7Spxhe4cZq47yKAmSqHBEXcd0XgY 9gBbpVcn+vINu8Ir7rBl78ljVUxp6cEuET171f3hOprea51rxmYu9wKm61ENuk7uTGOT gBRg== X-Received: by 10.180.198.52 with SMTP id iz20mr2437243wic.60.1420207013328; Fri, 02 Jan 2015 05:56:53 -0800 (PST) Received: from localhost.localdomain (dab-far1-h-1-8.dab.02.net. [82.132.222.244]) by mx.google.com with ESMTPSA id fc6sm3520943wib.12.2015.01.02.05.56.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 02 Jan 2015 05:56:52 -0800 (PST) From: Malcolm Priestley To: linux-media@vger.kernel.org Cc: Malcolm Priestley , Subject: [PATCH 1/5] lmedm04: Increase Interupt due time to 200 msec. Date: Fri, 2 Jan 2015 13:56:27 +0000 Message-Id: <1420206991-3939-1-git-send-email-tvboxspy@gmail.com> X-Mailer: git-send-email 2.1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Ocassionally the device fails to report back an interrupt urb status which results in false no lock trigger on the RS2000 demodulator. Increase time from 60 msecs to 200 msecs. Signed-off-by: Malcolm Priestley Cc: # v3.17+ --- drivers/media/usb/dvb-usb-v2/lmedm04.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/lmedm04.c b/drivers/media/usb/dvb-usb-v2/lmedm04.c index 994de53..f1edb29 100644 --- a/drivers/media/usb/dvb-usb-v2/lmedm04.c +++ b/drivers/media/usb/dvb-usb-v2/lmedm04.c @@ -344,9 +344,10 @@ static void lme2510_int_response(struct urb *lme_urb) usb_submit_urb(lme_urb, GFP_ATOMIC); - /* interrupt urb is due every 48 msecs while streaming - * add 12msecs for system lag */ - st->int_urb_due = jiffies + msecs_to_jiffies(60); + /* Interrupt urb is due every 48 msecs while streaming the buffer + * stores up to 4 periods if missed. Allow 200 msec for next interrupt. + */ + st->int_urb_due = jiffies + msecs_to_jiffies(200); } static int lme2510_int_read(struct dvb_usb_adapter *adap)