[alsa-devel] alsa device drain power
Michael Trimarchi
trimarchi at gandalf.sssup.it
Fri Dec 18 14:28:35 CET 2009
Hi,
Mark Brown wrote:
> On Fri, Dec 18, 2009 at 01:20:51PM +0100, Michael Trimarchi wrote:
>
>
>> I don't send any sound to the device so it remains on, it's the
>> correct behavior?
>>
>
> What do you mean by that - what exactly is "send any sound to the
> device" in this context? Do you mean that you aren't playing any audio
> from the CPU?
I don't play any audio file (mp3 ogg) to the device but open it during
boot sequence
using the SpeakerOut profile. The speake audio path is not used.
For design decision Android open the device in
AudioFlinger Theread:
I/AudioHardwareALSA( 867): Initialized ALSA PLAYBACK device
AndroidPlayback_Speaker_normal
D/AudioHardwareALSA( 867): Set PLAYBACK PCM format to S16_LE (Signed 16
bit Little Endian)
D/AudioHardwareALSA( 867): Using 2 channels for PLAYBACK.
D/AudioHardwareALSA( 867): Set PLAYBACK sample rate to 44100 HZ
D/AudioHardwareALSA( 867): Buffer size: 16384
D/AudioHardwareALSA( 867): Latency: 371519
and this remains open. So the the lm is switch on on boot. I think that
the correct behavior
is to have a different profile in asound.conf to avoid power drain and
open a different one when
the system want to use the speaker or just not open the alsa device.
Hope that the now is clear
Best regards
Michael
More information about the Alsa-devel
mailing list