Previously, we would only end the voice call once the next output
stream happened (and parameters would be set).
Change-Id: Id0d2711605e57ad69d9b26b36afb562444349358
(cherry picked from commit
5169e86c10b7429b01d6ab0500a0509141dcbfe1)
}
}
- if ((adev->mode == AUDIO_MODE_NORMAL) && adev->voice.in_call &&
- (out == adev->primary_output)) {
- stop_voice_call(adev);
- }
pthread_mutex_unlock(&adev->lock);
pthread_mutex_unlock(&out->lock);
#ifdef PREPROCESSING_ENABLED
ALOGE("Failed setting amplifier mode");
}
adev->mode = mode;
+
+ if ((mode == AUDIO_MODE_NORMAL) && adev->voice.in_call) {
+ stop_voice_call(adev);
+ }
}
pthread_mutex_unlock(&adev->lock);
return 0;