summaryrefslogtreecommitdiffstats
path: root/policy_hal/AudioPolicyManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'policy_hal/AudioPolicyManager.cpp')
-rw-r--r--policy_hal/AudioPolicyManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/policy_hal/AudioPolicyManager.cpp b/policy_hal/AudioPolicyManager.cpp
index b005bfce..829982c7 100644
--- a/policy_hal/AudioPolicyManager.cpp
+++ b/policy_hal/AudioPolicyManager.cpp
@@ -641,7 +641,7 @@ void AudioPolicyManagerCustom::setPhoneState(audio_mode_t state)
/// Opens: can these line be executed after the switch of volume curves???
// if leaving call state, handle special case of active streams
// pertaining to sonification strategy see handleIncallSonification()
- if (isInCall()) {
+ if (isStateInCall(oldState)) {
ALOGV("setPhoneState() in call state management: new state is %d", state);
for (size_t j = 0; j < mOutputs.size(); j++) {
audio_io_handle_t curOutput = mOutputs.keyAt(j);