aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2008-12-20 05:17:10 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-30 06:39:19 -0500
commit16a5e53d09227a080410b0385a7884bf7b84bc06 (patch)
treeee0ac4f7a4272788a169786a8cdd9eabcf5662de
parentd553cc958aacdc3cdfcecd675b15458aa156c736 (diff)
V4L/DVB (9925): tuner-core: add debug msg's when asking tuner to sleep
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/tuner-core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c
index 1fca9de04fd6..22cf0c48b450 100644
--- a/drivers/media/video/tuner-core.c
+++ b/drivers/media/video/tuner-core.c
@@ -733,6 +733,8 @@ static inline int set_mode(struct i2c_client *client, struct tuner *t, int mode,
733 t->mode = mode; 733 t->mode = mode;
734 734
735 if (check_mode(t, cmd) == -EINVAL) { 735 if (check_mode(t, cmd) == -EINVAL) {
736 tuner_dbg("Tuner doesn't support this mode. "
737 "Putting tuner to sleep\n");
736 t->mode = T_STANDBY; 738 t->mode = T_STANDBY;
737 if (analog_ops->standby) 739 if (analog_ops->standby)
738 analog_ops->standby(&t->fe); 740 analog_ops->standby(&t->fe);
@@ -787,6 +789,8 @@ static int tuner_s_standby(struct v4l2_subdev *sd, u32 standby)
787 struct tuner *t = to_tuner(sd); 789 struct tuner *t = to_tuner(sd);
788 struct analog_demod_ops *analog_ops = &t->fe.ops.analog_ops; 790 struct analog_demod_ops *analog_ops = &t->fe.ops.analog_ops;
789 791
792 tuner_dbg("Putting tuner to sleep\n");
793
790 if (check_mode(t, "TUNER_SET_STANDBY") == -EINVAL) 794 if (check_mode(t, "TUNER_SET_STANDBY") == -EINVAL)
791 return 0; 795 return 0;
792 t->mode = T_STANDBY; 796 t->mode = T_STANDBY;