Patchworkβ [1/9] stv090x: increase search range based on symbol rate

login
register
about
Submitter Andreas Regel
Date 2009-11-02 22:50:55
Message ID <4AEF624F.8030500@gmx.de>
Download mbox | patch
Permalink /patch/57165/
State Accepted
Headers show

Comments

Andreas Regel - 2009-11-02 22:50:55
This patch increases search range based on symbol rate.

Signed-off-by: Andreas Regel <andreas.regel@gmx.de>

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

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!");