diff options
author | Manu Abraham <abraham.manu@gmail.com> | 2007-09-26 17:32:13 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-29 14:53:17 -0500 |
commit | d98c02859fbeefe19e6b182997c6a8b3c9c32acc (patch) | |
tree | 08036e298eb362a52cee34c43a983934a9fc3421 /drivers | |
parent | 421b2970d24f7571039b29e6726bce1608578ac4 (diff) |
V4L/DVB (9407): Optimizations Reduce capture range from 10MHz to 3Mhz
* Reduces szapping time a lot
* increased stability at Low Symbol rates
* overall increases reliability in tuning
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb/frontends/stb0899_drv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/dvb/frontends/stb0899_drv.c b/drivers/media/dvb/frontends/stb0899_drv.c index ce1016eed808..67f6edfa7e56 100644 --- a/drivers/media/dvb/frontends/stb0899_drv.c +++ b/drivers/media/dvb/frontends/stb0899_drv.c | |||
@@ -1481,8 +1481,8 @@ static enum dvbfe_search stb0899_search(struct dvb_frontend *fe, struct dvbfe_pa | |||
1481 | } | 1481 | } |
1482 | dprintk(verbose, FE_DEBUG, 1, "delivery system=%d", state->delsys); | 1482 | dprintk(verbose, FE_DEBUG, 1, "delivery system=%d", state->delsys); |
1483 | 1483 | ||
1484 | // SearchRange = 3000000; /* Search Bandwidth (3 Mhz, was initially 10 Mhz) */ | 1484 | SearchRange = 3000000; /* Search Bandwidth (3 Mhz, was initially 10 Mhz) */ |
1485 | SearchRange = 10000000; /* Search Bandwidth (3 Mhz, was initially 10 Mhz) */ | 1485 | // SearchRange = 10000000; /* Search Bandwidth (3 Mhz, was initially 10 Mhz) */ |
1486 | dprintk(verbose, FE_DEBUG, 1, "Frequency=%d, Srate=%d", i_params->freq, i_params->srate); | 1486 | dprintk(verbose, FE_DEBUG, 1, "Frequency=%d, Srate=%d", i_params->freq, i_params->srate); |
1487 | /* checking Search Range is meaningless for a fixed 3 Mhz */ | 1487 | /* checking Search Range is meaningless for a fixed 3 Mhz */ |
1488 | if (INRANGE(i_params->srate, 1000000, 45000000)) { | 1488 | if (INRANGE(i_params->srate, 1000000, 45000000)) { |
@@ -1521,7 +1521,7 @@ static enum dvbfe_search stb0899_search(struct dvb_frontend *fe, struct dvbfe_pa | |||
1521 | 1521 | ||
1522 | /* What to do for tuners having no bandwidth setup ? */ | 1522 | /* What to do for tuners having no bandwidth setup ? */ |
1523 | if (state->config->tuner_set_bandwidth) | 1523 | if (state->config->tuner_set_bandwidth) |
1524 | state->config->tuner_set_bandwidth(fe, (13 * (stb0899_carr_width(state) + 10000000)) / 10); | 1524 | state->config->tuner_set_bandwidth(fe, (135 * (stb0899_carr_width(state) + SearchRange)) / 100); |
1525 | if (state->config->tuner_get_bandwidth) | 1525 | if (state->config->tuner_get_bandwidth) |
1526 | state->config->tuner_get_bandwidth(fe, &internal->tuner_bw); | 1526 | state->config->tuner_get_bandwidth(fe, &internal->tuner_bw); |
1527 | /* Set DVB-S1 AGC */ | 1527 | /* Set DVB-S1 AGC */ |
@@ -1553,7 +1553,7 @@ static enum dvbfe_search stb0899_search(struct dvb_frontend *fe, struct dvbfe_pa | |||
1553 | internal->srch_range = SearchRange; | 1553 | internal->srch_range = SearchRange; |
1554 | 1554 | ||
1555 | if (state->config->tuner_set_bandwidth) | 1555 | if (state->config->tuner_set_bandwidth) |
1556 | state->config->tuner_set_bandwidth(fe, (stb0899_carr_width(state) + 10000000)); | 1556 | state->config->tuner_set_bandwidth(fe, (135 * (stb0899_carr_width(state) + SearchRange)) / 100); |
1557 | if (state->config->tuner_get_bandwidth) | 1557 | if (state->config->tuner_get_bandwidth) |
1558 | state->config->tuner_get_bandwidth(fe, &internal->tuner_bw); | 1558 | state->config->tuner_get_bandwidth(fe, &internal->tuner_bw); |
1559 | 1559 | ||