aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;