]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
V4L: tda8290: fix TDA8290 + TDA18271 initialization
authorMichael Krufky <mkrufky@linuxtv.org>
Mon, 5 Jan 2009 21:25:04 +0000 (18:25 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 Mar 2009 00:53:02 +0000 (17:53 -0700)
(cherry picked from commit 439b72b69e4992e9ec34b74304f0fa95623934eb)

Don't call tda8290_init_tuner unless we have either a TDA8275 or TDA8275A
present. Calling this function will cause a TDA18271 to get sick, so we
should only call it when needed.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/media/common/tuners/tda8290.c

index 91204d3f282dfc5de1c02c7c9b9ad6c62959ff13..9690264a17ff05ba5a5aae1609da21528bc13bfd 100644 (file)
@@ -726,7 +726,8 @@ struct dvb_frontend *tda829x_attach(struct dvb_frontend *fe,
        fe->ops.analog_ops.info.name = name;
 
        if (priv->ver & TDA8290) {
-               tda8290_init_tuner(fe);
+               if (priv->ver & (TDA8275 | TDA8275A))
+                       tda8290_init_tuner(fe);
                tda8290_init_if(fe);
        } else if (priv->ver & TDA8295)
                tda8295_init_if(fe);