Merge "hal: Fix closure of hardware dependent node" into av-userspace.lnx.1.0-dev.1.0
diff --git a/hal/voice_extn/voice_extn.c b/hal/voice_extn/voice_extn.c
index 1717cba..f36a7a6 100644
--- a/hal/voice_extn/voice_extn.c
+++ b/hal/voice_extn/voice_extn.c
@@ -430,15 +430,12 @@
* set routing with device BT A2DP profile. Hence end all voice calls when
* set_mode(AUDIO_MODE_NORMAL) before BT A2DP profile is selected.
*/
- if (adev->mode == AUDIO_MODE_NORMAL) {
- ALOGD("%s: end all calls", __func__);
- for (i = 0; i < MAX_VOICE_SESSIONS; i++) {
- adev->voice.session[i].state.new = CALL_INACTIVE;
- }
-
- ret = update_calls(adev);
+ ALOGD("%s: end all calls", __func__);
+ for (i = 0; i < MAX_VOICE_SESSIONS; i++) {
+ adev->voice.session[i].state.new = CALL_INACTIVE;
}
+ ret = update_calls(adev);
return ret;
}