diff options
author | Dave Burke <daveburke@google.com> | 2014-10-12 12:19:52 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-10-12 12:19:52 +0000 |
commit | fa845267f7cb5aede69ff1f62db99e8478db170d (patch) | |
tree | 31b037a6393b0a980cf6a96de42d674e8f7d8bbb /services/audiopolicy | |
parent | 6337f6032e7bdbf0b4654fb07512a00bd33ef696 (diff) | |
parent | 9286354c0a864ce2348cc7dfc6ca81e84a15f8e2 (diff) | |
download | frameworks_av-fa845267f7cb5aede69ff1f62db99e8478db170d.zip frameworks_av-fa845267f7cb5aede69ff1f62db99e8478db170d.tar.gz frameworks_av-fa845267f7cb5aede69ff1f62db99e8478db170d.tar.bz2 |
am 9286354c: Merge "Revert "audio policy: add support for ro.audio.media_deep_buffer"" into lmp-dev
* commit '9286354c0a864ce2348cc7dfc6ca81e84a15f8e2':
Revert "audio policy: add support for ro.audio.media_deep_buffer"
Diffstat (limited to 'services/audiopolicy')
-rw-r--r-- | services/audiopolicy/AudioPolicyManager.cpp | 12 | ||||
-rw-r--r-- | services/audiopolicy/AudioPolicyManager.h | 2 |
2 files changed, 1 insertions, 13 deletions
diff --git a/services/audiopolicy/AudioPolicyManager.cpp b/services/audiopolicy/AudioPolicyManager.cpp index bb34416..c437551 100644 --- a/services/audiopolicy/AudioPolicyManager.cpp +++ b/services/audiopolicy/AudioPolicyManager.cpp @@ -926,10 +926,6 @@ audio_io_handle_t AudioPolicyManager::getOutputForDevice( if ((flags & AUDIO_OUTPUT_FLAG_HW_AV_SYNC) != 0) { flags = (audio_output_flags_t)(flags | AUDIO_OUTPUT_FLAG_DIRECT); } - if (mForceDeepBufferForMedia && (flags & AUDIO_OUTPUT_FLAG_DIRECT) == 0 && - stream == AUDIO_STREAM_MUSIC) { - flags = (audio_output_flags_t)(flags | AUDIO_OUTPUT_FLAG_DEEP_BUFFER); - } sp<IOProfile> profile; @@ -2657,14 +2653,8 @@ AudioPolicyManager::AudioPolicyManager(AudioPolicyClientInterface *clientInterfa mTotalEffectsCpuLoad(0), mTotalEffectsMemory(0), mA2dpSuspended(false), mSpeakerDrcEnabled(false), mNextUniqueId(1), - mAudioPortGeneration(1), - mForceDeepBufferForMedia(false) + mAudioPortGeneration(1) { - char propValue[PROPERTY_VALUE_MAX]; - if (property_get("ro.audio.media_deep_buffer", propValue, "0")) { - mForceDeepBufferForMedia = atoi(propValue); - } - mUidCached = getuid(); mpClientInterface = clientInterface; diff --git a/services/audiopolicy/AudioPolicyManager.h b/services/audiopolicy/AudioPolicyManager.h index 98ac66c..7dbd73f 100644 --- a/services/audiopolicy/AudioPolicyManager.h +++ b/services/audiopolicy/AudioPolicyManager.h @@ -808,8 +808,6 @@ protected: sp<AudioPatch> mCallTxPatch; sp<AudioPatch> mCallRxPatch; - bool mForceDeepBufferForMedia; - #ifdef AUDIO_POLICY_TEST Mutex mLock; Condition mWaitWorkCV; |