Home
last modified time | relevance | path

Searched refs:codec_info (Results 1 – 25 of 26) sorted by relevance

12

/system/bt/btif/src/
Dbtif_a2dp_sink.cc74 uint8_t codec_info[AVDT_CODEC_SIZE]; member
397 memcpy(p_buf->codec_info, p_codec_info, AVDT_CODEC_SIZE); in btif_a2dp_sink_update_decoder()
588 p_buf->codec_info[1], p_buf->codec_info[2], in btif_a2dp_sink_decoder_update_event()
589 p_buf->codec_info[3], p_buf->codec_info[4], in btif_a2dp_sink_decoder_update_event()
590 p_buf->codec_info[5], p_buf->codec_info[6]); in btif_a2dp_sink_decoder_update_event()
592 int sample_rate = A2DP_GetTrackSampleRate(p_buf->codec_info); in btif_a2dp_sink_decoder_update_event()
597 int bits_per_sample = A2DP_GetTrackBitsPerSample(p_buf->codec_info); in btif_a2dp_sink_decoder_update_event()
602 int channel_count = A2DP_GetTrackChannelCount(p_buf->codec_info); in btif_a2dp_sink_decoder_update_event()
607 int channel_type = A2DP_GetSinkTrackChannelType(p_buf->codec_info); in btif_a2dp_sink_decoder_update_event()
632 btif_a2dp_sink_cb.decoder_interface->decoder_configure(p_buf->codec_info); in btif_a2dp_sink_decoder_update_event()
Dbtif_a2dp_audio_interface.cc209 a2dp_offload.codec_info[0]; in btif_a2dp_get_codec_configuration()
211 a2dp_offload.codec_info[0]); in btif_a2dp_get_codec_configuration()
213 a2dp_offload.codec_info[1]; in btif_a2dp_get_codec_configuration()
215 a2dp_offload.codec_info[2]; in btif_a2dp_get_codec_configuration()
237 a2dp_offload.codec_info[6]; in btif_a2dp_get_codec_configuration()
306 CodecConfiguration codec_info; in btif_a2dp_audio_interface_start_session() local
307 btif_a2dp_get_codec_configuration(&codec_info); in btif_a2dp_audio_interface_start_session()
309 btAudio->startSession(host_if, codec_info); in btif_a2dp_audio_interface_start_session()
/system/bt/audio_hal_interface/
Dcodec_status.cc231 uint8_t channel_mode = a2dp_offload.codec_info[3] & A2DP_SBC_IE_CH_MD_MSK; in A2dpSbcToHalConfig()
250 uint8_t block_length = a2dp_offload.codec_info[0] & A2DP_SBC_IE_BLOCKS_MSK; in A2dpSbcToHalConfig()
268 uint8_t sub_bands = a2dp_offload.codec_info[0] & A2DP_SBC_IE_SUBBAND_MSK; in A2dpSbcToHalConfig()
280 uint8_t alloc_method = a2dp_offload.codec_info[0] & A2DP_SBC_IE_ALLOC_MD_MSK; in A2dpSbcToHalConfig()
292 sbc_config.minBitpool = a2dp_offload.codec_info[1]; in A2dpSbcToHalConfig()
293 sbc_config.maxBitpool = a2dp_offload.codec_info[2]; in A2dpSbcToHalConfig()
317 uint8_t object_type = a2dp_offload.codec_info[0]; in A2dpAacToHalConfig()
348 a2dp_offload.codec_info[1] & A2DP_AAC_VARIABLE_BIT_RATE_MASK; in A2dpAacToHalConfig()
427 switch (a2dp_offload.codec_info[7]) { in A2dpLdacToHalConfig()
439 << a2dp_offload.codec_info[7]; in A2dpLdacToHalConfig()
[all …]
/system/bt/stack/a2dp/
Da2dp_codec_config.cc180 memset(p_a2dp_offload->codec_info, 0, sizeof(p_a2dp_offload->codec_info)); in getCodecSpecificConfig()
190 p_a2dp_offload->codec_info[0] = in getCodecSpecificConfig()
192 p_a2dp_offload->codec_info[1] = codec_config[5]; // Min bit pool in getCodecSpecificConfig()
193 p_a2dp_offload->codec_info[2] = codec_config[6]; // Max bit pool in getCodecSpecificConfig()
194 p_a2dp_offload->codec_info[3] = in getCodecSpecificConfig()
198 p_a2dp_offload->codec_info[0] = codec_config[3]; // object type in getCodecSpecificConfig()
199 p_a2dp_offload->codec_info[1] = codec_config[6]; // VBR | BR in getCodecSpecificConfig()
204 p_a2dp_offload->codec_info[0] = (vendor_id & 0x000000FF); in getCodecSpecificConfig()
205 p_a2dp_offload->codec_info[1] = (vendor_id & 0x0000FF00) >> 8; in getCodecSpecificConfig()
206 p_a2dp_offload->codec_info[2] = (vendor_id & 0x00FF0000) >> 16; in getCodecSpecificConfig()
[all …]
Da2dp_vendor_aptx_hd_encoder.cc240 uint8_t codec_info[AVDT_CODEC_SIZE]; in a2dp_vendor_aptx_hd_encoder_update() local
245 if (!a2dp_codec_config->copyOutOtaCodecConfig(codec_info)) { in a2dp_vendor_aptx_hd_encoder_update()
252 const uint8_t* p_codec_info = codec_info; in a2dp_vendor_aptx_hd_encoder_update()
Da2dp_vendor_aptx_encoder.cc240 uint8_t codec_info[AVDT_CODEC_SIZE]; in a2dp_vendor_aptx_encoder_update() local
245 if (!a2dp_codec_config->copyOutOtaCodecConfig(codec_info)) { in a2dp_vendor_aptx_encoder_update()
252 const uint8_t* p_codec_info = codec_info; in a2dp_vendor_aptx_encoder_update()
Da2dp_aac_encoder.cc187 uint8_t codec_info[AVDT_CODEC_SIZE]; in a2dp_aac_encoder_update() local
206 if (!a2dp_codec_config->copyOutOtaCodecConfig(codec_info)) { in a2dp_aac_encoder_update()
213 const uint8_t* p_codec_info = codec_info; in a2dp_aac_encoder_update()
Da2dp_vendor_ldac_encoder.cc349 uint8_t codec_info[AVDT_CODEC_SIZE]; in a2dp_vendor_ldac_encoder_update() local
365 if (!a2dp_codec_config->copyOutOtaCodecConfig(codec_info)) { in a2dp_vendor_ldac_encoder_update()
372 const uint8_t* p_codec_info = codec_info; in a2dp_vendor_ldac_encoder_update()
Da2dp_sbc_encoder.cc191 uint8_t codec_info[AVDT_CODEC_SIZE]; in a2dp_sbc_encoder_update() local
203 if (!a2dp_codec_config->copyOutOtaCodecConfig(codec_info)) { in a2dp_sbc_encoder_update()
210 const uint8_t* p_codec_info = codec_info; in a2dp_sbc_encoder_update()
Da2dp_vendor_ldac.cc617 p_cfg->codec_info) != A2DP_SUCCESS) { in A2DP_VendorInitCodecConfigLdac()
634 p_cfg->codec_info) == A2DP_SUCCESS; in A2DP_VendorInitCodecConfigLdacSink()
Da2dp_aac.cc732 p_cfg->codec_info) != A2DP_SUCCESS) { in A2DP_InitCodecConfigAac()
749 p_cfg->codec_info) == A2DP_SUCCESS; in A2DP_InitCodecConfigAacSink()
Da2dp_sbc.cc817 p_cfg->codec_info) != A2DP_SUCCESS) { in A2DP_InitCodecConfigSbc()
834 p_cfg->codec_info) != A2DP_SUCCESS) { in A2DP_InitCodecConfigSbcSink()
Da2dp_vendor_aptx_hd.cc440 p_cfg->codec_info) != A2DP_SUCCESS) { in A2DP_VendorInitCodecConfigAptxHd()
Da2dp_vendor_aptx.cc422 p_cfg->codec_info) != A2DP_SUCCESS) { in A2DP_VendorInitCodecConfigAptx()
/system/bt/bta/av/
Dbta_av_aact.cc230 A2DP_CodecTypeEquals(p_scb->seps[i].codec_info, in bta_av_get_scb_handle()
231 p_scb->cfg.codec_info)) { in bta_av_get_scb_handle()
613 A2DP_CodecName(p_scb->cfg.codec_info)); in bta_av_adjust_seps_idx()
617 A2DP_CodecName(p_scb->seps[i].codec_info)); in bta_av_adjust_seps_idx()
619 A2DP_CodecTypeEquals(p_scb->seps[i].codec_info, in bta_av_adjust_seps_idx()
620 p_scb->cfg.codec_info)) { in bta_av_adjust_seps_idx()
994 A2DP_CodecInfoString(p_evt_cfg->codec_info).c_str()); in bta_av_config_ind()
996 memcpy(p_scb->cfg.codec_info, p_evt_cfg->codec_info, AVDT_CODEC_SIZE); in bta_av_config_ind()
1039 p_evt_cfg->codec_info, p_info->seid, in bta_av_config_ind()
1044 p_evt_cfg->codec_info, p_info->seid, in bta_av_config_ind()
[all …]
Dbta_av_int.h308 uint8_t codec_info[AVDT_CODEC_SIZE]; /* codec configuration */ member
384 uint8_t codec_info[AVDT_CODEC_SIZE]; /* Codec info */ member
638 uint8_t codec_info[32]; /* Codec specific information */ variable
Dbta_av_main.cc697 memcpy(p_scb->seps[codec_index].codec_info, in bta_av_api_register()
698 avdtp_stream_config.cfg.codec_info, AVDT_CODEC_SIZE); in bta_av_api_register()
1507 dprintf(fd, " Codec: %s\n", A2DP_CodecName(sep.codec_info)); in bta_debug_av_dump()
Dbta_av_api.cc333 memcpy(p_buf->codec_info, p_codec_info, AVDT_CODEC_SIZE); in BTA_AvReconfig()
/system/bt/stack/avdt/
Davdt_scb_act.cc68 return ((uint32_t)(p_scb->stream_config.cfg.codec_info[1] | in avdt_scb_gen_ssrc()
69 p_scb->stream_config.cfg.codec_info[2])); in avdt_scb_gen_ssrc()
498 memcpy(p_scb->curr_cfg.codec_info, p_scb->req_cfg.codec_info, in avdt_scb_hdl_reconfig_rsp()
575 A2DP_CodecInfoString(p_scb->stream_config.cfg.codec_info).c_str()); in avdt_scb_hdl_setconfig_cmd()
578 A2DP_CodecInfoString(p_data->msg.config_cmd.p_cfg->codec_info).c_str()); in avdt_scb_hdl_setconfig_cmd()
580 if (A2DP_GetCodecType(p_scb->stream_config.cfg.codec_info) == in avdt_scb_hdl_setconfig_cmd()
581 A2DP_GetCodecType(p_cfg->codec_info)) { in avdt_scb_hdl_setconfig_cmd()
975 A2DP_UsesRtpHeader(is_content_protection, p_scb->curr_cfg.codec_info); in avdt_scb_hdl_write_req()
1179 A2DP_CodecInfoString(p_data->msg.config_cmd.p_cfg->codec_info).c_str()); in avdt_scb_snd_reconfig_req()
1201 memcpy(p_scb->curr_cfg.codec_info, p_scb->req_cfg.codec_info, in avdt_scb_snd_reconfig_rsp()
[all …]
Davdt_api.cc492 A2DP_CodecInfoString(p_cfg->codec_info).c_str()); in AVDT_OpenReq()
1258 A2DP_CodecName(scb.stream_config.cfg.codec_info)); in stack_debug_avdtp_api_dump()
1267 A2DP_CodecName(scb.curr_cfg.codec_info)); in stack_debug_avdtp_api_dump()
1269 A2DP_CodecName(scb.req_cfg.codec_info)); in stack_debug_avdtp_api_dump()
Davdt_msg.cc296 len = p_cfg->codec_info[0] + 1; in avdt_msg_bld_cfg()
299 memcpy(*p, p_cfg->codec_info, len); in avdt_msg_bld_cfg()
643 p_cfg->codec_info[0] = elem_len; in avdt_msg_prs_cfg()
644 memcpy(&p_cfg->codec_info[1], p, tmp); in avdt_msg_prs_cfg()
/system/bt/stack/include/
Davdt_api.h317 : codec_info{}, in AvdtpSepConfig()
329 memset(codec_info, 0, sizeof(codec_info)); in Reset()
340 uint8_t codec_info[AVDT_CODEC_SIZE]; /* Codec capabilities array */ variable
/system/bt/hci/include/
Dbt_vendor_lib.h374 uint8_t codec_info[10]; /* Codec capabilities array */ member
/system/bt/stack/test/
Dstack_a2dp_test.cc771 EXPECT_EQ(avdt_cfg.codec_info[i], codec_info_sbc_capability[i]); in TEST_F()
788 EXPECT_EQ(avdt_cfg.codec_info[i], codec_info_sbc_sink_capability[i]); in TEST_F()
799 EXPECT_EQ(avdt_cfg.codec_info[i], codec_info_aac_capability[i]); in TEST_F()
/system/bt/bta/include/
Dbta_av_api.h360 uint8_t* codec_info; member

12