summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2008-12-20 08:17:10 -0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-20 08:17:10 -0200
commit1e0f865674f729f9f5e346a2f0f77bc3b297c51b (patch)
tree1d7a56abf2dd1d0b3cc7711805c7788f6bba84ee /linux/drivers/media/video
parentc4542dc81f4ce29264cfdf0ac973a51129685567 (diff)
downloadmediapointer-dvb-s2-1e0f865674f729f9f5e346a2f0f77bc3b297c51b.tar.gz
mediapointer-dvb-s2-1e0f865674f729f9f5e346a2f0f77bc3b297c51b.tar.bz2
tuner-core: add debug msg's when asking tuner to sleep
From: Mauro Carvalho Chehab <mchehab@redhat.com> Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r--linux/drivers/media/video/tuner-core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c
index e649f2eb7..47b58fe98 100644
--- a/linux/drivers/media/video/tuner-core.c
+++ b/linux/drivers/media/video/tuner-core.c
@@ -737,6 +737,8 @@ static inline int set_mode(struct i2c_client *client, struct tuner *t, int mode,
t->mode = mode;
if (check_mode(t, cmd) == -EINVAL) {
+ tuner_dbg("Tuner doesn't support this mode. "
+ "Putting tuner to sleep\n");
t->mode = T_STANDBY;
if (analog_ops->standby)
analog_ops->standby(&t->fe);
@@ -797,6 +799,8 @@ static int tuner_s_standby(struct v4l2_subdev *sd, u32 standby)
struct tuner *t = to_tuner(sd);
struct analog_demod_ops *analog_ops = &t->fe.ops.analog_ops;
+ tuner_dbg("Putting tuner to sleep\n");
+
if (check_mode(t, "TUNER_SET_STANDBY") == -EINVAL)
return 0;
t->mode = T_STANDBY;