OSDN Git Service

HF Client: SCO routing with multiple devices
authorSanket Agarwal <sanketa@google.com>
Tue, 31 Jan 2017 21:43:58 +0000 (13:43 -0800)
committerSanket Agarwal <sanketa@google.com>
Tue, 7 Feb 2017 02:56:19 +0000 (02:56 +0000)
commitac109dc2256b90c5704bed20e4d15f2400502eaa
tree4174953c3b48dd6a753152b0bb19e9c3ef30e249
parent1e73f14e77c155d6912ef28e899f372298e9baab
HF Client: SCO routing with multiple devices

For SCO it makes sense only to have one active connection at a time for
any device since simultaneous SCO calls in a single device is
un-reasonable. This change changes the SCO state machine in following
ways:
a) SCO is not setup automatically whenever AG wants, the client for this
BTA layer will have to call connect_audio to start SCO
b) Also when we disconnect SCO for a device, it does not go into a
listen state. We are making sure that the upper layer caller always has
to call connect to accept a connection

Bug: b/34518638
Test: Manual testing w/ multiple active calls and SCO switching

Change-Id: I6e6c4c6e6ee19e44e3ff14499fb99083102bde5a
bta/hf_client/bta_hf_client_at.cc
bta/hf_client/bta_hf_client_main.cc
bta/hf_client/bta_hf_client_sco.cc
btif/src/btif_a2dp_sink.cc