diff options
author | Eric Laurent <elaurent@google.com> | 2015-05-20 14:43:50 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2015-05-20 17:35:37 -0700 |
commit | 72e3f39146fce4686bd96f11057c051bea376dfb (patch) | |
tree | 00e43a5392f717a49a3569de3a5bdce9aa7b6a6e /media/libmedia/AudioSystem.cpp | |
parent | 4a95e69406aa2e9896d865962d6d947ebbdac6fc (diff) | |
download | frameworks_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 'media/libmedia/AudioSystem.cpp')
-rw-r--r-- | media/libmedia/AudioSystem.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/media/libmedia/AudioSystem.cpp b/media/libmedia/AudioSystem.cpp index 4c2e77b..6c2c226 100644 --- a/media/libmedia/AudioSystem.cpp +++ b/media/libmedia/AudioSystem.cpp @@ -423,6 +423,13 @@ audio_hw_sync_t AudioSystem::getAudioHwSyncForSession(audio_session_t sessionId) return af->getAudioHwSyncForSession(sessionId); } +status_t AudioSystem::systemReady() +{ + const sp<IAudioFlinger>& af = AudioSystem::get_audio_flinger(); + if (af == 0) return NO_INIT; + return af->systemReady(); +} + // --------------------------------------------------------------------------- |