Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 395b1e28 authored by Zhihai Xu's avatar Zhihai Xu
Browse files

Audio glitches while playing songs over MOTO S305 headset

The MOTO S305 doesn't support read remote extended features command.
The fix is we should always use ReadRemoteSupportedFeaturesCommand at first,
Only send ReadRemoteExtendedFeaturesCommand if extend features are supported
by remote device.

issue 8618753

Change-Id: Id6d9c0e712dc892bcfca20336d1290b9443213ac
parent 726e8244
Loading
Loading
Loading
Loading
+3 −10
Original line number Diff line number Diff line
@@ -1336,17 +1336,10 @@ void btm_read_remote_features (UINT16 handle)
    p_acl_cb->num_read_pages = 0;
    memset (p_acl_cb->peer_lmp_features, 0, sizeof(p_acl_cb->peer_lmp_features));

    /* If this BT controller supports Read Extended Feature */
    if (btm_cb.devcb.local_version.hci_version >= HCI_PROTO_VERSION_2_0)
    {
        btm_read_remote_ext_features(handle, HCI_EXT_FEATURES_PAGE_0);
    }
    /* else, if this is a very old BT controller */
    else
    {
    /* first send read remote supported features HCI command */
    /* because we don't know whether the remote support extended feature command */
    btsnd_hcic_rmt_features_req (handle);
}
}


/*******************************************************************************