]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
V4L/DVB (10162): tuner-simple: Fix tuner type set message
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 31 Dec 2008 12:34:18 +0000 (09:34 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 2 Jan 2009 19:14:44 +0000 (17:14 -0200)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/tuner-simple.c

index fb3f3b3adaba27c9fb2b1244f99914122f7c7364..1a21191566f5d6356332e042bcae9da4477044b5 100644 (file)
@@ -1059,7 +1059,12 @@ struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe,
        memcpy(&fe->ops.tuner_ops, &simple_tuner_ops,
               sizeof(struct dvb_tuner_ops));
 
-       tuner_info("type set to %d (%s)\n", type, priv->tun->name);
+       if (type != priv->type)
+               tuner_warn("couldn't set type to %d. Using %d (%s) instead\n",
+                           type, priv->type, priv->tun->name);
+       else
+               tuner_info("type set to %d (%s)\n",
+                          priv->type, priv->tun->name);
 
        if ((debug) || ((atv_input[priv->nr] > 0) ||
                        (dtv_input[priv->nr] > 0))) {