diff options
-rw-r--r-- | services/audiopolicy/AudioPolicyService.cpp | 4 | ||||
-rw-r--r-- | services/audiopolicy/AudioPolicyService.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/services/audiopolicy/AudioPolicyService.cpp b/services/audiopolicy/AudioPolicyService.cpp index 4761a13..06a7e84 100644 --- a/services/audiopolicy/AudioPolicyService.cpp +++ b/services/audiopolicy/AudioPolicyService.cpp @@ -61,6 +61,10 @@ AudioPolicyService::AudioPolicyService() : BnAudioPolicyService(), mpAudioPolicyDev(NULL), mpAudioPolicy(NULL), mAudioPolicyManager(NULL), mAudioPolicyClient(NULL), mPhoneState(AUDIO_MODE_INVALID) { +} + +void AudioPolicyService::onFirstRef() +{ char value[PROPERTY_VALUE_MAX]; const struct hw_module_t *module; int forced_val; diff --git a/services/audiopolicy/AudioPolicyService.h b/services/audiopolicy/AudioPolicyService.h index 2cea40b..4e68ab1 100644 --- a/services/audiopolicy/AudioPolicyService.h +++ b/services/audiopolicy/AudioPolicyService.h @@ -134,6 +134,9 @@ public: // IBinder::DeathRecipient virtual void binderDied(const wp<IBinder>& who); + // RefBase + virtual void onFirstRef(); + // // Helpers for the struct audio_policy_service_ops implementation. // This is used by the audio policy manager for certain operations that |