From patchwork Mon Jul 3 17:21:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Scheller X-Patchwork-Id: 9823767 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 1EA0360237 for ; Mon, 3 Jul 2017 17:21:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 05BC2285E0 for ; Mon, 3 Jul 2017 17:21:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EEE5C27F3E; Mon, 3 Jul 2017 17:21:26 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 8430127FB1 for ; Mon, 3 Jul 2017 17:21:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755537AbdGCRVY (ORCPT ); Mon, 3 Jul 2017 13:21:24 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:33179 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755521AbdGCRVS (ORCPT ); Mon, 3 Jul 2017 13:21:18 -0400 Received: by mail-wm0-f66.google.com with SMTP id j85so21729553wmj.0 for ; Mon, 03 Jul 2017 10:21:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tWIbIjiz/YQeJEPfLiYi6F5L+XQnQQMfj/JehZENSl4=; b=vVDEV9uzBdGtgrBATTxtwxgAmdKhjDcjsWgnPwopMzeV9vKSmd2Q5Ls1rLZl8CZleo ty9Hnd0kpk63m/WLjil2HuM5hbcNq60e/Nk/en4PlAO3ntEjn20p5x/QfiDNkv4S4Q0b ZIs1S/aIqP3mzCpY3QcaxAH5cUsX8YY6AfySbKJEfY8603mem0ssLvykuB9gO7p0n0Jw d6K9IXLx7Wy+0sKteAtUIdBTGMbKWXKZUfBHtARbSpRV57E5OprP3fhsCsNk6dJgqGOX /t+4/t+AZnGtildArwlkMkHBr4+a0sQIqO8Mnt7Xill6IyCHiLKuwEWkU+2XxpL9avbZ 2KOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tWIbIjiz/YQeJEPfLiYi6F5L+XQnQQMfj/JehZENSl4=; b=UIiPQdJotstN7n61UJ4TLmeqRgEmlbqUsZfYc9xcWhE3wrQbs93IRWd4Pm9sNF8ut/ yC2anLtR8zhw1eKG39Qv1ZSEq9q6z2MTPDhdlZbu9CQZtQQmMvC2oMU+TMFJ08ul7L5o 18cbT1JDeGob65YtZacA+cIeSd0BsC4L9qQiMCDLiPHedfjEsLTuw3LeSc1maZNdaaOE wkMhcq0YgZ7dOIlXpitk1GfJW97uBv95M9wEXTuskU3LgxwAgezsIZqsTNhREhNUPBdZ +UXCXSwuUhti54pilEMn7rLkGm07QCKnLm67DdxZSjr3ECRiNiBLRKnmos0h3HqWu7G1 tnrQ== X-Gm-Message-State: AIVw110dNUpq95rgNWlB+TTIRBw0fqsIqWAxeSJ08QEtNZC8/8tCTUs9 cjNbqxG64UVutgYi X-Received: by 10.28.65.135 with SMTP id o129mr12517508wma.20.1499102476767; Mon, 03 Jul 2017 10:21:16 -0700 (PDT) Received: from dvbdev.wuest.de (ip-37-24-178-151.hsi14.unitymediagroup.de. [37.24.178.151]) by smtp.gmail.com with ESMTPSA id x21sm17350309wme.24.2017.07.03.10.21.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Jul 2017 10:21:16 -0700 (PDT) From: Daniel Scheller To: linux-media@vger.kernel.org, mchehab@kernel.org, mchehab@s-opensource.com Cc: jasmin@anw.at, rjkm@metzlerbros.de Subject: [PATCH v3 09/10] [media] ddbridge: stv0910 single demod mode module option Date: Mon, 3 Jul 2017 19:21:02 +0200 Message-Id: <20170703172104.27283-10-d.scheller.oss@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170703172104.27283-1-d.scheller.oss@gmail.com> References: <20170703172104.27283-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 Adds a stv0910_single modparm which, when set, configures the stv0910 to run in single demodulator mode, currently intended for high bit rate testing. Signed-off-by: Daniel Scheller Tested-by: Richard Scobie --- drivers/media/pci/ddbridge/ddbridge-core.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/media/pci/ddbridge/ddbridge-core.c b/drivers/media/pci/ddbridge/ddbridge-core.c index b3fc6a875279..e762396730db 100644 --- a/drivers/media/pci/ddbridge/ddbridge-core.c +++ b/drivers/media/pci/ddbridge/ddbridge-core.c @@ -53,6 +53,10 @@ static int xo2_speed = 2; module_param(xo2_speed, int, 0444); MODULE_PARM_DESC(xo2_speed, "default transfer speed for xo2 based duoflex, 0=55,1=75,2=90,3=104 MBit/s, default=2, use attribute to change for individual cards"); +static int stv0910_single; +module_param(stv0910_single, int, 0444); +MODULE_PARM_DESC(stv0910_single, "use stv0910 cards as single demods"); + DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); /* MSI had problems with lost interrupts, fixed but needs testing */ @@ -942,6 +946,9 @@ static int demod_attach_stv0910(struct ddb_input *input, int type) struct stv0910_cfg cfg = stv0910_p; struct lnbh25_config lnbcfg = lnbh25_cfg; + if (stv0910_single) + cfg.single = 1; + if (type) cfg.parallel = 2; input->fe = dvb_attach(stv0910_attach, i2c, &cfg, (input->nr & 1));