Commit 9d700a06 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] tda8290: Turn tda829x on before touching at the I2C gate

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: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 47ab285a
...@@ -754,11 +754,10 @@ struct dvb_frontend *tda829x_attach(struct dvb_frontend *fe, ...@@ -754,11 +754,10 @@ struct dvb_frontend *tda829x_attach(struct dvb_frontend *fe,
sizeof(struct analog_demod_ops)); sizeof(struct analog_demod_ops));
} }
if ((!(cfg) || (TDA829X_PROBE_TUNER == cfg->probe_tuner)) && if (!(cfg) || (TDA829X_PROBE_TUNER == cfg->probe_tuner)) {
(tda829x_find_tuner(fe) < 0)) { tda8295_power(fe, 1);
memset(&fe->ops.analog_ops, 0, sizeof(struct analog_demod_ops)); if (tda829x_find_tuner(fe) < 0)
goto fail;
goto fail;
} }
switch (priv->ver) { switch (priv->ver) {
...@@ -803,6 +802,8 @@ struct dvb_frontend *tda829x_attach(struct dvb_frontend *fe, ...@@ -803,6 +802,8 @@ struct dvb_frontend *tda829x_attach(struct dvb_frontend *fe,
return fe; return fe;
fail: fail:
memset(&fe->ops.analog_ops, 0, sizeof(struct analog_demod_ops));
tda829x_release(fe); tda829x_release(fe);
return NULL; return NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment