projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d553cc9
)
V4L/DVB (9925): tuner-core: add debug msg's when asking tuner to sleep
author
Mauro Carvalho Chehab
<
[email protected]
>
Sat, 20 Dec 2008 10:17:10 +0000
(07:17 -0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Tue, 30 Dec 2008 11:39:19 +0000
(09:39 -0200)
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/video/tuner-core.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/tuner-core.c
b/drivers/media/video/tuner-core.c
index 1fca9de04fd67a8649644c40d975037ad8cb4bf5..22cf0c48b4507d02edbc59751ab7fbd9830e5a01 100644
(file)
--- 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;