From patchwork Wed Apr 29 16:38:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olli Salonen X-Patchwork-Id: 6297111 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3D6C3BEEE1 for ; Wed, 29 Apr 2015 16:39:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 68070201C0 for ; Wed, 29 Apr 2015 16:39:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E4166201BB for ; Wed, 29 Apr 2015 16:39:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753775AbbD2QjI (ORCPT ); Wed, 29 Apr 2015 12:39:08 -0400 Received: from mail-lb0-f179.google.com ([209.85.217.179]:34178 "EHLO mail-lb0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753636AbbD2QjH (ORCPT ); Wed, 29 Apr 2015 12:39:07 -0400 Received: by lbcga7 with SMTP id ga7so24737936lbc.1 for ; Wed, 29 Apr 2015 09:39:06 -0700 (PDT) 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; bh=XNK1F6JLW4gr/Zf2lWD1e/TR+esb2hkYFLYZ9JxsTDw=; b=ZXQzJq27Q2hg2U3Lef6+nkxX0ECGFfDcydFNvAurjGwFIu5okv8H3sIue7KQssdM04 C5ZreD3QmhwJ+B60c4vSyMIObLBRGINMIs4Ewl5l3v06q4EP4Xx7/QuoEoVuIHFdSiNC MmokUUBNAw0Y8GUEE2nkIe8jH1IXA26MRQIrGqFy2iYKDbYZ6klW3eEzZ4ytdDR62pML lDokzty+kiF4KVsA5XX/VqrITMWSgq/1OmEdsSDw43eO3zgn0FVLuOvheBZgR3OGAr6b E6rJGZXOyloVmFAWg6OxIG5r/b8i0fcrKBNWXdfPnL9FVb2BzMLp+gqYIB/3kMxRTBDQ 1JNg== X-Gm-Message-State: ALoCoQlob5f8iB4Ugjj48fDJWoJ2AmVPHk2SY8DGD3uI2XJOtIybsIY2ufRz4atrul7Bqm7gUFIa X-Received: by 10.112.29.36 with SMTP id g4mr20263732lbh.56.1430325546075; Wed, 29 Apr 2015 09:39:06 -0700 (PDT) Received: from dl160.lan (188-67-118-178.bb.dnainternet.fi. [188.67.118.178]) by mx.google.com with ESMTPSA id a7sm6483678lbc.48.2015.04.29.09.39.04 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Apr 2015 09:39:05 -0700 (PDT) From: Olli Salonen To: linux-media@vger.kernel.org Cc: Olli Salonen Subject: [PATCHv2 2/5] dvbsky: use si2168 config option ts_clock_gapped Date: Wed, 29 Apr 2015 19:38:51 +0300 Message-Id: <1430325534-20937-2-git-send-email-olli.salonen@iki.fi> X-Mailer: git-send-email 1.9.1 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 Change the dvbsky driver to support gapped clock instead of the current hack. Signed-off-by: Olli Salonen --- drivers/media/usb/dvb-usb-v2/dvbsky.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/usb/dvb-usb-v2/dvbsky.c b/drivers/media/usb/dvb-usb-v2/dvbsky.c index cdf59bc..0f73b1d 100644 --- a/drivers/media/usb/dvb-usb-v2/dvbsky.c +++ b/drivers/media/usb/dvb-usb-v2/dvbsky.c @@ -615,7 +615,8 @@ static int dvbsky_t330_attach(struct dvb_usb_adapter *adap) memset(&si2168_config, 0, sizeof(si2168_config)); si2168_config.i2c_adapter = &i2c_adapter; si2168_config.fe = &adap->fe[0]; - si2168_config.ts_mode = SI2168_TS_PARALLEL | 0x40; + si2168_config.ts_mode = SI2168_TS_PARALLEL; + si2168_config.ts_clock_gapped = true; memset(&info, 0, sizeof(struct i2c_board_info)); strlcpy(info.type, "si2168", I2C_NAME_SIZE); info.addr = 0x64;