Loading system/stack/btm/btm_sco.cc +0 −10 Original line number Diff line number Diff line Loading @@ -108,7 +108,6 @@ static void btm_sco_flush_sco_data(UNUSED_ATTR uint16_t sco_inx) {} ******************************************************************************/ void btm_sco_init(void) { /* Initialize nonzero defaults */ btm_cb.sco_cb.sco_disc_reason = BTM_INVALID_SCO_DISC_REASON; btm_cb.sco_cb.def_esco_parms = esco_parameters_for_codec(ESCO_CODEC_CVSD); btm_cb.sco_cb.def_esco_parms.max_latency_ms = 12; btm_cb.sco_cb.sco_route = ESCO_DATA_PATH_PCM; Loading Loading @@ -691,13 +690,6 @@ void btm_sco_connected(uint8_t hci_status, const RawAddress* bda, bool spt = false; tBTM_CHG_ESCO_PARAMS parms = {}; btm_cb.sco_cb.sco_disc_reason = hci_status; if (bda == nullptr) { LOG_ERROR("Received null pointer for remote address"); return; } for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { if (((p->state == SCO_ST_CONNECTING) || (p->state == SCO_ST_LISTENING) || (p->state == SCO_ST_W4_CONN_RSP)) && Loading Loading @@ -858,7 +850,6 @@ bool btm_sco_removed(uint16_t hci_handle, tHCI_REASON reason) { p->hci_handle = HCI_INVALID_HANDLE; p->rem_bd_known = false; p->esco.p_esco_cback = NULL; /* Deregister eSCO callback */ btm_cb.sco_cb.sco_disc_reason = reason; (*p->p_disc_cb)(xx); LOG_DEBUG("Disconnected SCO link handle:%hu reason:%s", hci_handle, hci_reason_code_text(reason).c_str()); Loading Loading @@ -891,7 +882,6 @@ void btm_sco_on_disconnected(uint16_t hci_handle, tHCI_REASON reason) { p_sco->hci_handle = HCI_INVALID_HANDLE; p_sco->rem_bd_known = false; p_sco->esco.p_esco_cback = NULL; /* Deregister eSCO callback */ btm_cb.sco_cb.sco_disc_reason = reason; (*p_sco->p_disc_cb)(btm_cb.sco_cb.get_index(p_sco)); LOG_DEBUG("Disconnected SCO link handle:%hu reason:%s", hci_handle, hci_reason_code_text(reason).c_str()); Loading system/stack/btm/btm_sco.h +0 −2 Original line number Diff line number Diff line Loading @@ -95,7 +95,6 @@ typedef struct { tBTM_SCO_IND_CBACK* app_sco_ind_cb; tSCO_CONN sco_db[BTM_MAX_SCO_LINKS]; enh_esco_params_t def_esco_parms; uint16_t sco_disc_reason; bool esco_supported; /* true if 1.2 cntlr AND supports eSCO links */ esco_data_path_t sco_route; /* HCI, PCM, or TEST */ Loading @@ -114,7 +113,6 @@ typedef struct { } void Init() { sco_disc_reason = BTM_INVALID_SCO_DISC_REASON; def_esco_parms = esco_parameters_for_codec(ESCO_CODEC_CVSD); def_esco_parms.max_latency_ms = 12; sco_route = ESCO_DATA_PATH_PCM; Loading Loading
system/stack/btm/btm_sco.cc +0 −10 Original line number Diff line number Diff line Loading @@ -108,7 +108,6 @@ static void btm_sco_flush_sco_data(UNUSED_ATTR uint16_t sco_inx) {} ******************************************************************************/ void btm_sco_init(void) { /* Initialize nonzero defaults */ btm_cb.sco_cb.sco_disc_reason = BTM_INVALID_SCO_DISC_REASON; btm_cb.sco_cb.def_esco_parms = esco_parameters_for_codec(ESCO_CODEC_CVSD); btm_cb.sco_cb.def_esco_parms.max_latency_ms = 12; btm_cb.sco_cb.sco_route = ESCO_DATA_PATH_PCM; Loading Loading @@ -691,13 +690,6 @@ void btm_sco_connected(uint8_t hci_status, const RawAddress* bda, bool spt = false; tBTM_CHG_ESCO_PARAMS parms = {}; btm_cb.sco_cb.sco_disc_reason = hci_status; if (bda == nullptr) { LOG_ERROR("Received null pointer for remote address"); return; } for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { if (((p->state == SCO_ST_CONNECTING) || (p->state == SCO_ST_LISTENING) || (p->state == SCO_ST_W4_CONN_RSP)) && Loading Loading @@ -858,7 +850,6 @@ bool btm_sco_removed(uint16_t hci_handle, tHCI_REASON reason) { p->hci_handle = HCI_INVALID_HANDLE; p->rem_bd_known = false; p->esco.p_esco_cback = NULL; /* Deregister eSCO callback */ btm_cb.sco_cb.sco_disc_reason = reason; (*p->p_disc_cb)(xx); LOG_DEBUG("Disconnected SCO link handle:%hu reason:%s", hci_handle, hci_reason_code_text(reason).c_str()); Loading Loading @@ -891,7 +882,6 @@ void btm_sco_on_disconnected(uint16_t hci_handle, tHCI_REASON reason) { p_sco->hci_handle = HCI_INVALID_HANDLE; p_sco->rem_bd_known = false; p_sco->esco.p_esco_cback = NULL; /* Deregister eSCO callback */ btm_cb.sco_cb.sco_disc_reason = reason; (*p_sco->p_disc_cb)(btm_cb.sco_cb.get_index(p_sco)); LOG_DEBUG("Disconnected SCO link handle:%hu reason:%s", hci_handle, hci_reason_code_text(reason).c_str()); Loading
system/stack/btm/btm_sco.h +0 −2 Original line number Diff line number Diff line Loading @@ -95,7 +95,6 @@ typedef struct { tBTM_SCO_IND_CBACK* app_sco_ind_cb; tSCO_CONN sco_db[BTM_MAX_SCO_LINKS]; enh_esco_params_t def_esco_parms; uint16_t sco_disc_reason; bool esco_supported; /* true if 1.2 cntlr AND supports eSCO links */ esco_data_path_t sco_route; /* HCI, PCM, or TEST */ Loading @@ -114,7 +113,6 @@ typedef struct { } void Init() { sco_disc_reason = BTM_INVALID_SCO_DISC_REASON; def_esco_parms = esco_parameters_for_codec(ESCO_CODEC_CVSD); def_esco_parms.max_latency_ms = 12; sco_route = ESCO_DATA_PATH_PCM; Loading