summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/stb0899_drv.c
diff options
context:
space:
mode:
authorManu Abraham <manu@linuxtv.org>2007-09-27 01:32:13 +0400
committerManu Abraham <manu@linuxtv.org>2007-09-27 01:32:13 +0400
commitf1ccdcf99d9319cfca38cf3a55e6be98b99d62e9 (patch)
tree2068f40e0c2a9f7b9838b5611779f77efb43f67f /linux/drivers/media/dvb/frontends/stb0899_drv.c
parentdfca2e081a99a1747cf0a80d0671f31701d4f58c (diff)
downloadmediapointer-dvb-s2-f1ccdcf99d9319cfca38cf3a55e6be98b99d62e9.tar.gz
mediapointer-dvb-s2-f1ccdcf99d9319cfca38cf3a55e6be98b99d62e9.tar.bz2
Optimizations Reduce capture range from 10MHz to 3Mhz
* Reduces szapping time a lot * increased stability at Low Symbol rates * overall increases reliability in tuning From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/stb0899_drv.c')
-rw-r--r--linux/drivers/media/dvb/frontends/stb0899_drv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/linux/drivers/media/dvb/frontends/stb0899_drv.c b/linux/drivers/media/dvb/frontends/stb0899_drv.c
index 3078c04d9..078678792 100644
--- a/linux/drivers/media/dvb/frontends/stb0899_drv.c
+++ b/linux/drivers/media/dvb/frontends/stb0899_drv.c
@@ -1557,8 +1557,8 @@ static enum dvbfe_search stb0899_search(struct dvb_frontend *fe, struct dvbfe_pa
}
dprintk(verbose, FE_DEBUG, 1, "delivery system=%d", state->delsys);
-// SearchRange = 3000000; /* Search Bandwidth (3 Mhz, was initially 10 Mhz) */
- SearchRange = 10000000; /* Search Bandwidth (3 Mhz, was initially 10 Mhz) */
+ SearchRange = 3000000; /* Search Bandwidth (3 Mhz, was initially 10 Mhz) */
+// SearchRange = 10000000; /* Search Bandwidth (3 Mhz, was initially 10 Mhz) */
dprintk(verbose, FE_DEBUG, 1, "Frequency=%d, Srate=%d", i_params->freq, i_params->srate);
/* checking Search Range is meaningless for a fixed 3 Mhz */
if (INRANGE(i_params->srate, 1000000, 45000000)) {
@@ -1597,7 +1597,7 @@ static enum dvbfe_search stb0899_search(struct dvb_frontend *fe, struct dvbfe_pa
/* What to do for tuners having no bandwidth setup ? */
if (state->config->tuner_set_bandwidth)
- state->config->tuner_set_bandwidth(fe, (13 * (stb0899_carr_width(state) + 10000000)) / 10);
+ state->config->tuner_set_bandwidth(fe, (135 * (stb0899_carr_width(state) + SearchRange)) / 100);
if (state->config->tuner_get_bandwidth)
state->config->tuner_get_bandwidth(fe, &internal->tuner_bw);
/* Set DVB-S1 AGC */
@@ -1629,7 +1629,7 @@ static enum dvbfe_search stb0899_search(struct dvb_frontend *fe, struct dvbfe_pa
internal->srch_range = SearchRange;
if (state->config->tuner_set_bandwidth)
- state->config->tuner_set_bandwidth(fe, (stb0899_carr_width(state) + 10000000));
+ state->config->tuner_set_bandwidth(fe, (135 * (stb0899_carr_width(state) + SearchRange)) / 100);
if (state->config->tuner_get_bandwidth)
state->config->tuner_get_bandwidth(fe, &internal->tuner_bw);