Fix issue 3439872: video chat and bluetooth SCO.

Fix several issues in audio HAL when switching to/from bluetooth
SCO path or enabling/disabling EC:
- EC enabling/reconfiguring must be synchronized with audio path and sampling rate changes:
As the EC runs in its own thread and actually reads from the driver, changing
the driver sampling rate before/after the EC sampling rate causes read errors
we do not always gracefully recover from.
- The read buffer size can change from one call to EC process to the next:
previous implementation would crash if the new buffer size was larger than
previous one.
- Added code to speed up input or output stream Mutex acquisition by another
thread while playback and capture is active.

Also reduced the amount of logging in audio HAL.

Change-Id: Id26b572b1208cc9c5799a433691153dc1c6afb89
2 files changed