Hi<br><br><div class="gmail_quote">On Sun, Mar 18, 2012 at 10:56 PM, NeilBrown <span dir="ltr"><<a href="mailto:neilb@suse.de">neilb@suse.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I recently turned the volume on my gta04 way up so that the alarm sound would<br>
be clearly audible from the other room.<br>
I was subsequently surprised to notice that there was a faint white-noise hum<br>
coming from it while it was suspended.<br>
<br>
It seems that the audio codec is not being turned off - either when not in<br>
use, or in suspend.<br>
<br>
I confirmed this with printks in twl4030_codec_enable() in<br>
sound/soc/codecs/twl4030.c.<br>
<br>
I hacked that function to always disable - never enable - and measured the<br>
suspend current. It had dropped from about 46mA to about 42mA.<br>
<br>
So it seems we are wasting a few milliamps by leaving the codec on.<br>
<br>
The code looks correct: twl4030_soc_suspend() calls<br>
twl4030_set_bias_level(SND_SOC_BIAS_OFF), and that calls<br>
twl4030_codec_enable(0), which will power off the codec.<br>
<br>
But some how some part of that isn't happening.<br>
<br>
I won't have time to look more deeply into this for a while, but if someone<br>
has time and wants to hunt around in the code - insert lots of printks </blockquote><div> Is it possible to debug with a copy of the RAM saved by some u-boot command?</div><div>I suppose the kernel is at least logging to RAM its last actions before shuting off... </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">and<br>
figure out why the codec isn't being turned off, I'm sure it would be a lot<br>
of fun.<br>
<br>
(this is in 3.2-gta04)<br>
<span class="HOEnZb"><font color="#888888"><br>
NeilBrown<br>
</font></span><br>_______________________________________________<br>
Gta04-owner mailing list<br>
<a href="mailto:Gta04-owner@goldelico.com">Gta04-owner@goldelico.com</a><br>
<a href="http://lists.goldelico.com/mailman/listinfo/gta04-owner" target="_blank">http://lists.goldelico.com/mailman/listinfo/gta04-owner</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><a href="http://www.avaaz.org" target="_blank">http://www.avaaz.org</a><br><div><a href="http://www.avaaz.org/fr/index.php" target="_blank">http://www.avaaz.org/fr/index.php</a><br>
</div><div><a href="http://www.avaaz.org/stat/new/images/blue/logo_fr.png/1331309272" target="_blank">http://www.avaaz.org/stat/new/images/blue/logo_fr.png/1331309272</a><br></div><br>