diff options
author | kunleiz <kunleiz@codeaurora.org> | 2014-09-04 18:47:53 +0800 |
---|---|---|
committer | Arne Coucheron <arco68@gmail.com> | 2017-02-26 06:10:36 +0100 |
commit | 727d95e39bae740075aac5ab3ceab9f11c82bf17 (patch) | |
tree | 451cb739e99817b28063a3528a30582adb464c37 | |
parent | 51d45fad25a0f63ab6102b06d230cafc23e0b2a5 (diff) | |
download | hardware_qcom_audio-727d95e39bae740075aac5ab3ceab9f11c82bf17.tar.gz hardware_qcom_audio-727d95e39bae740075aac5ab3ceab9f11c82bf17.tar.bz2 hardware_qcom_audio-727d95e39bae740075aac5ab3ceab9f11c82bf17.zip |
hal: Update active input stream for Voip when voip input started
When voip input started, active input stream is not updated.
Therefore, as active input stream is NULL no tx device switch
occurs for a voip call with primary output.
Fixed this by updating active input stream for voip when
voip input started.
Change-Id: I058bfaa0091eea4a0259224de17be32f271dbdc9
CRs-Fixed: 710923
-rw-r--r-- | hal/voice_extn/compress_voip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hal/voice_extn/compress_voip.c b/hal/voice_extn/compress_voip.c index 3663c9f7..63fc19d8 100644 --- a/hal/voice_extn/compress_voip.c +++ b/hal/voice_extn/compress_voip.c @@ -536,6 +536,7 @@ int voice_extn_compress_voip_start_input_stream(struct stream_in *in) if (!voip_data.in_stream_count) ret = voice_extn_compress_voip_open_input_stream(in); + adev->active_input = in; ret = voip_start_call(adev, &in->config); in->pcm = voip_data.pcm_tx; @@ -594,6 +595,7 @@ int voice_extn_compress_voip_close_input_stream(struct audio_stream *stream) ALOGD("%s: enter", __func__); if(voip_data.in_stream_count > 0) { + adev->active_input = NULL; voip_data.in_stream_count--; status = voip_stop_call(adev); in->pcm = NULL; |