Lines Matching refs:esco
126 ** the request. Parameters used to negotiate eSCO links.
176 p_setup = &p_sco->esco.setup;
189 /* Make sure at least one eSCO packet type is sent, else might confuse peer */
192 ** do not retry with SCO only if an eSCO connection fails.
198 /* If SCO request, remove eSCO packet types (conformance) */
199 if (p_sco->esco.data.link_type == BTM_LINK_TYPE_SCO)
424 /* Finally, remove EDR eSCO if the remote device doesn't support it */
433 BTM_TRACE_WARNING0("BTM Remote does not support 2-EDR eSCO");
440 BTM_TRACE_WARNING0("BTM Remote does not support 3-EDR eSCO");
509 p_sco->esco.data.link_type = BTM_LINK_TYPE_ESCO; /* Accept with all supported types */
513 btm_esco_conn_rsp(sco_inx, HCI_SUCCESS, p_sco->esco.data.bd_addr, p_setup);
531 btm_cb.sco_cb.sco_db[sco_inx].esco.data.bd_addr, NULL);
589 && (!memcmp (p->esco.data.bd_addr, remote_bda, BD_ADDR_LEN)))
634 memcpy (p->esco.data.bd_addr, remote_bda, BD_ADDR_LEN);
644 p_setup = &p->esco.setup;
736 ((acl_handle = BTM_GetHCIConnHandle (p->esco.data.bd_addr)) == hci_handle))
742 if ((btm_send_connect_request(acl_handle, &p->esco.setup)) == BTM_CMD_STARTED)
770 ((acl_handle = BTM_GetHCIConnHandle (p->esco.data.bd_addr)) == hci_handle))
775 if ((btm_send_connect_request(acl_handle, &p->esco.setup)) == BTM_CMD_STARTED)
807 && (!memcmp (p->esco.data.bd_addr, bda, BD_ADDR_LEN)))
811 p->esco.data.link_type = link_type;
813 memcpy (p->esco.data.bd_addr, bda, BD_ADDR_LEN);
816 if (!p->esco.p_esco_cback)
818 /* If requesting eSCO reject if default parameters are SCO only */
841 p->esco.p_esco_cback(BTM_ESCO_CONN_REQ_EVT, (tBTM_ESCO_EVT_DATA *)&evt_data);
859 p->esco.data.link_type = link_type;
860 memcpy (p->esco.data.bd_addr, bda, BD_ADDR_LEN);
907 && (!bda || !memcmp (p->esco.data.bd_addr, bda, BD_ADDR_LEN)))
950 p->esco.data.link_type = BTM_LINK_TYPE_SCO;
953 parms.packet_types = p->esco.setup.packet_types;
955 parms.max_latency = p->esco.setup.max_latency;
956 parms.retrans_effort = p->esco.setup.retrans_effort;
964 p->esco.data = *p_esco_data;
1028 p->esco.p_esco_cback = NULL; /* Deregister the eSCO event callback */
1064 if (p->rem_bd_known && (!memcmp (p->esco.data.bd_addr, bda, BD_ADDR_LEN)))
1102 p->esco.p_esco_cback = NULL; /* Deregister eSCO callback */
1135 if ((!bda) || (!memcmp (p->esco.data.bd_addr, bda, BD_ADDR_LEN) && p->rem_bd_known))
1140 p->esco.p_esco_cback = NULL; /* Deregister eSCO callback */
1187 parms.max_latency = p->esco.setup.max_latency;
1188 parms.retrans_effort = p->esco.setup.retrans_effort;
1225 return (p->esco.setup.packet_types);
1319 return (p->esco.data.bd_addr);
1332 ** eSCO, and sets as the default mode used for outgoing calls to
1335 ** supported by the controller. If eSCO is not desired the
1377 BTM_TRACE_API0("BTM_SetEScoMode -> mode SCO (eSCO not supported)");
1402 ** later or does not support eSCO.
1410 btm_cb.sco_cb.sco_db[sco_inx].esco.p_esco_cback = NULL;
1417 btm_cb.sco_cb.sco_db[sco_inx].esco.p_esco_cback = p_esco_cback;
1430 ** Description This function returns the current eSCO link parameters for
1452 *p_parms = btm_cb.sco_cb.sco_db[sco_inx].esco.data;
1463 *p_parms = btm_cb.sco_cb.sco_db[index].esco.data;
1481 ** the current eSCO Link. If any of the changes are accepted
1508 p_setup = &p_sco->esco.setup;
1510 /* If SCO connection OR eSCO not supported just send change packet types */
1511 if (p_sco->esco.data.link_type == BTM_LINK_TYPE_SCO ||
1537 BTM_TRACE_API1("BTM_ChangeEScoLinkParms -> eSCO Link for handle 0x%04x", p_sco->hci_handle);
1565 ** the request. Parameters used to negotiate eSCO links.
1584 btm_cb.sco_cb.sco_db[sco_inx].esco.data.bd_addr,
1594 ** Description This function copies the current default esco settings into
1637 if (p->esco.p_esco_cback)
1639 memcpy(data.bd_addr, p->esco.data.bd_addr, BD_ADDR_LEN);
1642 data.rx_pkt_len = p->esco.data.rx_pkt_len = rx_pkt_len;
1643 data.tx_pkt_len = p->esco.data.tx_pkt_len = tx_pkt_len;
1644 data.tx_interval = p->esco.data.tx_interval = tx_interval;
1645 data.retrans_window = p->esco.data.retrans_window = retrans_window;
1647 (*p->esco.p_esco_cback)(BTM_ESCO_CHG_EVT,
1734 if ((!memcmp (p->esco.data.bd_addr, remote_bda, BD_ADDR_LEN)) && (p->state == SCO_ST_CONNECTED))