summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2008-12-31 10:34:18 -0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-31 10:34:18 -0200
commit055a77bbdc33877df3b1a9d9d8aa49230923a450 (patch)
treea8f88e20c3de63c67e8d8994bde44ceda174f25b
parente9532d047a5c76bc75c708047e55716efb8bfca5 (diff)
downloadmediapointer-dvb-s2-055a77bbdc33877df3b1a9d9d8aa49230923a450.tar.gz
mediapointer-dvb-s2-055a77bbdc33877df3b1a9d9d8aa49230923a450.tar.bz2
tuner-simple: Fix tuner type set message
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--linux/drivers/media/common/tuners/tuner-simple.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/linux/drivers/media/common/tuners/tuner-simple.c b/linux/drivers/media/common/tuners/tuner-simple.c
index 0d9fc1bb2..e65c170c8 100644
--- a/linux/drivers/media/common/tuners/tuner-simple.c
+++ b/linux/drivers/media/common/tuners/tuner-simple.c
@@ -1095,7 +1095,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))) {