Re: alsa device drain power

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

 



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

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux