Skip to content

Commit

Permalink
[media] tda8290: Turn tda829x on before touching at the I2C gate
Browse files Browse the repository at this point in the history
On Kworld SBTVD, tda8295-c1 starts in power off mode. It needs
to be powered, otherwise, the I2C gate control command won't work.

Cc: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Jan 19, 2011
1 parent 47ab285 commit 9d700a0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions drivers/media/common/tuners/tda8290.c
Original file line number Diff line number Diff line change
Expand Up @@ -754,11 +754,10 @@ struct dvb_frontend *tda829x_attach(struct dvb_frontend *fe,
sizeof(struct analog_demod_ops));
}

if ((!(cfg) || (TDA829X_PROBE_TUNER == cfg->probe_tuner)) &&
(tda829x_find_tuner(fe) < 0)) {
memset(&fe->ops.analog_ops, 0, sizeof(struct analog_demod_ops));

goto fail;
if (!(cfg) || (TDA829X_PROBE_TUNER == cfg->probe_tuner)) {
tda8295_power(fe, 1);
if (tda829x_find_tuner(fe) < 0)
goto fail;
}

switch (priv->ver) {
Expand Down Expand Up @@ -803,6 +802,8 @@ struct dvb_frontend *tda829x_attach(struct dvb_frontend *fe,
return fe;

fail:
memset(&fe->ops.analog_ops, 0, sizeof(struct analog_demod_ops));

tda829x_release(fe);
return NULL;
}
Expand Down

0 comments on commit 9d700a0

Please sign in to comment.