From 72c864d39af8e57f4c391476fa5fce6dfda4eb42 Mon Sep 17 00:00:00 2001 From: Zhihai Xu Date: Tue, 16 Apr 2013 17:58:43 -0700 Subject: [PATCH] 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 --- stack/btm/btm_acl.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/stack/btm/btm_acl.c b/stack/btm/btm_acl.c index 21307c1..ea1c68e 100644 --- a/stack/btm/btm_acl.c +++ b/stack/btm/btm_acl.c @@ -1336,16 +1336,9 @@ 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 - { - btsnd_hcic_rmt_features_req (handle); - } + /* 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); } -- 2.11.0