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

Commit fbd94388 authored by Pranav Madapurmath's avatar Pranav Madapurmath Committed by Android Build Coastguard Worker
Browse files

Resolve multiple BT device routing issues

This CL mainly resolves an issue found where routing needs to be updated
to inactive when we connect a second BT device during ringing and as a
result, in-band ringing is disabled. This was causing audio routing to
continually jump between both BT devices and the requests were failing.

The second is to ensure that we only send BT_AUDIO_CONNECTED if the
device that connected is SCO audio connected and to also ensure that we
refrain from disconnecting SCO where we are routing between the same BT
device types and the destination route is already connected to SCO. The
disconnect is done to clean up the original route but this will
inadvertently disconnect SCO for the destination route device if BT
stack has already reported that the device is connected to SCO.

Bug: 405071163
Flag: EXEMPT bugfix
Test: Manual test to connect second HFP device while incoming call is
ringing and answering call to verify that call audio is properly routed
to the active BT device.
Test: atest CallAudioRouteController
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:28296d0857f73fb02911dc2a9aad2510e8adf157)
Merged-In: If95b44ffcfee3076528a9336838ecaa61e66a694
Change-Id: If95b44ffcfee3076528a9336838ecaa61e66a694
parent 0d52bcf6
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