I have Spirit UL on my HTC Desire HD with Jellytime ROM. App works OK however, when I quit the app, phone still does 60mA of battery drain per 10 minutes. BBS shows nothing suspicious, CPU usage is low, maby some HW is not properly put into sleep? Is there any debug I could do?
These two commands from adb shell or a terminal app with SU should fix it:
ioctl -l 1 -a 1 /dev/codec_aic3254 0x40047313 29
ioctl -l 1 -a 1 /dev/codec_aic3254 0x40047312 29
It's also possible this could be fixed by muting Spirit, selecting Menu-> Test-> Audio-> Restart media (at the end of the long list), then pressing the power button to close Spirit.
All of this is a problem because Android will call Spirit when audio focus is being taken, but by that time the audio library is already in the midst of switching to a new mode. Then Spirit and the audio library are fighting each other, not really knowing what the other is doing and when, and big problems happen. In this case, switching the DSP off will cause problems if you are answering a phone call, because the switch off comes too late to do.
All of this is why I'm now taking the long, proper approach of modifying audio libraries.