diff options
author | Eric Laurent <elaurent@google.com> | 2013-07-18 14:38:44 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2013-08-19 17:45:42 -0700 |
commit | 46291616486979986cba3ab83e894728ef53063f (patch) | |
tree | 6e725226e68719d0c3c445dc5530bf0392204095 /include | |
parent | cf2a123e7ad39700c6e5318006f9acccf69511fa (diff) | |
download | frameworks_av-46291616486979986cba3ab83e894728ef53063f.zip frameworks_av-46291616486979986cba3ab83e894728ef53063f.tar.gz frameworks_av-46291616486979986cba3ab83e894728ef53063f.tar.bz2 |
AudioSystem: new audioflinger restart detection
Add a specific method to AudioSystem for AudioService to poll
for AudioFlinger service restart instead of relying on current
callback mechanism which is flaky.
Bug: 9693068.
Change-Id: Ie88bc9d25033503bc5cd2fa9d8c754d0f8045b8f
Diffstat (limited to 'include')
-rw-r--r-- | include/media/AudioSystem.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/media/AudioSystem.h b/include/media/AudioSystem.h index 006af08..225ef76 100644 --- a/include/media/AudioSystem.h +++ b/include/media/AudioSystem.h @@ -252,6 +252,9 @@ public: // bit rate, duration, video and streaming or offload property is enabled static bool isOffloadSupported(const audio_offload_info_t& info); + // check presence of audio flinger service. + // returns NO_ERROR if binding to service succeeds, DEAD_OBJECT otherwise + static status_t checkAudioFlinger(); // ---------------------------------------------------------------------------- private: |