Home
last modified time | relevance | path

Searched refs:cfg (Results 1 – 25 of 44) sorted by relevance

12

/system/bt/stack/avdt/
Davdt_l2c.c77 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 …]
Davdt_scb.c612 if(p_cs->cfg.psc_mask & AVDT_PSC_MUX) in avdt_scb_alloc()
614 p_scb->cs.cfg.mux_tcid_media = avdt_ad_type_to_tcid(AVDT_CHAN_MEDIA, p_scb); in avdt_scb_alloc()
616 if(p_cs->cfg.psc_mask & AVDT_PSC_REPORT) in avdt_scb_alloc()
618 p_scb->cs.cfg.mux_tcid_report = avdt_ad_type_to_tcid(AVDT_CHAN_REPORT, p_scb); in avdt_scb_alloc()
624 AVDT_TRACE_DEBUG("avdt_scb_alloc hdl=%d, psc_mask:0x%x", i+1, p_cs->cfg.psc_mask); in avdt_scb_alloc()
Davdt_msg.c528 tAVDT_CFG cfg; in avdt_msg_bld_svccap() local
531 memcpy (&cfg, p_msg->svccap.p_cfg, sizeof(tAVDT_CFG)); in avdt_msg_bld_svccap()
532 cfg.psc_mask &= ~AVDT_PSC_DELAY_RPT; in avdt_msg_bld_svccap()
533 avdt_msg_bld_cfg(p, &cfg); in avdt_msg_bld_svccap()
1704 tAVDT_CFG cfg; in avdt_msg_ind() local
1784 msg.svccap.p_cfg = &cfg; in avdt_msg_ind()
1789 msg.config_cmd.p_cfg = &cfg; in avdt_msg_ind()
1794 msg.reconfig_cmd.p_cfg = &cfg; in avdt_msg_ind()
/system/bt/stack/sdp/
Dsdp_main.c192 tL2CAP_CFG_INFO cfg = sdp_cb.l2cap_my_cfg; in sdp_connect_ind() local
194 if (cfg.fcr_present) in sdp_connect_ind()
197 cfg.fcr.mode, cfg.fcr.tx_win_sz, cfg.fcr.max_transmit, in sdp_connect_ind()
198 cfg.fcr.rtrans_tout,cfg.fcr.mon_tout, cfg.fcr.mps); in sdp_connect_ind()
201 if ((!L2CA_ConfigReq (l2cap_cid, &cfg)) && cfg.fcr_present in sdp_connect_ind()
202 && cfg.fcr.mode != L2CAP_FCR_BASIC_MODE) in sdp_connect_ind()
205 cfg.fcr.mode = L2CAP_FCR_BASIC_MODE; in sdp_connect_ind()
206 cfg.fcr_present = FALSE; in sdp_connect_ind()
207 L2CA_ConfigReq (l2cap_cid, &cfg); in sdp_connect_ind()
233 tL2CAP_CFG_INFO cfg; in sdp_connect_cfm() local
[all …]
/system/bt/stack/mcap/
Dmca_l2c.c76 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 …]
Dmca_api.c425 UINT8 cfg, const tMCA_CHNL_CFG *p_chnl_cfg) in MCA_CreateMdl() argument
470 p_evt_data->param = cfg; in MCA_CreateMdl()
502 UINT16 mdl_id, UINT8 cfg, UINT8 rsp_code, in MCA_CreateMdlRsp() argument
510 …_API ("MCA_CreateMdlRsp: %d dep=%d mdl_id=%d cfg=%d rsp_code=%d", mcl, dep, mdl_id, cfg, rsp_code); in MCA_CreateMdlRsp()
543 evt_data.param = cfg; in MCA_CreateMdlRsp()
/system/bt/stack/avct/
Davct_l2c.c108 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/
Daudio_a2dp_hw.c103 struct a2dp_config cfg; member
182 static int calc_audiotime(struct a2dp_config cfg, int bytes) in calc_audiotime() argument
184 int chan_count = popcount(cfg.channel_flags); in calc_audiotime()
186 ASSERTC(cfg.format == AUDIO_FORMAT_PCM_16_BIT, in calc_audiotime()
187 "unsupported sample sz", cfg.format); in calc_audiotime()
189 return bytes*(1000000/(chan_count*2))/cfg.rate; in calc_audiotime()
386 …common->cfg.channel_flags = (channel_count == 1 ? AUDIO_CHANNEL_IN_MONO : AUDIO_CHANNEL_IN_STEREO); in a2dp_read_audio_config()
387 common->cfg.format = AUDIO_STREAM_DEFAULT_FORMAT; in a2dp_read_audio_config()
388 common->cfg.rate = sample_rate; in a2dp_read_audio_config()
390 INFO("got config %d %d", common->cfg.format, common->cfg.rate); in a2dp_read_audio_config()
[all …]
/system/bt/btif/co/
Dbta_dm_co.c265 tBTUI_SCO_CODEC_CFG cfg; in bta_dm_sco_co_open() local
271 cfg.pool_id = HCI_SCO_POOL_ID; in bta_dm_sco_co_open()
272 cfg.p_cback = btui_sco_codec_callback; in bta_dm_sco_co_open()
273 cfg.pkt_size = pkt_size; in bta_dm_sco_co_open()
274 cfg.cb_event = event; in bta_dm_sco_co_open()
276 btui_sco_codec_open(&cfg); in bta_dm_sco_co_open()
/system/extras/sound/
Dplaywav.c197 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/
Dbta_jv_api.c334 UINT16 rx_mtu, tL2CAP_CFG_INFO *cfg, in BTA_JvL2capConnectLE() argument
351 if(cfg != NULL) { in BTA_JvL2capConnectLE()
353 p_msg->cfg = *cfg; in BTA_JvL2capConnectLE()
390 UINT16 rx_mtu, tL2CAP_CFG_INFO *cfg, in BTA_JvL2capConnect() argument
406 if(cfg != NULL) { in BTA_JvL2capConnect()
408 p_msg->cfg = *cfg; in BTA_JvL2capConnect()
502 const tL2CAP_ERTM_INFO *ertm_info,UINT16 local_psm, UINT16 rx_mtu, tL2CAP_CFG_INFO *cfg, in BTA_JvL2capStartServer() argument
518 if(cfg != NULL) { in BTA_JvL2capStartServer()
520 p_msg->cfg = *cfg; in BTA_JvL2capStartServer()
554 const tL2CAP_ERTM_INFO *ertm_info,UINT16 local_chan, UINT16 rx_mtu, tL2CAP_CFG_INFO *cfg, in BTA_JvL2capStartServerLE() argument
[all …]
Dbta_jv_act.c1068 tL2CAP_CFG_INFO cfg; in bta_jv_l2cap_connect() local
1073 memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO)); in bta_jv_l2cap_connect()
1077 cfg = cc->cfg; in bta_jv_l2cap_connect()
1078 if (cfg.fcr_present && cfg.fcr.mode == L2CAP_FCR_ERTM_MODE) { in bta_jv_l2cap_connect()
1089 cfg.mtu_present = TRUE; in bta_jv_l2cap_connect()
1090 cfg.mtu = cc->rx_mtu; in bta_jv_l2cap_connect()
1105 &cfg, ertm_info, cc->sec_mask, chan_mode_mask, in bta_jv_l2cap_connect()
1232 tL2CAP_CFG_INFO cfg; in bta_jv_l2cap_start_server() local
1239 memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO)); in bta_jv_l2cap_start_server()
1242 cfg = ls->cfg; in bta_jv_l2cap_start_server()
[all …]
/system/bt/stack/btm/
Dbtm_devctl.c85 memset(btm_cb.cfg.bd_name, 0, sizeof(tBTM_LOC_BD_NAME)); in btm_dev_init()
192 BTM_SetPinType (btm_cb.cfg.pin_type, btm_cb.cfg.pin_code, btm_cb.cfg.pin_code_len); in reset_complete()
453 p = (UINT8 *)btm_cb.cfg.bd_name; in BTM_SetLocalDeviceName()
456 … BCM_STRNCPY_S(btm_cb.cfg.bd_name, sizeof(btm_cb.cfg.bd_name), p_name, BTM_MAX_LOC_BD_NAME_LEN); in BTM_SetLocalDeviceName()
457 btm_cb.cfg.bd_name[BTM_MAX_LOC_BD_NAME_LEN] = '\0'; in BTM_SetLocalDeviceName()
487 *p_name = btm_cb.cfg.bd_name; in BTM_ReadLocalDeviceName()
/system/bt/bta/av/
Dbta_av_aact.c512 memcpy(&p_msg->cfg, p_data->config_ind.p_cfg, sizeof(tAVDT_CFG)); in bta_av_proc_stream_evt()
1128 tAVDT_CFG *p_evt_cfg = &p_data->str_msg.cfg; in bta_av_config_ind()
1129 UINT8 psc_mask = (p_evt_cfg->psc_mask | p_scb->cfg.psc_mask); in bta_av_config_ind()
1136 memcpy(p_scb->cfg.codec_info, p_evt_cfg->codec_info, AVDT_CODEC_SIZE); in bta_av_config_ind()
1147 ((psc_mask != p_scb->cfg.psc_mask) && in bta_av_config_ind()
1148 (psc_mask != (p_scb->cfg.psc_mask&~AVDT_PSC_DELAY_RPT))) ) in bta_av_config_ind()
1300 (tBTA_AV_MEDIA*)p_scb->cfg.codec_info); in bta_av_setconfig_rsp()
1402 p_scb->codec_type, p_scb->cfg.codec_info, mtu); in bta_av_str_opened()
1713 tAVDT_CFG cfg; in bta_av_save_caps() local
1720 memcpy(&cfg, p_scb->p_cap, sizeof(tAVDT_CFG)); in bta_av_save_caps()
[all …]
Dbta_av_main.c622 cs.cfg.num_codec = 1; in bta_av_api_register()
653 cs.cfg.psc_mask = AVDT_PSC_TRANS; in bta_av_api_register()
660 cs.cfg.psc_mask |= AVDT_PSC_REPORT; in bta_av_api_register()
663 cs.cfg.mux_tsid_report = 2; in bta_av_api_register()
668 cs.cfg.psc_mask |= AVDT_PSC_DELAY_RPT; in bta_av_api_register()
671 memcpy(&p_scb->cfg, &cs.cfg, sizeof(tAVDT_CFG)); in bta_av_api_register()
673 (*bta_av_a2d_cos.init)(&codec_type, cs.cfg.codec_info, in bta_av_api_register()
674 &cs.cfg.num_protect, cs.cfg.protect_info, index) == TRUE) in bta_av_api_register()
/system/bt/stack/include/
Dmca_api.h145 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/
Dsrvc_battery.c77 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/btif/src/
Dbtif_media_task.c804 media_feeding.cfg.pcm.sampling_freq = 44100; in btif_a2dp_setup_codec()
805 media_feeding.cfg.pcm.bit_per_sample = 16; in btif_a2dp_setup_codec()
806 media_feeding.cfg.pcm.num_channel = 2; in btif_a2dp_setup_codec()
1799 APPL_TRACE_DEBUG("sampling_freq:%d", p_feeding->feeding.cfg.pcm.sampling_freq); in btif_media_task_pcm2sbc_init()
1800 APPL_TRACE_DEBUG("num_channel:%d", p_feeding->feeding.cfg.pcm.num_channel); in btif_media_task_pcm2sbc_init()
1801 APPL_TRACE_DEBUG("bit_per_sample:%d", p_feeding->feeding.cfg.pcm.bit_per_sample); in btif_media_task_pcm2sbc_init()
1804 switch (p_feeding->feeding.cfg.pcm.sampling_freq) in btif_media_task_pcm2sbc_init()
2124 (btif_media_cb.media_feeding.cfg.pcm.sampling_freq * in btif_media_task_feeding_state_reset()
2125 btif_media_cb.media_feeding.cfg.pcm.bit_per_sample / 8 * in btif_media_task_feeding_state_reset()
2126 btif_media_cb.media_feeding.cfg.pcm.num_channel * in btif_media_task_feeding_state_reset()
[all …]
Dbtif_sock_l2cap.c843 tL2CAP_CFG_INFO cfg; in btSock_start_l2cap_server_l() local
847 memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO)); in btSock_start_l2cap_server_l()
849 cfg.fcr_present = TRUE; in btSock_start_l2cap_server_l()
850 cfg.fcr = obex_l2c_fcr_opts_def; in btSock_start_l2cap_server_l()
868 sock->channel, L2CAP_MAX_SDU_LENGTH, &cfg, btsock_l2cap_cbk, (void*)sock->id) in btSock_start_l2cap_server_l()
882 tL2CAP_CFG_INFO cfg; in btsock_l2cap_listen_or_connect() local
912 memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO)); in btsock_l2cap_listen_or_connect()
914 cfg.fcr_present = TRUE; in btsock_l2cap_listen_or_connect()
915 cfg.fcr = obex_l2c_fcr_opts_def; in btsock_l2cap_listen_or_connect()
929 channel, L2CAP_MAX_SDU_LENGTH, &cfg, sock->addr.address, in btsock_l2cap_listen_or_connect()
/system/bt/stack/gap/
Dgap_conn.c163 p_ccb->cfg = *p_cfg; in GAP_ConnOpen()
200 if( p_ccb->cfg.fcr_present ) in GAP_ConnOpen()
203 p_ccb->ertm_info.preferred_mode = p_ccb->cfg.fcr.mode; in GAP_ConnOpen()
531 if (p_ccb->cfg.fcr.mode == L2CAP_FCR_ERTM_MODE) in GAP_ConnWriteData()
603 p_ccb->cfg = *p_cfg; in GAP_ConnReconfig()
778 L2CA_CONFIG_REQ (l2cap_cid, &p_ccb->cfg); in gap_connect_ind()
869 L2CA_CONFIG_REQ (l2cap_cid, &p_ccb->cfg); in gap_connect_cfm()
902 if (p_ccb->cfg.fcr.mode == L2CAP_FCR_ERTM_MODE) in gap_config_ind()
954 if (p_ccb->cfg.fcr_present) in gap_config_cfm()
955 p_ccb->cfg.fcr.mode = p_cfg->fcr.mode; in gap_config_cfm()
[all …]
/system/bt/stack/gatt/
Dgatt_main.c587 tL2CAP_CFG_INFO cfg; in gatt_l2cif_connect_ind_cback() local
620 memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO)); in gatt_l2cif_connect_ind_cback()
621 cfg.mtu_present = TRUE; in gatt_l2cif_connect_ind_cback()
622 cfg.mtu = GATT_MAX_MTU_SIZE; in gatt_l2cif_connect_ind_cback()
624 L2CA_ConfigReq(lcid, &cfg); in gatt_l2cif_connect_ind_cback()
641 tL2CAP_CFG_INFO cfg; in gatt_l2cif_connect_cfm_cback() local
658 memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO)); in gatt_l2cif_connect_cfm_cback()
659 cfg.mtu_present = TRUE; in gatt_l2cif_connect_cfm_cback()
660 cfg.mtu = GATT_MAX_MTU_SIZE; in gatt_l2cif_connect_cfm_cback()
661 L2CA_ConfigReq(lcid, &cfg); in gatt_l2cif_connect_cfm_cback()
/system/core/fastboot/
Dusb_linux.c119 struct usb_config_descriptor *cfg; in filter_usb_device() local
136 cfg = (struct usb_config_descriptor *)ptr; in filter_usb_device()
137 len -= cfg->bLength; in filter_usb_device()
138 ptr += cfg->bLength; in filter_usb_device()
179 for(i = 0; i < cfg->bNumInterfaces; i++) { in filter_usb_device()
/system/bt/stack/rfcomm/
Drfc_mx_fsm.c564 tL2CAP_CFG_INFO cfg; in rfc_mx_send_config_req() local
568 memset (&cfg, 0, sizeof (tL2CAP_CFG_INFO)); in rfc_mx_send_config_req()
570 cfg.mtu_present = TRUE; in rfc_mx_send_config_req()
571 cfg.mtu = L2CAP_MTU_SIZE; in rfc_mx_send_config_req()
581 L2CA_ConfigReq (p_mcb->lcid, &cfg); in rfc_mx_send_config_req()
/system/bt/bta/include/
Dbta_jv_api.h575 UINT16 rx_mtu, tL2CAP_CFG_INFO *cfg,
595 UINT16 rx_mtu, tL2CAP_CFG_INFO *cfg,
639 UINT16 local_psm, UINT16 rx_mtu, tL2CAP_CFG_INFO *cfg,
659 UINT16 local_chan, UINT16 rx_mtu, tL2CAP_CFG_INFO *cfg,
/system/bt/btif/include/
Dbtif_av_api.h202 tBTIF_AV_MEDIA_FEED_CFG cfg; /* Media codec configuration */ member

12