From patchwork Fri Jan 16 12:35:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olli Salonen X-Patchwork-Id: 5648121 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id F1AA49F3A0 for ; Fri, 16 Jan 2015 12:35:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 37D5820149 for ; Fri, 16 Jan 2015 12:35:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4620D20148 for ; Fri, 16 Jan 2015 12:35:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753557AbbAPMfj (ORCPT ); Fri, 16 Jan 2015 07:35:39 -0500 Received: from mail-la0-f46.google.com ([209.85.215.46]:51734 "EHLO mail-la0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752039AbbAPMfi (ORCPT ); Fri, 16 Jan 2015 07:35:38 -0500 Received: by mail-la0-f46.google.com with SMTP id ge10so8882818lab.5 for ; Fri, 16 Jan 2015 04:35:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=6LcHn3MhXcs4n7xjmktNW/HRm6dkeOO2GxJJvroMoXk=; b=IpjwaW5UyCU7Q8zSsix3fN+Fnz8WLpEH7lQzykmlzRBZprexAW/vfSOK/k42keX8Rh tSb0GLlsRv1zjM2jnqw9ktS00c+kYwcu2oaupM4vLRzjzrQaoXiLN84EJ/LPEfuO1ZZG ueEYmXi3jrJty2FlqtW8jHl+Hg+fIV9cXM2idCTJCmEwKFX4KUKFAPaJ3+9qgEf7qPDd IAcOzY5Jf677h63snMCHc/fEABCjFsmgKb9c02uW1MC/B9JDQIq78EK7R9eyDQgrJRT/ 42Hi+5CsOdC7cDFPRAZ3pWpLMVCZ4ECUmU/Z+jXfxYN59q74zPaStZ/qGahBNRjaPDjr ETgQ== X-Gm-Message-State: ALoCoQmojNAhh310dmt36qes+BwTOGFQsz1ja5LXniykxEYSAIlOy5d8JgTpJw4chZei8kjdUtlE X-Received: by 10.112.150.194 with SMTP id uk2mr15456924lbb.84.1421411736948; Fri, 16 Jan 2015 04:35:36 -0800 (PST) Received: from dl160.lan (37-33-15-55.bb.dnainternet.fi. [37.33.15.55]) by mx.google.com with ESMTPSA id rb2sm852998lbb.19.2015.01.16.04.35.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Jan 2015 04:35:36 -0800 (PST) From: Olli Salonen To: linux-media@vger.kernel.org Cc: Olli Salonen Subject: [PATCH 2/2] si2168: add support for 1.7MHz bandwidth Date: Fri, 16 Jan 2015 14:35:20 +0200 Message-Id: <1421411720-2364-2-git-send-email-olli.salonen@iki.fi> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1421411720-2364-1-git-send-email-olli.salonen@iki.fi> References: <1421411720-2364-1-git-send-email-olli.salonen@iki.fi> 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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 This patch is based on Antti's silabs branch. Add support for 1.7 MHz bandwidth. Supported in all versions of Si2168 according to short data sheets. Signed-off-by: Olli Salonen Reviewed-by: Antti Palosaari --- drivers/media/dvb-frontends/si2168.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c index 7fef5ab..ec893ee 100644 --- a/drivers/media/dvb-frontends/si2168.c +++ b/drivers/media/dvb-frontends/si2168.c @@ -185,6 +185,8 @@ static int si2168_set_frontend(struct dvb_frontend *fe) dev_err(&client->dev, "automatic bandwidth not supported"); goto err; } + else if (c->bandwidth_hz <= 2000000) + bandwidth = 0x02; else if (c->bandwidth_hz <= 5000000) bandwidth = 0x05; else if (c->bandwidth_hz <= 6000000)