summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRamjee Singh <ramjee@codeaurora.org>2015-10-13 18:13:04 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2015-12-23 16:34:14 -0800
commitaffe0da38bb71cb28c8efa2544ccb74b94faccf2 (patch)
tree7d5b2932b51375e5ee9c08f3b060323f7310654f
parent3a44f582d97f9583403cde215f3e19a95dab2bec (diff)
downloadandroid_hardware_qcom_audio-affe0da38bb71cb28c8efa2544ccb74b94faccf2.tar.gz
android_hardware_qcom_audio-affe0da38bb71cb28c8efa2544ccb74b94faccf2.tar.bz2
android_hardware_qcom_audio-affe0da38bb71cb28c8efa2544ccb74b94faccf2.zip
policy-hal: Fix for alarm tone heard even after dismissing.
-For stopping the alarm tone played during in call, handleIncallSonification must be called with second parameter i.e. starting as false from setPhoneState when the call is disconnected -isInCall method retuns false,hence handleIncallSonification is not getting called on disconnecting the call Change-Id: Ia6398eb1b0a3cb117a16f9fd4cb3637f5ce17be8
-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);