From patchwork Sat Jun 24 16:03:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Scheller X-Patchwork-Id: 9807815 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 D48C86038C for ; Sat, 24 Jun 2017 16:03:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C4B7E28773 for ; Sat, 24 Jun 2017 16:03:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B988228774; Sat, 24 Jun 2017 16:03:24 +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 946E128776 for ; Sat, 24 Jun 2017 16:03:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754968AbdFXQDT (ORCPT ); Sat, 24 Jun 2017 12:03:19 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:34069 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754923AbdFXQDP (ORCPT ); Sat, 24 Jun 2017 12:03:15 -0400 Received: by mail-wr0-f195.google.com with SMTP id k67so19936932wrc.1 for ; Sat, 24 Jun 2017 09:03:14 -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=BuJKvBgU6tXbuTwnuDz1RPfUWa3mecZnLzIecJa/70g=; b=tXDx1QEA4Xqkng9kGxB36OHsIsHv2KQlczqUsT/tyx/i3T8Qxz3w2YYPgt7xjffbSU bxnLstN0LORIJkcdXdtjz6LiNJW/epXAc0u40o/pJ3NNMPqGdkZ1hMktUd+AGqR5gyUA OihickR7xZeal+ToOpyNFXTUUDIS8keD167t8jlUmwzDFjspOP4jm3fZIoIsFDxMTaoP 2c/4ysN4Us3eCvujDvkunhXFLguS+lBnFv5u+1K7oqoY75Avnh+7gpnEa6H7bPbcbXd+ qx2rh+pWhQQiP1/DnhS2TjVps9i1NOf5vC/f2owgGxwB0GyN76eVXLSWklw506a6u4g+ 7DZA== 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=BuJKvBgU6tXbuTwnuDz1RPfUWa3mecZnLzIecJa/70g=; b=J6c87F10pzXVB2GgZ6QBjG84qrJDFEqc+SHARQxEceP6SRddM0aLQ1gTC0YSpPRykS hFZW5NJ3tDnwgFLAxK7H+hEFTi+6y6DzcYc2+ostZHtSV620XMTaJ7eh9SJ/OWwUXhPh hQjeG3+73f4+hz762UDsK3PSsj18bJBd1CJJ7AVUzb9cRcmrstsxFSg1HPgi7nmpuSrg spMqrb2hFoMmmCqw2NaJZnh6HRhT5PUFi85w1ImcxRC/M9yEFn7u4+jUKvvroyiq3fLX 0V4NUu5SG79LtjhwuqBoVpS4BqqxwHfN3OUYHJXJERKBD6qwcg+iIcPnbKyS14GM/ns6 6yrQ== X-Gm-Message-State: AKS2vOw5rLqKqBBikaRyBOORv7ZsNrwUp37HVnJWkwEBJ5k5nEwBvdiN nQ1pQQ82zz+EmLED X-Received: by 10.223.138.252 with SMTP id z57mr9725282wrz.66.1498320193537; Sat, 24 Jun 2017 09:03:13 -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 n31sm9935301wrn.59.2017.06.24.09.03.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 24 Jun 2017 09:03:13 -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 9/9] [media] ddbridge: stv0910 single demod mode module option Date: Sat, 24 Jun 2017 18:03:01 +0200 Message-Id: <20170624160301.17710-10-d.scheller.oss@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170624160301.17710-1-d.scheller.oss@gmail.com> References: <20170624160301.17710-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 45130fec392a..6ea429b16550 100644 --- a/drivers/media/pci/ddbridge/ddbridge-core.c +++ b/drivers/media/pci/ddbridge/ddbridge-core.c @@ -51,6 +51,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 */ @@ -917,6 +921,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));