Merge "hal: Fix for no audio recorded during voice downlink record with mic muted"

This commit is contained in:
Linux Build Service Account 2013-11-05 10:28:31 -08:00 committed by Gerrit - the friendly Code Review server
commit 7cc901bee3
1 changed files with 1 additions and 1 deletions

View File

@ -1779,7 +1779,7 @@ static ssize_t in_read(struct audio_stream_in *stream, void *buffer,
* Instead of writing zeroes here, we could trust the hardware
* to always provide zeroes when muted.
*/
if (ret == 0 && voice_get_mic_mute(adev))
if (ret == 0 && voice_get_mic_mute(adev) && !voice_is_in_call(adev))
memset(buffer, 0, bytes);
exit: