diff options
author | Ravi Kumar Alamanda <ralama@codeaurora.org> | 2014-09-05 13:51:35 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2014-10-17 09:57:20 -0700 |
commit | 060bc5a327aece6b6bc5eef214e507d0c8075d85 (patch) | |
tree | 2f2506edfaeb89b88c31ddc6a6fb69eeb269230e /hal/voice_extn | |
parent | dc9bb157cfc67e42e534da9f873beeb4673e1b36 (diff) | |
download | hardware_qcom_audio-060bc5a327aece6b6bc5eef214e507d0c8075d85.tar.gz hardware_qcom_audio-060bc5a327aece6b6bc5eef214e507d0c8075d85.tar.bz2 hardware_qcom_audio-060bc5a327aece6b6bc5eef214e507d0c8075d85.zip |
hal: add support to send/receive voice call TX/RX audio
Add support for routing voice calls to devices in other audio
HALs by allowing playback and capture to/from AFE proxy
Change-Id: I2c6a1ddec072e1d5f1a8b7ded874e9c082a7b810
Diffstat (limited to 'hal/voice_extn')
-rw-r--r-- | hal/voice_extn/voice_extn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hal/voice_extn/voice_extn.c b/hal/voice_extn/voice_extn.c index 8952522c..e5b979f5 100644 --- a/hal/voice_extn/voice_extn.c +++ b/hal/voice_extn/voice_extn.c @@ -299,7 +299,8 @@ static int update_call_states(struct audio_device *adev, * occured, otherwise voice calls will be started unintendedly on * speaker. */ - if (is_call_active || adev->voice.in_call) { + if (is_call_active || + (adev->voice.in_call && adev->mode == AUDIO_MODE_IN_CALL)) { /* Device routing is not triggered for voice calls on the subsequent * subs, Hence update the call states if voice call is already * active on other sub. |