From patchwork Wed Jul 2 15:52:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 4466541 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 116629F433 for ; Wed, 2 Jul 2014 15:52:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1CD6C201E4 for ; Wed, 2 Jul 2014 15:52:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 476ED202F8 for ; Wed, 2 Jul 2014 15:52:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755515AbaGBPwg (ORCPT ); Wed, 2 Jul 2014 11:52:36 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:35713 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754737AbaGBPwd (ORCPT ); Wed, 2 Jul 2014 11:52:33 -0400 Received: from [201.74.152.26] (helo=smtp.w2.samsung.com) by bombadil.infradead.org with esmtpsa (Exim 4.80.1 #2 (Red Hat Linux)) id 1X2Mpi-0006tC-DZ; Wed, 02 Jul 2014 15:52:30 +0000 Received: from mchehab by smtp.w2.samsung.com with local (Exim 4.80.1) (envelope-from ) id 1X2Mpe-0006El-7B; Wed, 02 Jul 2014 12:52:26 -0300 From: Mauro Carvalho Chehab To: Patrick Boettcher Cc: Mauro Carvalho Chehab , Linux Media Mailing List , Mauro Carvalho Chehab Subject: [PATCH RFC 8/9] dib0700: Optimize the AGC settings for dib8096gp Date: Wed, 2 Jul 2014 12:52:22 -0300 Message-Id: <1404316343-23856-9-git-send-email-m.chehab@samsung.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1404316343-23856-1-git-send-email-m.chehab@samsung.com> References: <1404316343-23856-1-git-send-email-m.chehab@samsung.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.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 Replicate the settings found at the windows driver for Mygica S870. Those should improve tuning with real signals. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/dvb-usb/dib0700_devices.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/media/usb/dvb-usb/dib0700_devices.c b/drivers/media/usb/dvb-usb/dib0700_devices.c index baffa8fe09ef..aad725b23feb 100644 --- a/drivers/media/usb/dvb-usb/dib0700_devices.c +++ b/drivers/media/usb/dvb-usb/dib0700_devices.c @@ -1426,7 +1426,7 @@ static struct dibx000_agc_config dib8090_agc_config[2] = { .thlock = 118, .wbd_inv = 0, - .wbd_ref = 3530, + .wbd_ref = 958, .wbd_sel = 1, .wbd_alpha = 5, @@ -1500,11 +1500,11 @@ static struct dibx000_agc_config dib8090_agc_config[2] = { }; static struct dibx000_bandwidth_config dib8090_pll_config_12mhz = { - .internal = 54000, + .internal = 60000, .sampling = 13500, .pll_prediv = 1, - .pll_ratio = 18, + .pll_ratio = 20, .pll_range = 3, .pll_reset = 1, .pll_bypass = 0, @@ -1518,7 +1518,7 @@ static struct dibx000_bandwidth_config dib8090_pll_config_12mhz = { .sad_cfg = (3 << 14) | (1 << 12) | (599 << 0), .ifreq = (0 << 25) | 0, - .timf = 20199727, + .timf = 18179755, .xtal_hz = 12000000, }; @@ -1559,7 +1559,7 @@ static struct dib8000_config dib809x_dib8000_config[2] = { .output_mode = OUTMODE_MPEG2_FIFO, .drives = 0x2d98, .diversity_delay = 48, - .refclksel = 3, + .refclksel = 1, }, { .output_mpeg2_in_188_bytes = 1,