Commit 16a5e53d authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

V4L/DVB (9925): tuner-core: add debug msg's when asking tuner to sleep

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent d553cc95
...@@ -733,6 +733,8 @@ static inline int set_mode(struct i2c_client *client, struct tuner *t, int mode, ...@@ -733,6 +733,8 @@ static inline int set_mode(struct i2c_client *client, struct tuner *t, int mode,
t->mode = mode; t->mode = mode;
if (check_mode(t, cmd) == -EINVAL) { if (check_mode(t, cmd) == -EINVAL) {
tuner_dbg("Tuner doesn't support this mode. "
"Putting tuner to sleep\n");
t->mode = T_STANDBY; t->mode = T_STANDBY;
if (analog_ops->standby) if (analog_ops->standby)
analog_ops->standby(&t->fe); analog_ops->standby(&t->fe);
...@@ -787,6 +789,8 @@ static int tuner_s_standby(struct v4l2_subdev *sd, u32 standby) ...@@ -787,6 +789,8 @@ static int tuner_s_standby(struct v4l2_subdev *sd, u32 standby)
struct tuner *t = to_tuner(sd); struct tuner *t = to_tuner(sd);
struct analog_demod_ops *analog_ops = &t->fe.ops.analog_ops; 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) if (check_mode(t, "TUNER_SET_STANDBY") == -EINVAL)
return 0; return 0;
t->mode = T_STANDBY; t->mode = T_STANDBY;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment