From patchwork Mon Jan 22 17:13:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Scheller X-Patchwork-Id: 10178917 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 2FAED601D5 for ; Mon, 22 Jan 2018 17:14:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15DB42838B for ; Mon, 22 Jan 2018 17:14:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0941E2841F; Mon, 22 Jan 2018 17:14:04 +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 78F7B2841E for ; Mon, 22 Jan 2018 17:14:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751122AbeAVRN7 (ORCPT ); Mon, 22 Jan 2018 12:13:59 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:36450 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751028AbeAVRN4 (ORCPT ); Mon, 22 Jan 2018 12:13:56 -0500 Received: by mail-wr0-f193.google.com with SMTP id d9so9498569wre.3 for ; Mon, 22 Jan 2018 09:13:56 -0800 (PST) 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=gIdnYm7sjCdDDTQJaBf0S0C+fosmHaVzg+EaNAvsb88=; b=gQZz9jz94XnRmkSSYbL2yX3c02Z+pKANP8bs6sxhgagugLZ53KegGgWn7a/dzCnhqs huxGIBwuZi2ojLpirlqV0LbYQ9vfOxwTeKHv6ZU953E1HjxDXeTSxVK+EIFNrjriHQsN d4GliXFokDPqXa6vpnDdHwqdMUCc1Ga3vCh8pL8NdIUnoMJqQHIfwXc9UiwS0hG5+hKc VqmCZNSpmCyKFf1aIvTBi5R4mdj3EmxIXiSsjfkEMcT9VGenJ8xS/ahFUX2aVp/Rhj/f l6NjyQqGRNZ+zku7Fhxrbirk0GK1Mx+zozDWGgx/lzNFG5ivAb3iTNgte83Q5fSNlLeW lwkA== 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=gIdnYm7sjCdDDTQJaBf0S0C+fosmHaVzg+EaNAvsb88=; b=MQyg4WvGmtX/NuuWubRuHYkGIV6pl7gvvjBoEWlmuvDIJV2m34umN/5mt3ScHogSmz M/quJ+Yx2krq2BcaCJL1bq0hd9RZrz4X0SXQIS6Vh6tVC/M2TBg6OPi19hvxvsEjfRPv 0yOrbG3UnZWAvZ10gQyfn7yblXb0GIuADoo3gWVWsaNeAWIghy5STVD9ZHjNKpo2SJR9 LLnvKwgCsS+31p3KC9wrWT1N+II7Tyt2AFezR7f6+FoKFFNdZ9T79aIvE96zvB/sI8Yj ifrQVc1maC4rTaF/vKEDItTVRU/ACh8bKyeLfHDjVh9AywmOlPUooKoZpPEIxZDdO2oe 0+Kw== X-Gm-Message-State: AKwxytdLOEsk6hIPXGchv1zd7gYykarXT/GUF17S9NASy0H6H59pOG9W 9TJ/pnxeJduxRJZB61I8p120aA== X-Google-Smtp-Source: AH8x224eCJH6JrOd8KqgToJFjbervcFYV6PE5uGDuknbNl4+Qusj0X/w2SU/uxPMEmk+LY6AGtBJ8Q== X-Received: by 10.223.129.135 with SMTP id 7mr7473487wra.40.1516641235412; Mon, 22 Jan 2018 09:13:55 -0800 (PST) Received: from dvbdev.wuest.de (ip-84-118-193-200.unity-media.net. [84.118.193.200]) by smtp.gmail.com with ESMTPSA id z39sm13113986wrz.20.2018.01.22.09.13.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jan 2018 09:13:54 -0800 (PST) From: Daniel Scheller To: linux-media@vger.kernel.org, mchehab@kernel.org, mchehab@s-opensource.com Cc: rascobie@slingshot.co.nz Subject: [PATCH v2 5/5] media: dvb-frontends/stv0910: report active delsys in get_frontend() Date: Mon, 22 Jan 2018 18:13:46 +0100 Message-Id: <20180122171346.822-6-d.scheller.oss@gmail.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180122171346.822-1-d.scheller.oss@gmail.com> References: <20180122171346.822-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 Report the active delivery system based on the receive_mode state of the demodulator. Suggested-by: Richard Scobie Signed-off-by: Daniel Scheller --- drivers/media/dvb-frontends/stv0910.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/dvb-frontends/stv0910.c b/drivers/media/dvb-frontends/stv0910.c index 7ab014cec56c..6e6a70ad7354 100644 --- a/drivers/media/dvb-frontends/stv0910.c +++ b/drivers/media/dvb-frontends/stv0910.c @@ -1580,6 +1580,7 @@ static int get_frontend(struct dvb_frontend *fe, p->modulation = modcod2mod[mc]; p->fec_inner = modcod2fec[mc]; p->rolloff = ro2ro[state->fe_rolloff]; + p->delivery_system = SYS_DVBS2; } else if (state->receive_mode == RCVMODE_DVBS) { read_reg(state, RSTV0910_P2_VITCURPUN + state->regoff, &tmp); switch (tmp & 0x1F) { @@ -1603,6 +1604,7 @@ static int get_frontend(struct dvb_frontend *fe, break; } p->rolloff = ROLLOFF_35; + p->delivery_system = SYS_DVBS; } if (state->receive_mode != RCVMODE_NONE) {