Skip to content

Commit

Permalink
V4L/DVB: [STV090x] Use gate control, while tuner is being accessed
Browse files Browse the repository at this point in the history
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Manu Abraham authored and Mauro Carvalho Chehab committed May 18, 2010
1 parent c5b74b0 commit 85532d1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion drivers/media/dvb/frontends/stv090x.c
Original file line number Diff line number Diff line change
Expand Up @@ -3838,11 +3838,17 @@ static int stv090x_sleep(struct dvb_frontend *fe)
struct stv090x_state *state = fe->demodulator_priv;
u32 reg;

if (state->config->tuner_init) {
if (stv090x_i2c_gate_ctrl(state, 1) < 0)
goto err;

if (state->config->tuner_sleep) {
if (state->config->tuner_sleep(fe) < 0)
goto err_gateoff;
}

if (stv090x_i2c_gate_ctrl(state, 0) < 0)
goto err;

dprintk(FE_DEBUG, 1, "Set %s to sleep",
state->device == STV0900 ? "STV0900" : "STV0903");

Expand Down

0 comments on commit 85532d1

Please sign in to comment.