OSDN Git Service

Do not reset Sniff Subrating parameters on SCO link
authorSatish Kodishala <skodisha@codeaurora.org>
Tue, 2 Feb 2016 11:52:15 +0000 (17:22 +0530)
committerAndre Eisenbach <eisenbach@google.com>
Thu, 3 Mar 2016 18:00:51 +0000 (10:00 -0800)
commit43c94c96cbd50b5cd34d970bfeba8e9c88f528ce
tree02e19cf3f9a50f5b7d0ae43d6871be7aa469c422
parente3b557d77a0979ee7bf196490437f33829727929
Do not reset Sniff Subrating parameters on SCO link

Usecase:
1. Pair and connect to BT headset
2. Pair and connect to a watch
3. Pair and connect a LE device
4. Make a call and reset BT on phone
5. Verify devices connect back and SCO is established

Failure:
After BT reset, devices connect and SCO is up. After some time,
SCO and ACL link disconnects due to connection timeout.

Rootcause:
When Headset is connected during active call, HFP is connected
first. Due to active call, SCO is also established. When SCO is
established, we disable sniff subrating(SSR). When A2DP is
connected after SCO connection, it enables SSR. This enabling
of SSR is causing ACL disconnect.

Fix:
When there is new profile connection for the same device which
has SCO, we should not enable SSR. It should be enabled only
when there is no SCO.

Change-Id: I7815dba90851366ecc0523447c2394631c10ede1
bta/dm/bta_dm_pm.c