From patchwork Mon Nov 2 22:50:55 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Regel X-Patchwork-Id: 57165 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nA2MorBv027306 for ; Mon, 2 Nov 2009 22:50:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757176AbZKBWux (ORCPT ); Mon, 2 Nov 2009 17:50:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757185AbZKBWux (ORCPT ); Mon, 2 Nov 2009 17:50:53 -0500 Received: from mail.gmx.net ([213.165.64.20]:35258 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1757155AbZKBWux (ORCPT ); Mon, 2 Nov 2009 17:50:53 -0500 Received: (qmail invoked by alias); 02 Nov 2009 22:50:57 -0000 Received: from i59F6A205.versanet.de (EHLO [192.168.0.20]) [89.246.162.5] by mail.gmx.net (mp041) with SMTP; 02 Nov 2009 23:50:57 +0100 X-Authenticated: #126152 X-Provags-ID: V01U2FsdGVkX18FyHk4JCcF8GkjgHNE2/tdkTHDIyCu36MTPG6C2R PRB1X4gCOEKLW9 Message-ID: <4AEF624F.8030500@gmx.de> Date: Mon, 02 Nov 2009 23:50:55 +0100 From: Andreas Regel User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: linux-media@vger.kernel.org Subject: [PATCH 1/9] stv090x: increase search range based on symbol rate X-Y-GMX-Trusted: 0 X-FuHaFi: 0.5 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff -r 69d4b117a9e5 linux/drivers/media/dvb/frontends/stv090x.c --- a/linux/drivers/media/dvb/frontends/stv090x.c Mon Nov 02 21:38:25 2009 +0100 +++ b/linux/drivers/media/dvb/frontends/stv090x.c Mon Nov 02 21:43:27 2009 +0100 @@ -4108,7 +4108,13 @@ state->search_mode = STV090x_SEARCH_AUTO; state->algo = STV090x_COLD_SEARCH; state->fec = STV090x_PRERR; - state->search_range = 2000000; + if (state->srate > 10000000) { + dprintk(FE_DEBUG, 1, "Search range: 10 MHz"); + state->search_range = 10000000; + } else { + dprintk(FE_DEBUG, 1, "Search range: 5 MHz"); + state->search_range = 5000000; + } if (stv090x_algo(state) == STV090x_RANGEOK) { dprintk(FE_DEBUG, 1, "Search success!");