From patchwork Fri Jun 30 20:51:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Scheller X-Patchwork-Id: 9820483 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 7D64E603F3 for ; Fri, 30 Jun 2017 20:51:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7114D28478 for ; Fri, 30 Jun 2017 20:51:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 639E328531; Fri, 30 Jun 2017 20:51: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=-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 099A62847A for ; Fri, 30 Jun 2017 20:51:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753005AbdF3Uve (ORCPT ); Fri, 30 Jun 2017 16:51:34 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:33665 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752995AbdF3Uva (ORCPT ); Fri, 30 Jun 2017 16:51:30 -0400 Received: by mail-wm0-f66.google.com with SMTP id j85so9870917wmj.0 for ; Fri, 30 Jun 2017 13:51:29 -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=ylejxXOQa21sXO/ZKDz/5polf4NLOVbO6HYa9qZWZlM=; b=Ew1wN/LQstLYsbOVEM5EExOb0gL6a0KolXa3mCu9A4/xuPbWViU1oaA5Bprm64iyLw B6nOE/rWa2HIfkm2Vh1cxUmaB2mPfCRMJEWLcvHNseSrYcPv4E1zPCuajWKicuxpcKSw MZ2n8hCxZ9KleZKDALemv9ZDBPdu39ZVG+Zei9nMz4nNi2eb7QwcS8afgI+Rnevbmcbn hElT77MZDv9DLmskK/l8/7XuCP7qlpdfpRA0iB1QFIuQShaNGv9QMcf5pYZ9wxfB73U1 rBqDHjhWeMYQsAQnI/Dfp0cgWhoAPahUK2HpsVwHpplRnlVjRLt6f/OdABxAxkRosYyb XFEA== 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=ylejxXOQa21sXO/ZKDz/5polf4NLOVbO6HYa9qZWZlM=; b=Yh3LJ1L74qnEI+MLsIZR08BYl5LR3eLfWTr9eXjWIg87NAB2QTf4w9uIoMG43P5d3E iO/8vCOvDDn4yxe4yDuumMfncxwcuX2ugVW9Chs44mKQqygCxGXUEk+c5tR0xt+d6HVC AB+Ab6fL3ZQHTHE8BlKl4j4NsQT0REDgDI68N1lBWBK0XH+jwsK3Uml9vg7Ong3l2G0t 30ZbplDiqu/aTPyw/yoS0DsIxIk2HMwTpfxMNSzO5ipL63JxMdZVPFE2OlQ/BLcVqdHP CRz53egkRwj6eq7lJFO86vU8dVsl2ze5HZVb4FEZuvTFvG3kvRnzALdl2O0Y9ntyhMh8 K3/A== X-Gm-Message-State: AKS2vOwZhzx/o1jtgCBfNk3V2VKWM87B2QKZBoDnjcw2eIkMnfE5VIBC jgrpwdBeiEGCm9ny X-Received: by 10.28.57.197 with SMTP id g188mr17347119wma.13.1498855878804; Fri, 30 Jun 2017 13:51:18 -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 e24sm6420051wrc.35.2017.06.30.13.51.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Jun 2017 13:51:18 -0700 (PDT) From: Daniel Scheller To: linux-media@vger.kernel.org, mchehab@kernel.org, mchehab@s-opensource.com Cc: rjkm@metzlerbros.de, jasmin@anw.at Subject: [PATCH v2 09/10] [media] ddbridge: stv0910 single demod mode module option Date: Fri, 30 Jun 2017 22:51:05 +0200 Message-Id: <20170630205106.1268-10-d.scheller.oss@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170630205106.1268-1-d.scheller.oss@gmail.com> References: <20170630205106.1268-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 --- 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));