summaryrefslogtreecommitdiffstats
path: root/hal/voice_extn
diff options
context:
space:
mode:
authorkunleiz <kunleiz@codeaurora.org>2014-09-04 18:47:53 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2014-09-16 23:24:29 -0700
commitf266f48890049fc48b837b7913b2c9000000a023 (patch)
treea05eadea5dae923e705da7d74f9422e820633d63 /hal/voice_extn
parent29fee9c9a0775b8f7e6d903689f2104c6a103970 (diff)
downloadhardware_qcom_audio-f266f48890049fc48b837b7913b2c9000000a023.tar.gz
hardware_qcom_audio-f266f48890049fc48b837b7913b2c9000000a023.tar.bz2
hardware_qcom_audio-f266f48890049fc48b837b7913b2c9000000a023.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
Diffstat (limited to 'hal/voice_extn')
-rw-r--r--hal/voice_extn/compress_voip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hal/voice_extn/compress_voip.c b/hal/voice_extn/compress_voip.c
index 46aab7d1..224861e8 100644
--- a/hal/voice_extn/compress_voip.c
+++ b/hal/voice_extn/compress_voip.c
@@ -612,6 +612,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;
@@ -670,6 +671,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;