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
diff --git a/policy_hal/AudioPolicyManager.cpp b/policy_hal/AudioPolicyManager.cpp
index 8d32f66..0508be6 100644
--- a/policy_hal/AudioPolicyManager.cpp
+++ b/policy_hal/AudioPolicyManager.cpp
@@ -596,7 +596,7 @@
     /// 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);