Android 10.0.0 Release 47 (6780337)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCX3uvvAAKCRDorT+BmrEO
eOvIAJ9J1tb7fpLuPIVWFIdIJDXxGcMlQQCfXtKOYhs1GPH/++iMdWGYjd5tXqU=
=lH+y
-----END PGP SIGNATURE-----
AudioFlinger: fix fast capture silence

Silencing fast catpure tracks was not properly implemented.
Fix by zeroing fast capture thread HAL read buffer if the silenced
track is the only active, or by invalidating the silenced track
if other non fast tracks are active.

Bug: 157708122
Test: repro steps in the bug
Change-Id: I88b19540815bc1491b9e76c1ae6b6f85e32afa8f
Merged-In: I88b19540815bc1491b9e76c1ae6b6f85e32afa8f
(cherry picked from commit 33403f0ef8ec7e6217f4969879fa81101e6b84ee)
(cherry picked from commit 377d9bd34da3ef852b59148d4cc94572bc48a0f9)
5 files changed