diff options
| author | Franco <frapeti@gmail.com> | 2015-02-20 21:27:37 -0300 |
|---|---|---|
| committer | Sergiu Cozma <lssjbrolli@gmail.com> | 2015-03-28 12:00:13 +0200 |
| commit | fe8257cebaa57dc68e811ccba83ea16cf08f82ec (patch) | |
| tree | a6fcb3fa65555dd8e2c27ef1f0b9b43d1d5f8c31 | |
| parent | 1ceca122f237395a757d2e2c7f01329bb5d97969 (diff) | |
audio: fix noise suppresion while voice recognition is active on calls
Change-Id: I1d127d7c835c08489213497c275a29afcea32d3e
| -rw-r--r-- | audio/audio_hw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c index 2450542..58668e5 100644 --- a/audio/audio_hw.c +++ b/audio/audio_hw.c @@ -366,7 +366,8 @@ static void select_devices(struct audio_device *adev) } // disable noise suppression when capturing front and back mic for voice recognition if ((adev->input_source == AUDIO_SOURCE_VOICE_RECOGNITION) && - (adev->in_channel_mask == AUDIO_CHANNEL_IN_FRONT_BACK)) + (adev->in_channel_mask == AUDIO_CHANNEL_IN_FRONT_BACK) && + !adev->in_call) new_es325_preset = -1; } else { if (output_device_id != OUT_DEVICE_NONE) { |
