summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab2008-12-31 13:34:18 +0100
committerMauro Carvalho Chehab2009-01-02 20:14:44 +0100
commit0b82c5d6748a15758875f78ac772c6d48ebead2a (patch)
treeefec9e69cf370c988d35d7431bb7568ae5c08aea /drivers/media
parentV4L/DVB (10161): saa7134: fix autodetection for AVer TV GO 007 FM Plus (diff)
downloadkernel-qcow2-linux-0b82c5d6748a15758875f78ac772c6d48ebead2a.tar.gz
kernel-qcow2-linux-0b82c5d6748a15758875f78ac772c6d48ebead2a.tar.xz
kernel-qcow2-linux-0b82c5d6748a15758875f78ac772c6d48ebead2a.zip
V4L/DVB (10162): tuner-simple: Fix tuner type set message
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/common/tuners/tuner-simple.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/media/common/tuners/tuner-simple.c b/drivers/media/common/tuners/tuner-simple.c
index fb3f3b3adaba..1a21191566f5 100644
--- a/drivers/media/common/tuners/tuner-simple.c
+++ b/drivers/media/common/tuners/tuner-simple.c
@@ -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))) {