Merge "configs: sdm660: Fix sidetone mute during voice call"
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 6644b48..1b0e1f1 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -3794,7 +3794,10 @@
             pthread_mutex_unlock(&adev->lock);
             in->standby = true;
         }
-        memset(buffer, 0, bytes);
+        if (!audio_extn_cin_attached_usecase(in->usecase)) {
+            bytes_read = bytes;
+            memset(buffer, 0, bytes);
+        }
         in_standby(&in->stream.common);
         ALOGV("%s: read failed status %d- sleeping for buffer duration", __func__, ret);
         usleep((uint64_t)bytes * 1000000 / audio_stream_in_frame_size(stream) /