> This should be done within the sound driver already.  See
> drivers/sound/h3600-uda1341.c:h3600_audio_shutdown() which is called on the
> closing of the sound device and just before entering sleep mode through the
> pm callback in drivers/sound/sa1100-audio.c.
>
The problem is that h3600_audio_shutdown() is called only if you are a
playing a sound, so you need to have a MP3 player running to shutdown the
sound driver (-:) ), i've verfied this on the 2.4.13-ac4-rmk1, and i am
_sure_ .
But now I have a fix for this.

> Aren't those handled by the pcmcia core driver?  If not that's probably the
> best place to do it.  Also I noticed the pcmcia bus is enabled as soon as
> the pcmcia driver is initialized instead of turning it on only when a card
> insertion is detected, which is another source of power leak.

No, it is not, or not complete yet. Somewhere we need to take care of the
specific EGPIO for the h3600 platform, i think that the best place is
somewhere in h3600-sleeve* drivers available at handleds.org.

> We probably need to do it explicitly.

Other possible solution for the IPAQ H36xxx that came into my mind is to
set all EGPIO to low on suspend, and then on resume we restore all
EGPIO to the original state.

/Benny


_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to