Testing for audio playback

Andy Green andy at openmoko.com
Mon Aug 4 21:32:55 CEST 2008

Hash: SHA1

Somebody in the thread at some point said:
| Just a heads up:  I think that checking the status won't work with
| pulseaudio running under 2007.2, since pulseaudio continuously sends a
| stream of zeros to the sound card.  I haven't tested it though.
| (there is a pulseaudio configuration option for this.)

Huh?  What is the point of that?  Shouldn't we turn it off, just for
power / CPU wakes POV?

| Also, I think having the applications disable suspend would be better
| than letting some system-level daemon guess what the appropriate
| behavior is.

The advantage would be that it'll also work for apps that aren't aware
of this API.

| Then audio activity and suspend wouldn't be coupled (eg: tangoGPS while
| recording GPS tracks...).  Also, applications already communicate with
| the rest of the system, so there's probably a framework for such hooks
| somewhere.  For example, mediaplayer mutes/pauses when a phone call
| comes in...

Well it's out of my scope really, but there's more that can be done with
what is visible kernel side or on /sys, eg to see if GPS is powered as
an input to suspendability decision in your scenario above.

- -Andy
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org


More information about the community mailing list