hal: In-call recording and In-call music support on APQ targets

-In-call recording feature support is added in APQ.
-In-call music delivery support is added in APQ.

Change-Id: Id473eac87da33f1f566b6910ec1feadcd3f08317
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index df040e2..a35fc43 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -734,6 +734,9 @@
         return -EINVAL;
     }
 
+    /* Close in-call recording streams */
+    voice_check_and_stop_incall_rec_usecase(adev, in);
+
     /* 1. Disable stream specific mixer controls */
     disable_audio_route(adev, uc_info, true);
 
@@ -2323,6 +2326,7 @@
     int ret;
 
     pthread_mutex_lock(&adev->lock);
+    ALOGD("%s state %d\n", __func__, state);
     ret = voice_set_mic_mute((struct audio_device *)dev, state);
     pthread_mutex_unlock(&adev->lock);