OSDN Git Service

Do SDP when HSP connection starts by remote
authorSatish Kodishala <skodisha@codeaurora.org>
Thu, 11 Aug 2016 04:51:48 +0000 (10:21 +0530)
committerMyles Watson <mylesgw@google.com>
Mon, 22 Jan 2018 15:19:34 +0000 (15:19 +0000)
commitade654f3dc3b8ff825d3b2158739de2e3d885b90
tree3d5d5b00f22b2074da0eaca0fe68747eea6234d6
parent26d45dc680f20b75fe04202c99a851eaf3832f2f
Do SDP when HSP connection starts by remote

Test: 1. Enable only HSP profile on AG.
2. Connect to AG from BT headset supporting HSP profile only with VGS
3. VOIP call (eg. skype, hangout)
4. Control the volume using AG volume keys.

Failure:
Volume changes are not taking affect.

Rootcause:
When remote is doing SDP first, HSP AG is skipping SDP.
As a result, AG is not aware if remote supports remote
volume control feature.

Fix:
Don't skip SDP when remote does SDP first. Do SDP always
so that AG could find out if remote supports remote volume
control feature.

Fixes: 35657384

Change-Id: I73707f774dc4ec53cbd510ded15f28f87659eec3
bta/ag/bta_ag_sdp.cc