Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 99dbdc22 authored by Pavan Chikkala's avatar Pavan Chikkala Committed by Yamit Mehta
Browse files

audio: Fix for audio loss in FM and VR/A2DP concurrency

- Issue: VoiceRecgonition notification sound is
  not heard and there is audio loss in A2DP
  playback in VR/A2DP concurrency test cases.
  FM is not routing to BT when switched from
  Speaker.
- Rootcause: wrong device and usecase are used
  in AudioHardwareALSA::doRouting, the last item
  of mDeviceList is used blindly which contains
  wrong device/usecase.Audio HAL is overriding
  the active usecase based on the current output
  stream's usecase. But for FM an output stream
  won't be created. Hence Playback on BT is not
  started by audio HAL due to usecase mismatch.

- Fix: Add usecase as another input param in
  doRouting, and find matching device/usecase
  in mDeviceList before routing. Add check to
  avoid using output stream's usecase if FM is
  active.

Change-Id: Ic96373acba0ca94643f30040b5d9bf8cb87300c7
CRs-Fixed: 534424
CRs-Fixed: 532122
parent 0a5ca636
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment