diff options
author | Manu Abraham <abraham.manu@gmail.com> | 2007-10-19 05:27:56 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-29 14:53:19 -0500 |
commit | 7e4e8c52e3f87a83ce967397bb389f75cb71742d (patch) | |
tree | af9a8b8f9dd811b479e7a5e2e95a2bb042824265 | |
parent | ddbee1c6e2b2fb2318281a144b7be536f843da24 (diff) |
V4L/DVB (9427): Code simplification: Sleep only for the required time interval.
* Saves 70 mS LOCK time on the STB6100 based
* Saves 100 mS LOCK time on the TDA8261 based
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/dvb/frontends/stb0899_algo.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/stb6100.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/stb0899_algo.c b/drivers/media/dvb/frontends/stb0899_algo.c index 3fbf00ed79d3..ff3a3f83a6d3 100644 --- a/drivers/media/dvb/frontends/stb0899_algo.c +++ b/drivers/media/dvb/frontends/stb0899_algo.c | |||
@@ -618,8 +618,6 @@ enum stb0899_status stb0899_dvbs_algo(struct stb0899_state *state) | |||
618 | if (state->config->tuner_set_frequency) | 618 | if (state->config->tuner_set_frequency) |
619 | state->config->tuner_set_frequency(&state->frontend, internal->freq); | 619 | state->config->tuner_set_frequency(&state->frontend, internal->freq); |
620 | 620 | ||
621 | msleep(100); | ||
622 | |||
623 | if (state->config->tuner_get_frequency) | 621 | if (state->config->tuner_get_frequency) |
624 | state->config->tuner_get_frequency(&state->frontend, &internal->freq); | 622 | state->config->tuner_get_frequency(&state->frontend, &internal->freq); |
625 | 623 | ||
diff --git a/drivers/media/dvb/frontends/stb6100.c b/drivers/media/dvb/frontends/stb6100.c index 386db06e4be8..c61ade64b984 100644 --- a/drivers/media/dvb/frontends/stb6100.c +++ b/drivers/media/dvb/frontends/stb6100.c | |||
@@ -426,6 +426,8 @@ static int stb6100_set_frequency(struct dvb_frontend *fe, u32 frequency) | |||
426 | if ((rc = stb6100_write_reg(state, STB6100_FCCK, regs[STB6100_FCCK])) < 0) | 426 | if ((rc = stb6100_write_reg(state, STB6100_FCCK, regs[STB6100_FCCK])) < 0) |
427 | return rc; | 427 | return rc; |
428 | 428 | ||
429 | msleep(30); | ||
430 | |||
429 | return 0; | 431 | return 0; |
430 | } | 432 | } |
431 | 433 | ||