summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioFlinger.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2015-05-20 14:43:50 -0700
committerEric Laurent <elaurent@google.com>2015-05-20 17:35:37 -0700
commit72e3f39146fce4686bd96f11057c051bea376dfb (patch)
tree00e43a5392f717a49a3569de3a5bdce9aa7b6a6e /services/audioflinger/AudioFlinger.h
parent4a95e69406aa2e9896d865962d6d947ebbdac6fc (diff)
downloadframeworks_av-72e3f39146fce4686bd96f11057c051bea376dfb.zip
frameworks_av-72e3f39146fce4686bd96f11057c051bea376dfb.tar.gz
frameworks_av-72e3f39146fce4686bd96f11057c051bea376dfb.tar.bz2
audio flinger: do not call JAVA services until system is ready
Wait for system ready indication form AudioService before enabling calls to scheduling service or power manager. Bug: 11520969. Change-Id: I221927394f4a08fd86c9d457e55dd0e07949f0cf
Diffstat (limited to 'services/audioflinger/AudioFlinger.h')
-rw-r--r--services/audioflinger/AudioFlinger.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h
index 51b2610..73590ae 100644
--- a/services/audioflinger/AudioFlinger.h
+++ b/services/audioflinger/AudioFlinger.h
@@ -257,6 +257,9 @@ public:
/* Get the HW synchronization source used for an audio session */
virtual audio_hw_sync_t getAudioHwSyncForSession(audio_session_t sessionId);
+ /* Indicate JAVA services are ready (scheduling, power management ...) */
+ virtual status_t systemReady();
+
virtual status_t onTransact(
uint32_t code,
const Parcel& data,
@@ -752,6 +755,7 @@ private:
uint32_t mPrimaryOutputSampleRate; // sample rate of the primary output, or zero if none
// protected by mHardwareLock
+ bool mSystemReady;
};
#undef INCLUDING_FROM_AUDIOFLINGER_H