From patchwork Thu May 29 13:07:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jose Alberto Reguero X-Patchwork-Id: 4264201 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CACA3BF90B for ; Thu, 29 May 2014 13:14:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DB31620340 for ; Thu, 29 May 2014 13:14:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B1A3E20303 for ; Thu, 29 May 2014 13:14:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932521AbaE2NOR (ORCPT ); Thu, 29 May 2014 09:14:17 -0400 Received: from smtp11.acens.net ([86.109.99.135]:35586 "EHLO smtp.movistar.es" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932081AbaE2NOQ (ORCPT ); Thu, 29 May 2014 09:14:16 -0400 X-Greylist: delayed 414 seconds by postgrey-1.27 at vger.kernel.org; Thu, 29 May 2014 09:14:16 EDT X-CTCH-RefID: str=0001.0A0B0201.53873108.003B, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-Spam: Unknown Received: from jar7.dominio (88.3.12.114) by smtp.movistar.es (8.6.122.03) (authenticated as jareguero$telefonica.net) id 5385BF640009E972; Thu, 29 May 2014 13:07:20 +0000 From: Jose Alberto Reguero To: linux-media@vger.kernel.org Cc: Mauro Carvallo Chehab Subject: [PATCH] dvbv5-zap fix option lnb UNIVERSAL Date: Thu, 29 May 2014 15:07:14 +0200 Message-ID: <1564179.r2h1y4RF0H@jar7.dominio> User-Agent: KMail/4.11.5 (Linux/3.13.11-100.fc19.x86_64; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 This patch fix the option lnb UNIVERSAL for dvbv5-zap. Without the patch, the option don't work. Signed-off-by: Jose Alberto Reguero --- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/utils/dvb/dvbv5-zap.c b/utils/dvb/dvbv5-zap.c index 14e8fd9..085bbf2 100644 --- a/utils/dvb/dvbv5-zap.c +++ b/utils/dvb/dvbv5-zap.c @@ -773,7 +773,7 @@ int main(int argc, char **argv) parms = dvb_fe_open(args.adapter, args.frontend, args.verbose, args.force_dvbv3); if (!parms) goto err; - if (lnb) + if (lnb >= 0) parms->lnb = dvb_sat_get_lnb(lnb); if (args.sat_number > 0) parms->sat_number = args.sat_number % 3;