summaryrefslogtreecommitdiffstats
path: root/services/audioflinger
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-02-29 14:44:39 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-02-29 14:44:39 -0800
commitbc4b08ba67a0245e092aee8f08ba30ef22d421bf (patch)
treeadbf9c79aee788643f112a82269ccc7addb73494 /services/audioflinger
parent91cda8bdf8358a8b977a44e016b60a70bc1a5ee9 (diff)
parentd805b718b1fd2d5407ef665c8d4bb42e63dc71a9 (diff)
downloadframeworks_av-bc4b08ba67a0245e092aee8f08ba30ef22d421bf.zip
frameworks_av-bc4b08ba67a0245e092aee8f08ba30ef22d421bf.tar.gz
frameworks_av-bc4b08ba67a0245e092aee8f08ba30ef22d421bf.tar.bz2
Merge "Update AudioFlinger comments"
Diffstat (limited to 'services/audioflinger')
-rw-r--r--services/audioflinger/AudioFlinger.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h
index dbd2597..28d5a8d 100644
--- a/services/audioflinger/AudioFlinger.h
+++ b/services/audioflinger/AudioFlinger.h
@@ -455,9 +455,10 @@ private:
virtual status_t addEffectChain_l(const sp<EffectChain>& chain) = 0;
// remove an effect chain from the chain list (mEffectChains)
virtual size_t removeEffectChain_l(const sp<EffectChain>& chain) = 0;
- // lock mall effect chains Mutexes. Must be called before releasing the
+ // lock all effect chains Mutexes. Must be called before releasing the
// ThreadBase mutex before processing the mixer and effects. This guarantees the
// integrity of the chains during the process.
+ // Also sets the parameter 'effectChains' to current value of mEffectChains.
void lockEffectChains_l(Vector<sp <EffectChain> >& effectChains);
// unlock effect chains after process
void unlockEffectChains(const Vector<sp<EffectChain> >& effectChains);
@@ -575,9 +576,11 @@ private:
public:
enum mixer_state {
- MIXER_IDLE,
- MIXER_TRACKS_ENABLED,
- MIXER_TRACKS_READY
+ MIXER_IDLE, // no active tracks
+ MIXER_TRACKS_ENABLED, // at least one active track, but no track has any data ready
+ MIXER_TRACKS_READY // at least one active track, and at least one track has data
+ // standby mode does not have an enum value
+ // suspend by audio policy manager is orthogonal to mixer state
};
// playback track