pal: check for totalActiveSessionRequests for force switch
-In case of quick BT SHO, if BT1 disconnects and BT2
gets connected but music stream didn't tear down from
BT1. In this scenario explicit routing request for
music stream from APM to the new BT2 will be ignored
at SwitchDevice() since PAL device id and custom
params are the same.Thus check for
totalActiveSessionRequests to allow force BT switch.
-If audio_source_open() is failed during BT connection
time then skip to call audio_stream_start() as current
session may not be active in case of quick BT SHO.
Change-Id: Ia5bfaa52e9b8dca4d27f2cdf004a7a76a784be56
(cherry picked from commit ff9046beb3033ac4b281757e7573b5dc5e0e8937)
1 file changed