The patch number 9925 was added via Mauro Carvalho Chehab <[email protected]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        [email protected]

------

From: Mauro Carvalho Chehab  <[email protected]>
tuner-core: add debug msg's when asking tuner to sleep


Priority: normal

Signed-off-by: Mauro Carvalho Chehab <[email protected]>


---

 linux/drivers/media/video/tuner-core.c |    4 ++++
 1 file changed, 4 insertions(+)

diff -r 6241895c64f2 -r 1816d9214f1a linux/drivers/media/video/tuner-core.c
--- a/linux/drivers/media/video/tuner-core.c    Thu Dec 18 13:07:18 2008 -0200
+++ b/linux/drivers/media/video/tuner-core.c    Sat Dec 20 08:17:10 2008 -0200
@@ -737,6 +737,8 @@ static inline int set_mode(struct i2c_cl
        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);
@@ -796,6 +798,8 @@ static int tuner_s_standby(struct v4l2_s
 {
        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;


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/1816d9214f1a8c9c35fbcaf55e9addfd09942ccc

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to