This patch increases search range based on symbol rate.

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

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!");
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to