summaryrefslogtreecommitdiffstats
path: root/include/hardware_legacy/AudioPolicyManagerBase.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2010-12-01 12:15:23 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2010-12-01 12:15:23 -0800
commitf9e188482f164ea7602ecdea4b796fa50542e597 (patch)
tree3b949181d37df2da000ce79445b4d37da43dfc32 /include/hardware_legacy/AudioPolicyManagerBase.h
parent3e480fa067136253ae05faaba77f814f42cd56f0 (diff)
parent3cb64cb8bbda335affcb3c71fce3c4f908a97111 (diff)
downloadhardware_libhardware_legacy-f9e188482f164ea7602ecdea4b796fa50542e597.tar.gz
hardware_libhardware_legacy-f9e188482f164ea7602ecdea4b796fa50542e597.tar.bz2
hardware_libhardware_legacy-f9e188482f164ea7602ecdea4b796fa50542e597.zip
am 3cb64cb8: am 2f2db765: Fix issue 3142808.
* commit '3cb64cb8bbda335affcb3c71fce3c4f908a97111': Fix issue 3142808.
Diffstat (limited to 'include/hardware_legacy/AudioPolicyManagerBase.h')
-rw-r--r--include/hardware_legacy/AudioPolicyManagerBase.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/hardware_legacy/AudioPolicyManagerBase.h b/include/hardware_legacy/AudioPolicyManagerBase.h
index 99be68f..28b3b07 100644
--- a/include/hardware_legacy/AudioPolicyManagerBase.h
+++ b/include/hardware_legacy/AudioPolicyManagerBase.h
@@ -256,7 +256,8 @@ protected:
void checkOutputForStrategy(routing_strategy strategy);
// Same as checkOutputForStrategy() but for a all strategies in order of priority
void checkOutputForAllStrategies();
-
+ // manages A2DP output suspend/restore according to phone state and BT SCO usage
+ void checkA2dpSuspend();
#endif
// selects the most appropriate device on output for current state
// must be called every time a condition that affects the device choice for a given output is
@@ -314,6 +315,7 @@ protected:
uint32_t mTotalEffectsCpuLoad; // current CPU load used by effects
uint32_t mTotalEffectsMemory; // current memory used by effects
KeyedVector<int, EffectDescriptor *> mEffects; // list of registered audio effects
+ bool mA2dpSuspended; // true if A2DP output is suspended
#ifdef AUDIO_POLICY_TEST
Mutex mLock;