[PATCH] Put s5h1411 into low power mode at end of attach() call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The following patch puts the s5h1411 into low power mode until first
use.  This means that the device won't be sucking an extra 44ma on the
USB port from the time the user plugs in the tuner until he/she
decides to watch some television.

Tested on the Pinnacle 801e.

Devin

-- 
Devin J. Heitmueller
http://www.devinheitmueller.com
AIM: devinheitmueller
Place s5h1411 into low power mode at end of attach routine()

From: Devin Heitmueller <devin.heitmueller@xxxxxxxxx>

Place the s5h1411 into low power mode until first use (to handle the case where
the user plugs in the device and then doesn't use it for a while).  On the
Pinnacle 801e, this brings the power usage from 126ma down to 82ma.

Signed-off-by: Devin Heitmueller <devin.heitmueller@xxxxxxxxx>
Index: v4l-dvb/linux/drivers/media/dvb/frontends/s5h1411.c
===================================================================
--- v4l-dvb.orig/linux/drivers/media/dvb/frontends/s5h1411.c	2008-11-15 22:33:00.000000000 -0500
+++ v4l-dvb/linux/drivers/media/dvb/frontends/s5h1411.c	2008-11-15 22:34:10.000000000 -0500
@@ -874,6 +874,9 @@
 	/* Note: Leaving the I2C gate open here. */
 	s5h1411_writereg(state, S5H1411_I2C_TOP_ADDR, 0xf5, 1);
 
+	/* Put the device into low-power mode until first use */
+	s5h1411_set_powerstate(&state->frontend, 1);
+
 	return &state->frontend;
 
 error:
_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux