mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-26 13:44:23 +08:00
android/handsfree: Fix not needed codec negotiation
If codec was already negotiated there is no need to do it again and AG
may try connecting SCO right away. This fix regression from f264a65170
.
This commit is contained in:
parent
72b36c7854
commit
5ab9740fbc
@ -1650,8 +1650,9 @@ static bool disconnect_sco(void)
|
||||
|
||||
static bool connect_audio(void)
|
||||
{
|
||||
if (device.features & HFP_HF_FEAT_CODEC) {
|
||||
select_codec(device.negotiated_codec);
|
||||
/* we haven't negotiated codec, start selection */
|
||||
if ((device.features & HFP_HF_FEAT_CODEC) && !device.negotiated_codec) {
|
||||
select_codec(0);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user