From 6ca361fd2b829bb80f19a43856540d2984850b22 Mon Sep 17 00:00:00 2001 From: baohongde Date: Tue, 18 Feb 2020 17:39:26 +0800 Subject: [PATCH] components/coex: Fix a2dp stuck after creating anther connection --- components/bt/host/bluedroid/bta/dm/bta_dm_act.c | 2 -- components/bt/host/bluedroid/bta/dm/bta_dm_main.c | 6 ------ 2 files changed, 8 deletions(-) diff --git a/components/bt/host/bluedroid/bta/dm/bta_dm_act.c b/components/bt/host/bluedroid/bta/dm/bta_dm_act.c index 9294f7720a..c597b23cea 100644 --- a/components/bt/host/bluedroid/bta/dm/bta_dm_act.c +++ b/components/bt/host/bluedroid/bta/dm/bta_dm_act.c @@ -3290,7 +3290,6 @@ static void bta_dm_bl_change_cback (tBTM_BL_EVENT_DATA *p_data) p_msg->transport = p_data->conn.transport; p_msg->handle = p_data->conn.handle; #endif - BTA_DmCoexEventTrigger(BTA_COEX_EVT_ACL_CONNECTED); break; case BTM_BL_DISCN_EVT: bdcpy(p_msg->bd_addr, p_data->discn.p_bda); @@ -3298,7 +3297,6 @@ static void bta_dm_bl_change_cback (tBTM_BL_EVENT_DATA *p_data) p_msg->transport = p_data->discn.transport; p_msg->handle = p_data->discn.handle; #endif - BTA_DmCoexEventTrigger(BTA_COEX_EVT_ACL_DISCONNECTED); break; case BTM_BL_UPDATE_EVT: p_msg->busy_level = p_data->update.busy_level; diff --git a/components/bt/host/bluedroid/bta/dm/bta_dm_main.c b/components/bt/host/bluedroid/bta/dm/bta_dm_main.c index 2107c5be0b..a234f31148 100644 --- a/components/bt/host/bluedroid/bta/dm/bta_dm_main.c +++ b/components/bt/host/bluedroid/bta/dm/bta_dm_main.c @@ -417,14 +417,8 @@ void BTA_DmCoexEventTrigger(uint32_t event) case BTA_COEX_EVT_SNIFF_EXIT: case BTA_COEX_EVT_A2DP_PAUSED_ENTER: case BTA_COEX_EVT_A2DP_PAUSED_EXIT: - break; case BTA_COEX_EVT_ACL_CONNECTED: - esp_coex_status_bit_clear(ESP_COEX_ST_TYPE_BT, ESP_COEX_BT_ST_A2DP_STREAMING); - esp_coex_status_bit_clear(ESP_COEX_ST_TYPE_BT, ESP_COEX_BT_ST_A2DP_PAUSED); - break; case BTA_COEX_EVT_ACL_DISCONNECTED: - esp_coex_status_bit_clear(ESP_COEX_ST_TYPE_BT, ESP_COEX_BT_ST_A2DP_STREAMING); - esp_coex_status_bit_clear(ESP_COEX_ST_TYPE_BT, ESP_COEX_BT_ST_A2DP_PAUSED); break; case BTA_COEX_EVT_STREAMING_STARTED: esp_coex_status_bit_set(ESP_COEX_ST_TYPE_BT, ESP_COEX_BT_ST_A2DP_STREAMING);