OSDN Git Service

HFP: Don't use mSBC for HF devices not supporting Codec Negotiation
authorweichinweng <weichinweng@google.com>
Thu, 21 Jun 2018 06:28:25 +0000 (14:28 +0800)
committerweichinweng <weichinweng@google.com>
Thu, 21 Jun 2018 10:20:29 +0000 (18:20 +0800)
commite4b9dead3c6be05f111fb710f9e4d7c436b65ed4
treeba0817c09ae5c4ae524a295486b972cc679e1d04
parent9c8006666966606832102c5db9b060c57e14b1a6
HFP: Don't use mSBC for HF devices not supporting Codec Negotiation

* Some misbehaving HF devices (e.g. Sony XAV AX100 carkit, Sony MW600)
  indicate their support on WBS but not support on Codec Negotiation.
  In this condition, if Fluoride chooses mSBC will result in big noise or SCO
  no sound.
* This CL adds a workaround for checking if HF device indicate codec negotiation is
  not supported, Fluoride will assume CVSD codec by default.

Bug: 101592600
Test: make, connect SCO and check voice on carkit and headset.
Change-Id: If0d8779bcfd55b87852f56f0448fd1b585ee45ad
bta/ag/bta_ag_sco.cc