From patchwork Mon Apr 2 18:24:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Scheller X-Patchwork-Id: 10320145 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C66DC60375 for ; Mon, 2 Apr 2018 18:24:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B40E728A4D for ; Mon, 2 Apr 2018 18:24:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A4AE728A67; Mon, 2 Apr 2018 18:24:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F44028A4D for ; Mon, 2 Apr 2018 18:24:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753279AbeDBSYf (ORCPT ); Mon, 2 Apr 2018 14:24:35 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:41219 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753104AbeDBSYd (ORCPT ); Mon, 2 Apr 2018 14:24:33 -0400 Received: by mail-wr0-f195.google.com with SMTP id s12so4413202wrc.8 for ; Mon, 02 Apr 2018 11:24:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=r1Xzv68RA+Y1iJX3rEpC1jzc+N9SlHVvDZa7m+9am8E=; b=f3pAxeh+zXV8OgyqEtkT/ISMFnyPKhdgMpX9WvmLqvzhZ35ZdtL1P4HBEpvylcLSDo Ha599JDmQU7v/fc4xv154jqFZvgtJ47HX5Ewiev+Qpa2KnajWl9RPfCHS85eunPRpZmv DgHeSBUfNKRmSAa+rkbOa/WG68YKYti+iZdA21K/DaUKAbY3g34QkdfwhVrR7rsFoW+m QSHxP3KXcWbaRfPRx0nscL2lVuX6v2CNLpxyfpTfP4hTtp6eARIFZd1WZTPKkL2h0vjZ kyCBfFfFuf+ZdzZImFXyxkbXQ1pXHBDbrW/g7N60fa1to9ZrYdsZsPjGSxp1YEdxuCPK 4Xbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=r1Xzv68RA+Y1iJX3rEpC1jzc+N9SlHVvDZa7m+9am8E=; b=mo4Sg4excVbizbUVZs33XoArGZ98/nFq0TdIP8HDGKxXRmmiKyaLMNhM3q7wCpB+YR cYZ6qQc5TQaMx5MgVCbDPeuycrJLAPJdiLoDHlK1mdaS9od2Yk/6G2H5Ffeq1wc7bj5n +oaw1OYDfR+fKX/XuCYboEDLHz4I9RsCmeBvdCvqaaxWMm2S38jQi3pd5QXwDydBbWFA KfIvcRZe8xkXA0mO0/jr0VfLJU58pRCf5EWrL5S4zsfYZvV1l+tu7txhfXVXz+i6+Nfb mqdi+NFEulOHBE2+4VLD/VvWRDt/cvtPWEXLbwbK+U4icUrfVhWqsxg+ArNWwqRSknFZ TYFQ== X-Gm-Message-State: AElRT7HaJeS0Ko15LNW0YHdUwN6J8ZCo8EWTgljTl2ospEBISBqHwAxj l3m62P8nUKdujxOBsh6ks/zOtA== X-Google-Smtp-Source: AIpwx4/QkhRYVGA8f4T6D8+i9QtjlDDYNwz7Fg+QxMb5T8xDFEQC0W4TQEk9JD9DHVJ5mqMWmX20WA== X-Received: by 10.223.195.142 with SMTP id p14mr7947626wrf.32.1522693472301; Mon, 02 Apr 2018 11:24:32 -0700 (PDT) Received: from dvbdev.wuest.de (ip-84-118-193-200.unity-media.net. [84.118.193.200]) by smtp.gmail.com with ESMTPSA id x9sm2368273wrb.18.2018.04.02.11.24.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Apr 2018 11:24:31 -0700 (PDT) From: Daniel Scheller To: linux-media@vger.kernel.org, mchehab@kernel.org, mchehab@s-opensource.com Subject: [PATCH 02/20] [media] dvb-frontends/stv0910: increase parallel TS output speed Date: Mon, 2 Apr 2018 20:24:09 +0200 Message-Id: <20180402182427.20918-3-d.scheller.oss@gmail.com> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180402182427.20918-1-d.scheller.oss@gmail.com> References: <20180402182427.20918-1-d.scheller.oss@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Daniel Scheller When running in parallel TS mode (cfg->parallel=1), increase the output speed in the demod. Picked up from the upstream dddvb-0.9.33 release. Signed-off-by: Daniel Scheller --- drivers/media/dvb-frontends/stv0910.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/stv0910.c b/drivers/media/dvb-frontends/stv0910.c index f5b5ce971c0c..0d6130f97c36 100644 --- a/drivers/media/dvb-frontends/stv0910.c +++ b/drivers/media/dvb-frontends/stv0910.c @@ -1200,7 +1200,6 @@ static int probe(struct stv *state) write_reg(state, RSTV0910_P1_TSCFGM, 0xC0); /* Manual speed */ write_reg(state, RSTV0910_P1_TSCFGL, 0x20); - /* Speed = 67.5 MHz */ write_reg(state, RSTV0910_P1_TSSPEED, state->tsspeed); write_reg(state, RSTV0910_P2_TSCFGH, state->tscfgh | 0x01); @@ -1208,7 +1207,6 @@ static int probe(struct stv *state) write_reg(state, RSTV0910_P2_TSCFGM, 0xC0); /* Manual speed */ write_reg(state, RSTV0910_P2_TSCFGL, 0x20); - /* Speed = 67.5 MHz */ write_reg(state, RSTV0910_P2_TSSPEED, state->tsspeed); /* Reset stream merger */ @@ -1790,7 +1788,7 @@ struct dvb_frontend *stv0910_attach(struct i2c_adapter *i2c, state->tscfgh = 0x20 | (cfg->parallel ? 0 : 0x40); state->tsgeneral = (cfg->parallel == 2) ? 0x02 : 0x00; state->i2crpt = 0x0A | ((cfg->rptlvl & 0x07) << 4); - state->tsspeed = 0x28; + state->tsspeed = cfg->parallel ? 0x10 : 0x28; state->nr = nr; state->regoff = state->nr ? 0 : 0x200; state->search_range = 16000000;