qcom/audio/hal: Fix no audio issue after A2DP disconnect

- No audio heard after A2DP headset is disconnected.

- During A2DP disconnect, the audio HAL receives routing
  with device as 0. So the subsequence playback buffers are
  dropped as there is no valid output device.

- Fix this issue by ignoring the routing to device 0.

- Update to use speaker mic for voice communication when
  using speaker as output device.

Bug: 8214360
Bug: 8219514
Bug: 8230266
Change-Id: Ic19e8e512ae3c5e493014a1ba3c17bf0ddf35e36
Signed-off-by: Iliyan Malchev <malchev@google.com>
1 file changed
tree: 40de428f5e3d337e690d3dfde00a97ed9930b807
  1. hal/
  2. legacy/
  3. Android.mk