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

Commit 75a6b08e authored by Hsin-yu Chao's avatar Hsin-yu Chao
Browse files

capengine: Use sco for media

If preferred or selected output for given strategy is of type A2DP
or BLE and the preferred type for communication strategy is set to
SCO, then override the output by SCO.

The background is, when SCO is activated(i.e BT mic in use) the
output of Bluetooth needs to be SCO as well. However media streaming
apps don't have this info, audio policy engine is the best place to
do the re-routing.

Note that the same logic has already been implemented in default
engine behind the use_bt_sco_for_media feature flag.

Bug: 436398891
Test: Visit sound settings and select both audio input and output
to BT headset. Launch YouTube to stream audio, then join Meet call
via Chrome from another window. Verify YouTube is still streaming
to BT headst.
Flag: com.android.media.audioserver.cap_engine_preferred_device_improvement

Change-Id: I84507ac10d0b913557ec0f362151fa3d52e0a3ef
parent 508e1020
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