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: 24586 Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1X2Mpt-0003LZ-Ev; Wed, 02 Jul 2014 17:52:41 +0200 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.72/mailfrontend-5) with esmtp id 1X2Mpr-0006wR-7v; Wed, 02 Jul 2014 17:52:41 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755515AbaGBPwg (ORCPT + 1 other); 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-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2014.7.2.154519 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' MULTIPLE_RCPTS 0.1, HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1700_1799 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, FROM_NAME_PHRASE 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HAS_X_MAILING_LIST 0, __IN_REP_TO 0, __MIME_TEXT_ONLY 0, __MULTIPLE_RCPTS_CC_X2 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __URI_NO_WWW 0, __URI_NS ' 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,