/system/bt/stack/avdt/ |
D | avdt_l2c.c | 77 tL2CAP_CFG_INFO cfg; in avdt_sec_check_complete_term() local 107 memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO)); in avdt_sec_check_complete_term() 108 cfg.mtu_present = TRUE; in avdt_sec_check_complete_term() 109 cfg.mtu = p_tbl->my_mtu; in avdt_sec_check_complete_term() 110 cfg.flush_to_present = TRUE; in avdt_sec_check_complete_term() 111 cfg.flush_to = p_tbl->my_flush_to; in avdt_sec_check_complete_term() 112 L2CA_ConfigReq(p_tbl->lcid, &cfg); in avdt_sec_check_complete_term() 135 tL2CAP_CFG_INFO cfg; in avdt_sec_check_complete_orig() local 152 memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO)); in avdt_sec_check_complete_orig() 153 cfg.mtu_present = TRUE; in avdt_sec_check_complete_orig() [all …]
|
D | avdt_scb.c | 606 if(p_cs->cfg.psc_mask & AVDT_PSC_MUX) in avdt_scb_alloc() 608 p_scb->cs.cfg.mux_tcid_media = avdt_ad_type_to_tcid(AVDT_CHAN_MEDIA, p_scb); in avdt_scb_alloc() 610 if(p_cs->cfg.psc_mask & AVDT_PSC_REPORT) in avdt_scb_alloc() 612 p_scb->cs.cfg.mux_tcid_report = avdt_ad_type_to_tcid(AVDT_CHAN_REPORT, p_scb); in avdt_scb_alloc() 619 AVDT_TRACE_DEBUG("avdt_scb_alloc hdl=%d, psc_mask:0x%x", i+1, p_cs->cfg.psc_mask); in avdt_scb_alloc()
|
/system/bt/stack/sdp/ |
D | sdp_main.c | 194 tL2CAP_CFG_INFO cfg = sdp_cb.l2cap_my_cfg; in sdp_connect_ind() local 196 if (cfg.fcr_present) in sdp_connect_ind() 199 cfg.fcr.mode, cfg.fcr.tx_win_sz, cfg.fcr.max_transmit, in sdp_connect_ind() 200 cfg.fcr.rtrans_tout,cfg.fcr.mon_tout, cfg.fcr.mps); in sdp_connect_ind() 203 if ((!L2CA_ConfigReq (l2cap_cid, &cfg)) && cfg.fcr_present in sdp_connect_ind() 204 && cfg.fcr.mode != L2CAP_FCR_BASIC_MODE) in sdp_connect_ind() 207 cfg.fcr.mode = L2CAP_FCR_BASIC_MODE; in sdp_connect_ind() 208 cfg.fcr_present = FALSE; in sdp_connect_ind() 209 L2CA_ConfigReq (l2cap_cid, &cfg); in sdp_connect_ind() 235 tL2CAP_CFG_INFO cfg; in sdp_connect_cfm() local [all …]
|
/system/bt/stack/mcap/ |
D | mca_l2c.c | 76 tL2CAP_CFG_INFO cfg; in mca_sec_check_complete_term() local 100 mca_set_cfg_by_tbl (&cfg, p_tbl); in mca_sec_check_complete_term() 101 L2CA_ConfigReq(p_tbl->lcid, &cfg); in mca_sec_check_complete_term() 123 tL2CAP_CFG_INFO cfg; in mca_sec_check_complete_orig() local 135 mca_set_cfg_by_tbl (&cfg, p_tbl); in mca_sec_check_complete_orig() 136 L2CA_ConfigReq(p_tbl->lcid, &cfg); in mca_sec_check_complete_orig() 161 tL2CAP_CFG_INFO cfg; in mca_l2c_cconn_ind_cback() local 213 mca_set_cfg_by_tbl (&cfg, p_tbl); in mca_l2c_cconn_ind_cback() 214 L2CA_ConfigReq(p_tbl->lcid, &cfg); in mca_l2c_cconn_ind_cback() 236 tL2CAP_CFG_INFO cfg; in mca_l2c_dconn_ind_cback() local [all …]
|
D | mca_api.c | 423 UINT8 cfg, const tMCA_CHNL_CFG *p_chnl_cfg) in MCA_CreateMdl() argument 465 p_evt_data->param = cfg; in MCA_CreateMdl() 497 UINT16 mdl_id, UINT8 cfg, UINT8 rsp_code, in MCA_CreateMdlRsp() argument 505 …_API ("MCA_CreateMdlRsp: %d dep=%d mdl_id=%d cfg=%d rsp_code=%d", mcl, dep, mdl_id, cfg, rsp_code); in MCA_CreateMdlRsp() 538 evt_data.param = cfg; in MCA_CreateMdlRsp()
|
/system/bt/stack/avct/ |
D | avct_l2c.c | 108 tL2CAP_CFG_INFO cfg; in avct_l2c_connect_ind_cback() local 155 memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO)); in avct_l2c_connect_ind_cback() 156 cfg.mtu_present = TRUE; in avct_l2c_connect_ind_cback() 157 cfg.mtu = avct_cb.mtu; in avct_l2c_connect_ind_cback() 158 L2CA_ConfigReq(lcid, &cfg); in avct_l2c_connect_ind_cback() 181 tL2CAP_CFG_INFO cfg; in avct_l2c_connect_cfm_cback() local 198 memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO)); in avct_l2c_connect_cfm_cback() 199 cfg.mtu_present = TRUE; in avct_l2c_connect_cfm_cback() 200 cfg.mtu = avct_cb.mtu; in avct_l2c_connect_cfm_cback() 201 L2CA_ConfigReq(lcid, &cfg); in avct_l2c_connect_cfm_cback()
|
/system/bt/audio_a2dp_hw/ |
D | audio_a2dp_hw.c | 110 struct a2dp_config cfg; member 194 static int calc_audiotime(struct a2dp_config cfg, int bytes) in calc_audiotime() argument 196 int chan_count = popcount(cfg.channel_flags); in calc_audiotime() 198 ASSERTC(cfg.format == AUDIO_FORMAT_PCM_16_BIT, in calc_audiotime() 199 "unsupported sample sz", cfg.format); in calc_audiotime() 201 return (int)(((int64_t)bytes * (1000000 / (chan_count * 2))) / cfg.rate); in calc_audiotime() 434 …common->cfg.channel_flags = (channel_count == 1 ? AUDIO_CHANNEL_IN_MONO : AUDIO_CHANNEL_IN_STEREO); in a2dp_read_audio_config() 435 common->cfg.format = AUDIO_STREAM_DEFAULT_FORMAT; in a2dp_read_audio_config() 436 common->cfg.rate = sample_rate; in a2dp_read_audio_config() 438 INFO("got config %d %d", common->cfg.format, common->cfg.rate); in a2dp_read_audio_config() [all …]
|
/system/extras/sound/ |
D | playwav.c | 197 struct msm_audio_config cfg; in wav_rec() local 232 if (ioctl(afd, AUDIO_GET_CONFIG, &cfg)) { in wav_rec() 237 cfg.channel_count = hdr.num_channels; in wav_rec() 238 cfg.sample_rate = hdr.sample_rate; in wav_rec() 239 if (ioctl(afd, AUDIO_SET_CONFIG, &cfg)) { in wav_rec() 244 if (ioctl(afd, AUDIO_GET_CONFIG, &cfg)) { in wav_rec() 249 sz = cfg.buffer_size; in wav_rec() 250 fprintf(stderr,"buffer size %d x %d\n", sz, cfg.buffer_count); in wav_rec()
|
/system/bt/bta/jv/ |
D | bta_jv_api.c | 311 UINT16 rx_mtu, tL2CAP_CFG_INFO *cfg, in BTA_JvL2capConnectLE() argument 326 if (cfg != NULL) { in BTA_JvL2capConnectLE() 328 p_msg->cfg = *cfg; in BTA_JvL2capConnectLE() 364 UINT16 rx_mtu, tL2CAP_CFG_INFO *cfg, in BTA_JvL2capConnect() argument 380 if (cfg != NULL) { in BTA_JvL2capConnect() 382 p_msg->cfg = *cfg; in BTA_JvL2capConnect() 472 const tL2CAP_ERTM_INFO *ertm_info,UINT16 local_psm, UINT16 rx_mtu, tL2CAP_CFG_INFO *cfg, in BTA_JvL2capStartServer() argument 488 if (cfg != NULL) { in BTA_JvL2capStartServer() 490 p_msg->cfg = *cfg; in BTA_JvL2capStartServer() 523 const tL2CAP_ERTM_INFO *ertm_info,UINT16 local_chan, UINT16 rx_mtu, tL2CAP_CFG_INFO *cfg, in BTA_JvL2capStartServerLE() argument [all …]
|
D | bta_jv_act.c | 1056 tL2CAP_CFG_INFO cfg; in bta_jv_l2cap_connect() local 1061 memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO)); in bta_jv_l2cap_connect() 1065 cfg = cc->cfg; in bta_jv_l2cap_connect() 1066 if (cfg.fcr_present && cfg.fcr.mode == L2CAP_FCR_ERTM_MODE) { in bta_jv_l2cap_connect() 1077 cfg.mtu_present = TRUE; in bta_jv_l2cap_connect() 1078 cfg.mtu = cc->rx_mtu; in bta_jv_l2cap_connect() 1094 &cfg, ertm_info, cc->sec_mask, chan_mode_mask, in bta_jv_l2cap_connect() 1225 tL2CAP_CFG_INFO cfg; in bta_jv_l2cap_start_server() local 1231 memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO)); in bta_jv_l2cap_start_server() 1234 cfg = ls->cfg; in bta_jv_l2cap_start_server() [all …]
|
/system/bt/btif/co/ |
D | bta_dm_co.c | 258 tBTUI_SCO_CODEC_CFG cfg; in bta_dm_sco_co_open() local 263 cfg.p_cback = btui_sco_codec_callback; in bta_dm_sco_co_open() 264 cfg.pkt_size = pkt_size; in bta_dm_sco_co_open() 265 cfg.cb_event = event; in bta_dm_sco_co_open() 267 btui_sco_codec_open(&cfg); in bta_dm_sco_co_open()
|
/system/bt/bta/av/ |
D | bta_av_aact.c | 509 memcpy(&p_msg->cfg, p_data->config_ind.p_cfg, sizeof(tAVDT_CFG)); in bta_av_proc_stream_evt() 1131 tAVDT_CFG *p_evt_cfg = &p_data->str_msg.cfg; in bta_av_config_ind() 1132 UINT8 psc_mask = (p_evt_cfg->psc_mask | p_scb->cfg.psc_mask); in bta_av_config_ind() 1139 memcpy(p_scb->cfg.codec_info, p_evt_cfg->codec_info, AVDT_CODEC_SIZE); in bta_av_config_ind() 1150 ((psc_mask != p_scb->cfg.psc_mask) && in bta_av_config_ind() 1151 (psc_mask != (p_scb->cfg.psc_mask&~AVDT_PSC_DELAY_RPT))) ) in bta_av_config_ind() 1302 av_sink_codec_info.avk_config.codec_info = p_scb->cfg.codec_info; in bta_av_setconfig_rsp() 1408 p_scb->codec_type, p_scb->cfg.codec_info, mtu); in bta_av_str_opened() 1716 tAVDT_CFG cfg; in bta_av_save_caps() local 1723 memcpy(&cfg, p_scb->p_cap, sizeof(tAVDT_CFG)); in bta_av_save_caps() [all …]
|
D | bta_av_main.c | 579 cs.cfg.num_codec = 1; in bta_av_api_register() 611 cs.cfg.psc_mask = AVDT_PSC_TRANS; in bta_av_api_register() 618 cs.cfg.psc_mask |= AVDT_PSC_REPORT; in bta_av_api_register() 621 cs.cfg.mux_tsid_report = 2; in bta_av_api_register() 626 cs.cfg.psc_mask |= AVDT_PSC_DELAY_RPT; in bta_av_api_register() 647 memcpy(&p_scb->cfg, &cs.cfg, sizeof(tAVDT_CFG)); in bta_av_api_register() 648 if ((*bta_av_a2d_cos.init)(&codec_type, cs.cfg.codec_info, in bta_av_api_register() 649 &cs.cfg.num_protect, cs.cfg.protect_info, index) == TRUE) in bta_av_api_register()
|
/system/bt/stack/include/ |
D | mca_api.h | 145 UINT8 cfg; /* The configuration to negotiate */ member 153 UINT8 cfg; /* The configuration to negotiate */ member 360 UINT8 cfg, const tMCA_CHNL_CFG *p_chnl_cfg); 377 UINT16 mdl_id, UINT8 cfg, UINT8 rsp_code,
|
/system/bt/stack/srvc/ |
D | srvc_battery.c | 77 tBA_WRITE_DATA cfg; in battery_s_write_attr_value() local 85 memcpy(cfg.remote_bda, srvc_eng_cb.clcb[clcb_idx].bda, BD_ADDR_LEN); in battery_s_write_attr_value() 86 STREAM_TO_UINT16(cfg.clt_cfg, p); in battery_s_write_attr_value() 93 cfg.need_rsp = p_value->need_rsp; in battery_s_write_attr_value() 96 (* p_inst->p_cback)(p_inst->app_id, BA_WRITE_CLT_CFG_REQ, &cfg); in battery_s_write_attr_value()
|
/system/bt/stack/btm/ |
D | btm_devctl.c | 86 memset(btm_cb.cfg.bd_name, 0, sizeof(tBTM_LOC_BD_NAME)); in btm_dev_init() 205 BTM_SetPinType (btm_cb.cfg.pin_type, btm_cb.cfg.pin_code, btm_cb.cfg.pin_code_len); in reset_complete() 456 p = (UINT8 *)btm_cb.cfg.bd_name; in BTM_SetLocalDeviceName() 458 strlcpy(btm_cb.cfg.bd_name, p_name, BTM_MAX_LOC_BD_NAME_LEN); in BTM_SetLocalDeviceName() 487 *p_name = btm_cb.cfg.bd_name; in BTM_ReadLocalDeviceName()
|
/system/bt/stack/gap/ |
D | gap_conn.c | 168 p_ccb->cfg = *p_cfg; in GAP_ConnOpen() 229 if( p_ccb->cfg.fcr_present ) in GAP_ConnOpen() 232 p_ccb->ertm_info.preferred_mode = p_ccb->cfg.fcr.mode; in GAP_ConnOpen() 502 if (p_ccb->cfg.fcr.mode == L2CAP_FCR_ERTM_MODE) in GAP_ConnWriteData() 568 p_ccb->cfg = *p_cfg; in GAP_ConnReconfig() 781 L2CA_CONFIG_REQ (l2cap_cid, &p_ccb->cfg); in gap_connect_ind() 874 L2CA_CONFIG_REQ (l2cap_cid, &p_ccb->cfg); in gap_connect_cfm() 921 if (p_ccb->cfg.fcr.mode == L2CAP_FCR_ERTM_MODE) in gap_config_ind() 973 if (p_ccb->cfg.fcr_present) in gap_config_cfm() 974 p_ccb->cfg.fcr.mode = p_cfg->fcr.mode; in gap_config_cfm() [all …]
|
D | gap_int.h | 85 tL2CAP_CFG_INFO cfg; /* Configuration */ member
|
/system/bt/stack/gatt/ |
D | gatt_main.c | 618 tL2CAP_CFG_INFO cfg; in gatt_l2cif_connect_ind_cback() local 651 memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO)); in gatt_l2cif_connect_ind_cback() 652 cfg.mtu_present = TRUE; in gatt_l2cif_connect_ind_cback() 653 cfg.mtu = GATT_MAX_MTU_SIZE; in gatt_l2cif_connect_ind_cback() 655 L2CA_ConfigReq(lcid, &cfg); in gatt_l2cif_connect_ind_cback() 672 tL2CAP_CFG_INFO cfg; in gatt_l2cif_connect_cfm_cback() local 689 memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO)); in gatt_l2cif_connect_cfm_cback() 690 cfg.mtu_present = TRUE; in gatt_l2cif_connect_cfm_cback() 691 cfg.mtu = GATT_MAX_MTU_SIZE; in gatt_l2cif_connect_cfm_cback() 692 L2CA_ConfigReq(lcid, &cfg); in gatt_l2cif_connect_cfm_cback()
|
/system/core/fastboot/ |
D | usb_linux.cpp | 140 struct usb_config_descriptor *cfg; in filter_usb_device() local 157 cfg = (struct usb_config_descriptor *)ptr; in filter_usb_device() 158 len -= cfg->bLength; in filter_usb_device() 159 ptr += cfg->bLength; in filter_usb_device() 200 for(i = 0; i < cfg->bNumInterfaces; i++) { in filter_usb_device()
|
/system/bt/btif/src/ |
D | btif_sock_l2cap.c | 841 tL2CAP_CFG_INFO cfg; in btSock_start_l2cap_server_l() local 845 memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO)); in btSock_start_l2cap_server_l() 847 cfg.fcr_present = TRUE; in btSock_start_l2cap_server_l() 848 cfg.fcr = obex_l2c_fcr_opts_def; in btSock_start_l2cap_server_l() 875 … sock->channel, L2CAP_MAX_SDU_LENGTH, &cfg, btsock_l2cap_cbk, UINT_TO_PTR(sock->id)) in btSock_start_l2cap_server_l() 882 … sock->channel, L2CAP_MAX_SDU_LENGTH, &cfg, btsock_l2cap_cbk, UINT_TO_PTR(sock->id)) in btSock_start_l2cap_server_l() 897 tL2CAP_CFG_INFO cfg; in btsock_l2cap_listen_or_connect() local 933 memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO)); in btsock_l2cap_listen_or_connect() 935 cfg.fcr_present = TRUE; in btsock_l2cap_listen_or_connect() 936 cfg.fcr = obex_l2c_fcr_opts_def; in btsock_l2cap_listen_or_connect() [all …]
|
D | btif_media_task.c | 957 media_feeding.cfg.pcm.sampling_freq = BTIF_A2DP_SRC_SAMPLING_RATE; in btif_a2dp_setup_codec() 958 media_feeding.cfg.pcm.bit_per_sample = BTIF_A2DP_SRC_BIT_DEPTH; in btif_a2dp_setup_codec() 959 media_feeding.cfg.pcm.num_channel = BTIF_A2DP_SRC_NUM_CHANNELS; in btif_a2dp_setup_codec() 2035 APPL_TRACE_DEBUG("sampling_freq:%d", p_feeding->feeding.cfg.pcm.sampling_freq); in btif_media_task_pcm2sbc_init() 2036 APPL_TRACE_DEBUG("num_channel:%d", p_feeding->feeding.cfg.pcm.num_channel); in btif_media_task_pcm2sbc_init() 2037 APPL_TRACE_DEBUG("bit_per_sample:%d", p_feeding->feeding.cfg.pcm.bit_per_sample); in btif_media_task_pcm2sbc_init() 2040 switch (p_feeding->feeding.cfg.pcm.sampling_freq) in btif_media_task_pcm2sbc_init() 2400 (btif_media_cb.media_feeding.cfg.pcm.sampling_freq * in btif_media_task_feeding_state_reset() 2401 btif_media_cb.media_feeding.cfg.pcm.bit_per_sample / 8 * in btif_media_task_feeding_state_reset() 2402 btif_media_cb.media_feeding.cfg.pcm.num_channel * in btif_media_task_feeding_state_reset() [all …]
|
/system/bt/bta/include/ |
D | bta_jv_api.h | 539 UINT16 rx_mtu, tL2CAP_CFG_INFO *cfg, 559 UINT16 rx_mtu, tL2CAP_CFG_INFO *cfg, 603 UINT16 local_psm, UINT16 rx_mtu, tL2CAP_CFG_INFO *cfg, 623 UINT16 local_chan, UINT16 rx_mtu, tL2CAP_CFG_INFO *cfg,
|
/system/bt/stack/rfcomm/ |
D | rfc_mx_fsm.c | 571 tL2CAP_CFG_INFO cfg; in rfc_mx_send_config_req() local 575 memset (&cfg, 0, sizeof (tL2CAP_CFG_INFO)); in rfc_mx_send_config_req() 577 cfg.mtu_present = TRUE; in rfc_mx_send_config_req() 578 cfg.mtu = L2CAP_MTU_SIZE; in rfc_mx_send_config_req() 588 L2CA_ConfigReq (p_mcb->lcid, &cfg); in rfc_mx_send_config_req()
|
/system/bt/btif/include/ |
D | btif_av_api.h | 202 tBTIF_AV_MEDIA_FEED_CFG cfg; /* Media codec configuration */ member
|