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
Loading
Please register or sign in to comment