From patchwork Wed Oct 8 12:09:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akihiro TSUKADA X-Patchwork-Id: 5053371 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BB63F9F349 for ; Wed, 8 Oct 2014 12:10:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DFB23201C8 for ; Wed, 8 Oct 2014 12:10:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CFC9D2017D for ; Wed, 8 Oct 2014 12:10:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756917AbaJHMKR (ORCPT ); Wed, 8 Oct 2014 08:10:17 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:39277 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756304AbaJHMKQ (ORCPT ); Wed, 8 Oct 2014 08:10:16 -0400 Received: by mail-pd0-f182.google.com with SMTP id y10so6832068pdj.13 for ; Wed, 08 Oct 2014 05:10:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6QejSPRTvLrozx/4tgMRTJ4bLSe9thwHB8FeEFU8hrY=; b=X6+l2bjVjPkINlL0WlXWzu7a9/6n8ts2zSBOjGm7o1LbOJucDgjAL1UbR3dq2ycHGP +4eFpuZctbu4fO81sG0BztG6OF57dxkV7TfsV3IZM46nFJoNGLdCkVh0VmusgYjqWLYm wFu4uOCZuZ63u0fn877mspX6+MH1C3jf+jePjhXb7xuSVyQSZMKt8+fOhPL8QWt4DYaj SDc+4fQqUVDy6uuMWsiVDJ59Ys/rC9JwSysz80p2Db43NxNVWRccC/7mv9cwQFTBGMB2 GLOazNErSYzreWr3+EwAuJURLCQ8I6CvKFDewGlLYiNgh+lH+5EurIxgP3a5DxlVuNZz pHcA== X-Received: by 10.70.8.195 with SMTP id t3mr10318132pda.62.1412770215870; Wed, 08 Oct 2014 05:10:15 -0700 (PDT) Received: from seabird.localdomain.localdomain (softbank219203027033.bbtec.net. [219.203.27.33]) by mx.google.com with ESMTPSA id g1sm16426666pdh.12.2014.10.08.05.10.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 08 Oct 2014 05:10:15 -0700 (PDT) From: tskd08@gmail.com To: linux-media@vger.kernel.org Cc: m.chehab@samsung.com Subject: [PATCH 2/4] v4l-utils/libdvbv5: add support for ISDB-S tuning Date: Wed, 8 Oct 2014 21:09:39 +0900 Message-Id: <1412770181-5420-3-git-send-email-tskd08@gmail.com> X-Mailer: git-send-email 2.1.2 In-Reply-To: <1412770181-5420-1-git-send-email-tskd08@gmail.com> References: <1412770181-5420-1-git-send-email-tskd08@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Akihiro Tsukada Added LNB support for Japanese satellites. Currently tested with dvbv5-zap, dvb-fe-tool. Signed-off-by: Akihiro Tsukada --- lib/libdvbv5/dvb-sat.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/libdvbv5/dvb-sat.c b/lib/libdvbv5/dvb-sat.c index e8df06b..70b1021 100644 --- a/lib/libdvbv5/dvb-sat.c +++ b/lib/libdvbv5/dvb-sat.c @@ -91,6 +91,13 @@ static const struct dvb_sat_lnb lnb[] = { .freqrange = { { 12200, 12700 } } + }, { + .name = "Japan 110BS/CS LNBf", + .alias = "110BS", + .lowfreq = 10678, + .freqrange = { + { 11727, 12731 } + } }, }; @@ -304,6 +311,8 @@ static int dvbsat_diseqc_set_input(struct dvb_v5_fe_parms_priv *parms, */ pol_v = 0; high_band = 1; + if (lnb == &lnb[8]) + vol_high = 1; } else { /* Adjust voltage/tone accordingly */ if (parms->p.sat_number < 2) { @@ -316,6 +325,8 @@ static int dvbsat_diseqc_set_input(struct dvb_v5_fe_parms_priv *parms, rc = dvb_fe_sec_voltage(&parms->p, 1, vol_high); if (rc) return rc; + if (parms->p.current_sys == SYS_ISDBS) + return 0; if (parms->p.sat_number > 0) { rc = dvb_fe_sec_tone(&parms->p, SEC_TONE_OFF);