Loading system/bta/dm/bta_dm_pm.c +7 −1 Original line number Diff line number Diff line Loading @@ -345,6 +345,7 @@ static void bta_dm_pm_cback(tBTA_SYS_CONN_STATUS status, UINT8 id, UINT8 app_id, UINT8 i,j; UINT8 *p = NULL; tBTA_DM_PEER_DEVICE *p_dev; tBTA_DM_PM_REQ pm_req = BTA_DM_PM_NEW_REQ; #if (BTM_SSR_INCLUDED == TRUE) int index = BTA_DM_PM_SSR0; Loading Loading @@ -450,6 +451,11 @@ static void bta_dm_pm_cback(tBTA_SYS_CONN_STATUS status, UINT8 id, UINT8 app_id, /* stop timer */ bta_dm_pm_stop_timer(peer_addr); if (bta_dm_conn_srvcs.count > 0) { pm_req = BTA_DM_PM_RESTART; APPL_TRACE_DEBUG("%s bta_dm_pm_stop_timer for current service, restart other " "service timers: count = %d", __func__, bta_dm_conn_srvcs.count); } if(p_dev) { Loading Loading @@ -486,7 +492,7 @@ static void bta_dm_pm_cback(tBTA_SYS_CONN_STATUS status, UINT8 id, UINT8 app_id, } #endif bta_dm_pm_set_mode(peer_addr, BTA_DM_PM_NO_ACTION, BTA_DM_PM_NEW_REQ); bta_dm_pm_set_mode(peer_addr, BTA_DM_PM_NO_ACTION, pm_req); /* perform the HID link workaround if needed ** 1. If SCO up/down event is received OR Loading Loading
system/bta/dm/bta_dm_pm.c +7 −1 Original line number Diff line number Diff line Loading @@ -345,6 +345,7 @@ static void bta_dm_pm_cback(tBTA_SYS_CONN_STATUS status, UINT8 id, UINT8 app_id, UINT8 i,j; UINT8 *p = NULL; tBTA_DM_PEER_DEVICE *p_dev; tBTA_DM_PM_REQ pm_req = BTA_DM_PM_NEW_REQ; #if (BTM_SSR_INCLUDED == TRUE) int index = BTA_DM_PM_SSR0; Loading Loading @@ -450,6 +451,11 @@ static void bta_dm_pm_cback(tBTA_SYS_CONN_STATUS status, UINT8 id, UINT8 app_id, /* stop timer */ bta_dm_pm_stop_timer(peer_addr); if (bta_dm_conn_srvcs.count > 0) { pm_req = BTA_DM_PM_RESTART; APPL_TRACE_DEBUG("%s bta_dm_pm_stop_timer for current service, restart other " "service timers: count = %d", __func__, bta_dm_conn_srvcs.count); } if(p_dev) { Loading Loading @@ -486,7 +492,7 @@ static void bta_dm_pm_cback(tBTA_SYS_CONN_STATUS status, UINT8 id, UINT8 app_id, } #endif bta_dm_pm_set_mode(peer_addr, BTA_DM_PM_NO_ACTION, BTA_DM_PM_NEW_REQ); bta_dm_pm_set_mode(peer_addr, BTA_DM_PM_NO_ACTION, pm_req); /* perform the HID link workaround if needed ** 1. If SCO up/down event is received OR Loading