hal: Modify A2DP output routing post releaseAudioPatch

HAL routes A2DP stream to speaker on releaseAudioPatch
from APM until the stream is put to standby from framework.
APM may releaseAudioPatch for an output where A2DP is
suspended and SCO is active leading to HAL switching all
streams to speaker. Fix this behavior by routing streams
to speaker only if both SCO and A2DP are not active.

Bug: 126848701
Test: repro steps in bug

Change-Id: Ic315b16480fe6d0c81c45716534a42b800e2d9da
2 files changed
tree: 686175dff8c4ace5438aabb93ce1297461caea0c
  1. hal/
  2. legacy/
  3. post_proc/
  4. visualizer/
  5. voice_processing/
  6. Android.mk
  7. OWNERS