Testing for audio playback

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


-----BEGIN PGP SIGNED MESSAGE-----
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkiXWOIACgkQOjLpvpq7dMpyiwCfV4TuJEsq1jXXhPPuYQqxKP1F
5lcAn0dRPf5AprWeFUFA7Jb1VJSIQyxT
=rVq9
-----END PGP SIGNATURE-----




More information about the community mailing list