]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
V4L/DVB (9427): Code simplification: Sleep only for the required time interval.
authorManu Abraham <abraham.manu@gmail.com>
Fri, 19 Oct 2007 09:27:56 +0000 (06:27 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 29 Dec 2008 19:53:19 +0000 (17:53 -0200)
* 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>
drivers/media/dvb/frontends/stb0899_algo.c
drivers/media/dvb/frontends/stb6100.c

index 3fbf00ed79d30460e4ed94f1e9199aff59cb1b16..ff3a3f83a6d3dbf79c4aa1156f43a62fda5af769 100644 (file)
@@ -618,8 +618,6 @@ enum stb0899_status stb0899_dvbs_algo(struct stb0899_state *state)
                if (state->config->tuner_set_frequency)
                        state->config->tuner_set_frequency(&state->frontend, internal->freq);
 
-               msleep(100);
-
                if (state->config->tuner_get_frequency)
                        state->config->tuner_get_frequency(&state->frontend, &internal->freq);
 
index 386db06e4be80bc0dc51b61520e732773793685a..c61ade64b984544f1842e5207f853651e68129b4 100644 (file)
@@ -426,6 +426,8 @@ static int stb6100_set_frequency(struct dvb_frontend *fe, u32 frequency)
        if ((rc = stb6100_write_reg(state, STB6100_FCCK, regs[STB6100_FCCK])) < 0)
                return rc;
 
+       msleep(30);
+
        return 0;
 }