diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-20 07:17:10 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-30 09:39:19 -0200 |
commit | 16a5e53d09227a080410b0385a7884bf7b84bc06 (patch) | |
tree | ee0ac4f7a4272788a169786a8cdd9eabcf5662de /drivers/media/video/tuner-core.c | |
parent | d553cc958aacdc3cdfcecd675b15458aa156c736 (diff) | |
download | linux-stable-16a5e53d09227a080410b0385a7884bf7b84bc06.tar.gz linux-stable-16a5e53d09227a080410b0385a7884bf7b84bc06.tar.bz2 linux-stable-16a5e53d09227a080410b0385a7884bf7b84bc06.zip |
V4L/DVB (9925): tuner-core: add debug msg's when asking tuner to sleep
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/tuner-core.c')
-rw-r--r-- | drivers/media/video/tuner-core.c | 4 |
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, 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); @@ -787,6 +789,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; |