summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVidyakumar Athota <vathota@codeaurora.org>2015-04-09 17:45:20 -0700
committerArne Coucheron <arco68@gmail.com>2019-09-28 00:23:56 +0200
commit9dd8d5268095bf6a29344f678c74a5e10513d61b (patch)
tree839a7ef7451a0fac7c34258b0068f07b4435c3f6
parent286c3394606118f5a72f10407a506613d4926cea (diff)
downloadhardware_qcom_audio-9dd8d5268095bf6a29344f678c74a5e10513d61b.tar.gz
hardware_qcom_audio-9dd8d5268095bf6a29344f678c74a5e10513d61b.tar.bz2
hardware_qcom_audio-9dd8d5268095bf6a29344f678c74a5e10513d61b.zip
hal: Ensure mic mute state updated before starting voice call
Currently the mic mute state is not propagated to the DSP if the call is already disconnected. Change-Id: I85cc5c202aea0dc818390b49fe2a3fcd6e62973c
-rw-r--r--hal/voice.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hal/voice.c b/hal/voice.c
index bf3c01c9..249a9c49 100644
--- a/hal/voice.c
+++ b/hal/voice.c
@@ -148,6 +148,8 @@ int voice_start_usecase(struct audio_device *adev, audio_usecase_t usecase_id)
goto error_start_voice;
}
+ voice_set_mic_mute(adev, adev->voice.mic_mute);
+
ALOGV("%s: Opening PCM playback device card_id(%d) device_id(%d)",
__func__, adev->snd_card, pcm_dev_rx_id);
session->pcm_rx = pcm_open(adev->snd_card,