Home
last modified time | relevance | path

Searched refs:bits_per_sample (Results 1 – 25 of 83) sorted by relevance

1234

/packages/modules/Bluetooth/system/stack/a2dp/
Da2dp_vendor_opus.cc46 btav_a2dp_codec_bits_per_sample_t bits_per_sample; member
225 p_ie->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16; in A2DP_ParseInfoOpus()
457 switch (Opus_cie.bits_per_sample) { in A2DP_VendorGetTrackBitsPerSampleOpus()
682 result->bits_per_sample = config_cie.bits_per_sample; in build_codec_config()
705 codec_local_capability_.bits_per_sample = in A2dpCodecConfigOpusSource()
706 a2dp_opus_source_caps.bits_per_sample; in A2dpCodecConfigOpusSource()
779 btav_a2dp_codec_bits_per_sample_t bits_per_sample, tA2DP_OPUS_CIE* p_result, in select_best_bits_per_sample() argument
781 if (bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32) { in select_best_bits_per_sample()
782 p_codec_config->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32; in select_best_bits_per_sample()
783 p_result->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32; in select_best_bits_per_sample()
[all …]
Da2dp_vendor_ldac.cc48 btav_a2dp_codec_bits_per_sample_t bits_per_sample; member
430 switch (ldac_cie.bits_per_sample) { in A2DP_VendorGetTrackBitsPerSampleLdac()
651 result->bits_per_sample = config_cie.bits_per_sample; in build_codec_config()
685 codec_local_capability_.bits_per_sample = in A2dpCodecConfigLdacSource()
686 a2dp_ldac_source_caps.bits_per_sample; in A2dpCodecConfigLdacSource()
822 btav_a2dp_codec_bits_per_sample_t bits_per_sample, tA2DP_LDAC_CIE* p_result, in select_best_bits_per_sample() argument
824 if (bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32) { in select_best_bits_per_sample()
825 p_codec_config->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32; in select_best_bits_per_sample()
826 p_result->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32; in select_best_bits_per_sample()
829 if (bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24) { in select_best_bits_per_sample()
[all …]
Da2dp_aac.cc52 btav_a2dp_codec_bits_per_sample_t bits_per_sample; member
757 result->bits_per_sample = config_cie.bits_per_sample; in build_codec_config()
784 codec_local_capability_.bits_per_sample = in A2dpCodecConfigAacSource()
785 a2dp_aac_source_caps.bits_per_sample; in A2dpCodecConfigAacSource()
896 btav_a2dp_codec_bits_per_sample_t bits_per_sample, tA2DP_AAC_CIE* p_result, in select_best_bits_per_sample() argument
898 if (bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32) { in select_best_bits_per_sample()
899 p_codec_config->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32; in select_best_bits_per_sample()
900 p_result->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32; in select_best_bits_per_sample()
903 if (bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24) { in select_best_bits_per_sample()
904 p_codec_config->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24; in select_best_bits_per_sample()
[all …]
Da2dp_vendor_aptx_hd.cc51 btav_a2dp_codec_bits_per_sample_t bits_per_sample; member
305 tA2DP_BITS_PER_SAMPLE bits_per_sample = CodecConfig->getAudioBitsPerSample(); in A2DP_VendorGetBitRateAptxHd() local
307 return (samplerate * bits_per_sample * 2) / 4; in A2DP_VendorGetBitRateAptxHd()
461 codec_local_capability_.bits_per_sample = in A2dpCodecConfigAptxHd()
462 a2dp_aptx_hd_source_caps.bits_per_sample; in A2dpCodecConfigAptxHd()
551 p_codec_config->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24; in select_best_bits_per_sample()
563 switch (p_codec_audio_config->bits_per_sample) { in select_audio_bits_per_sample()
565 p_codec_config->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24; in select_audio_bits_per_sample()
749 codec_config_.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE; in setCodecConfig()
750 switch (codec_user_config_.bits_per_sample) { in setCodecConfig()
[all …]
Da2dp_vendor_aptx.cc48 btav_a2dp_codec_bits_per_sample_t bits_per_sample; member
287 tA2DP_BITS_PER_SAMPLE bits_per_sample = CodecConfig->getAudioBitsPerSample(); in A2DP_VendorGetBitRateAptx() local
289 return (samplerate * bits_per_sample * 2) / 4; in A2DP_VendorGetBitRateAptx()
438 codec_local_capability_.bits_per_sample = in A2dpCodecConfigAptx()
439 a2dp_aptx_source_caps.bits_per_sample; in A2dpCodecConfigAptx()
528 p_codec_config->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16; in select_best_bits_per_sample()
540 switch (p_codec_audio_config->bits_per_sample) { in select_audio_bits_per_sample()
542 p_codec_config->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16; in select_audio_bits_per_sample()
729 codec_config_.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE; in setCodecConfig()
730 switch (codec_user_config_.bits_per_sample) { in setCodecConfig()
[all …]
Da2dp_aac_encoder_linux.cc173 tA2DP_BITS_PER_SAMPLE bits_per_sample = in a2dp_aac_encoder_init() local
177 sample_rate, channel_count, bit_rate, bits_per_sample, mtu); in a2dp_aac_encoder_init()
196 .bits_per_sample = bits_per_sample, in a2dp_aac_encoder_init()
201 .bytes_per_tick = (sample_rate * bits_per_sample / 8 * in a2dp_aac_encoder_init()
231 a2dp_aac_encoder_cb.feeding_params.bits_per_sample / in a2dp_aac_feeding_reset()
279 a2dp_aac_encoder_cb.feeding_params.bits_per_sample / 8; in a2dp_aac_get_num_frame_iteration()
307 a2dp_aac_encoder_cb.feeding_params.bits_per_sample / in a2dp_aac_encode_frames()
322 a2dp_aac_encoder_cb.feeding_params.bits_per_sample / 8; in a2dp_aac_encode_frames()
364 a2dp_aac_encoder_cb.feeding_params.bits_per_sample / 8; in a2dp_aac_read_feeding()
Da2dp_sbc.cc53 btav_a2dp_codec_bits_per_sample_t bits_per_sample; member
850 result->bits_per_sample = config_cie.bits_per_sample; in build_codec_config()
872 codec_local_capability_.bits_per_sample = in A2dpCodecConfigSbcSource()
873 a2dp_sbc_source_caps.bits_per_sample; in A2dpCodecConfigSbcSource()
968 p_codec_config->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16; in select_best_bits_per_sample()
980 switch (p_codec_audio_config->bits_per_sample) { in select_audio_bits_per_sample()
982 p_codec_config->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16; in select_audio_bits_per_sample()
1210 codec_config_.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE; in setCodecConfig()
1211 switch (codec_user_config_.bits_per_sample) { in setCodecConfig()
1213 codec_capability_.bits_per_sample = codec_user_config_.bits_per_sample; in setCodecConfig()
[all …]
Da2dp_vendor_ldac_decoder.cc69 int32_t bits_per_sample,
85 uint8_t bits_per_sample; member
248 int32_t bits_per_sample; in a2dp_vendor_ldac_decoder_configure() local
258 bits_per_sample = A2DP_VendorGetTrackBitsPerSampleLdac(p_codec_info); in a2dp_vendor_ldac_decoder_configure()
262 sample_rate, bits_per_sample, channel_mode); in a2dp_vendor_ldac_decoder_configure()
266 bits_per_sample, channel_mode); in a2dp_vendor_ldac_decoder_configure()
Da2dp_aac_encoder.cc53 uint8_t bits_per_sample; member
187 p_feeding_params->bits_per_sample = in a2dp_aac_encoder_update()
191 p_feeding_params->sample_rate, p_feeding_params->bits_per_sample, in a2dp_aac_encoder_update()
444 a2dp_aac_encoder_cb.feeding_params.bits_per_sample / 8 * in a2dp_aac_feeding_reset()
494 a2dp_aac_encoder_cb.feeding_params.bits_per_sample / 8; in a2dp_aac_get_num_frame_iteration()
526 p_feeding_params->bits_per_sample / 8; in a2dp_aac_encode_frames()
536 int in_buf_element_sizes[1] = {p_feeding_params->bits_per_sample / 8}; in a2dp_aac_encode_frames()
549 int out_buf_element_sizes[1] = {p_feeding_params->bits_per_sample / 8}; in a2dp_aac_encode_frames()
615 p_feeding_params->bits_per_sample / 8; in a2dp_aac_encode_frames()
656 a2dp_aac_encoder_cb.feeding_params.bits_per_sample / 8; in a2dp_aac_read_feeding()
Da2dp_vendor_opus_encoder.cc41 uint8_t bits_per_sample; member
218 p_feeding_params->bits_per_sample = in a2dp_vendor_opus_encoder_update()
223 p_feeding_params->sample_rate, p_feeding_params->bits_per_sample, in a2dp_vendor_opus_encoder_update()
265 a2dp_opus_encoder_cb.feeding_params.bits_per_sample >> 3; in a2dp_vendor_opus_encoder_update()
293 a2dp_opus_encoder_cb.feeding_params.bits_per_sample / 8 * in a2dp_vendor_opus_feeding_reset()
340 a2dp_opus_encoder_cb.feeding_params.bits_per_sample / 8; in a2dp_opus_get_num_frame_iteration()
421 a2dp_opus_encoder_cb.feeding_params.bits_per_sample / 8; in a2dp_opus_encode_frames()
458 a2dp_opus_encoder_cb.feeding_params.bits_per_sample / 8; in a2dp_opus_read_feeding()
Da2dp_vendor_ldac_encoder.cc62 uint8_t bits_per_sample; member
206 p_feeding_params->bits_per_sample = in a2dp_vendor_ldac_encoder_update()
211 p_feeding_params->sample_rate, p_feeding_params->bits_per_sample, in a2dp_vendor_ldac_encoder_update()
281 a2dp_ldac_encoder_cb.feeding_params.bits_per_sample >> 3; in a2dp_vendor_ldac_encoder_update()
337 a2dp_ldac_encoder_cb.feeding_params.bits_per_sample / 8 * in a2dp_vendor_ldac_feeding_reset()
399 a2dp_ldac_encoder_cb.feeding_params.bits_per_sample / 8; in a2dp_ldac_get_num_frame_iteration()
500 a2dp_ldac_encoder_cb.feeding_params.bits_per_sample / 8; in a2dp_ldac_encode_frames()
540 a2dp_ldac_encoder_cb.feeding_params.bits_per_sample / 8; in a2dp_ldac_read_feeding()
/packages/modules/Bluetooth/system/bta/le_audio/audio_hal_client/
Daudio_hal_client.h68 uint8_t bits_per_sample = 0; member
81 (bits_per_sample == other.bits_per_sample) &&
88 (bits_per_sample == other.bits_per_sample) &&
94 (bits_per_sample == 0) || (data_interval_us == 0); in IsInvalid()
/packages/modules/Bluetooth/system/audio_a2dp_hw/test/
Daudio_a2dp_hw_test.cc119 uint32_t bits_per_sample = in TEST_F() local
121 EXPECT_TRUE(bits_per_sample != 0); in TEST_F()
130 number_of_channels * (bits_per_sample / 8)) / in TEST_F()
135 number_of_channels * bits_per_sample) / in TEST_F()
/packages/modules/Bluetooth/system/audio_hearing_aid_hw/test/
Daudio_hearing_aid_hw_test.cc119 uint32_t bits_per_sample = in TEST_F() local
121 EXPECT_TRUE(bits_per_sample != 0); in TEST_F()
130 number_of_channels * (bits_per_sample / 8)) / in TEST_F()
135 number_of_channels * bits_per_sample) / in TEST_F()
/packages/modules/Bluetooth/system/btif/src/
Dbtif_a2dp_control.cc165 codec_config.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE; in btif_a2dp_control_on_get_output_audio_config()
168 codec_capability.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE; in btif_a2dp_control_on_get_output_audio_config()
183 reinterpret_cast<const uint8_t*>(&codec_config.bits_per_sample), in btif_a2dp_control_on_get_output_audio_config()
193 reinterpret_cast<const uint8_t*>(&codec_capability.bits_per_sample), in btif_a2dp_control_on_get_output_audio_config()
203 codec_config.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE; in btif_a2dp_control_on_set_output_audio_config()
216 reinterpret_cast<uint8_t*>(&codec_config.bits_per_sample), in btif_a2dp_control_on_set_output_audio_config()
232 codec_config.sample_rate, codec_config.bits_per_sample, in btif_a2dp_control_on_set_output_audio_config()
Dbtif_a2dp_sink.cc121 tA2DP_BITS_PER_SAMPLE bits_per_sample; member in BtifA2dpSinkControlBlock
354 return btif_a2dp_sink_cb.bits_per_sample; in btif_a2dp_sink_get_bits_per_sample()
613 int bits_per_sample = A2DP_GetTrackBitsPerSample(p_buf->codec_info); in btif_a2dp_sink_decoder_update_event() local
614 if (bits_per_sample == -1) { in btif_a2dp_sink_decoder_update_event()
629 btif_a2dp_sink_cb.bits_per_sample = bits_per_sample; in btif_a2dp_sink_decoder_update_event()
658 BtifAvrcpAudioTrackCreate(sample_rate, bits_per_sample, channel_count); in btif_a2dp_sink_decoder_update_event()
/packages/modules/Bluetooth/system/embdrv/g722/
Dg722_decode.cc182 s->bits_per_sample = 6; in g722_decode_init()
184 s->bits_per_sample = 7; in g722_decode_init()
186 s->bits_per_sample = 8; in g722_decode_init()
288 if (s->in_bits < s->bits_per_sample) in g722_decode()
293 code = s->in_buffer & ((1 << s->bits_per_sample) - 1); in g722_decode()
294 s->in_buffer >>= s->bits_per_sample; in g722_decode()
295 s->in_bits -= s->bits_per_sample; in g722_decode()
/packages/modules/Bluetooth/system/bta/hearing_aid/
Dhearing_aid_audio_source.cc248 codec_config.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16; in hearing_aid_recv_ctrl_data()
249 codec_capability.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16; in hearing_aid_recv_ctrl_data()
260 reinterpret_cast<const uint8_t*>(&codec_config.bits_per_sample), in hearing_aid_recv_ctrl_data()
271 reinterpret_cast<const uint8_t*>(&codec_capability.bits_per_sample), in hearing_aid_recv_ctrl_data()
284 codec_config.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE; in hearing_aid_recv_ctrl_data()
297 reinterpret_cast<uint8_t*>(&codec_config.bits_per_sample), in hearing_aid_recv_ctrl_data()
315 codec_config.sample_rate, codec_config.bits_per_sample, in hearing_aid_recv_ctrl_data()
/packages/modules/Bluetooth/system/bta/le_audio/
Dcodec_interface.cc51 lc3_.pcm_format_ = (pcm_config_->bits_per_sample == 24) in InitEncoder()
84 lc3_.pcm_format_ = (pcm_config_->bits_per_sample == 24) in InitDecoder()
207 return lc3_.bits_to_bytes_per_sample(bt_codec_config_.bits_per_sample); in GetNumOfBytesPerSample()
233 static inline uint8_t bits_to_bytes_per_sample(uint8_t bits_per_sample) { in bits_to_bytes_per_sample()
235 if (bits_per_sample == 24) return 4; in bits_to_bytes_per_sample()
236 return bits_per_sample / 8; in bits_to_bytes_per_sample()
Dle_audio_utils.cc287 translateToBtLeAudioCodecConfigBitPerSample(uint8_t bits_per_sample) { in translateToBtLeAudioCodecConfigBitPerSample() argument
288 switch (bits_per_sample) { in translateToBtLeAudioCodecConfigBitPerSample()
340 out_config.bits_per_sample = translateToBtLeAudioCodecConfigBitPerSample(16); in fillStreamParamsToBtLeAudioCodecConfig()
383 .bits_per_sample = in fillRemotePacsCapabitiliesToBtLeAudioCodecConfig()
402 .bits_per_sample = in fillRemotePacsCapabitiliesToBtLeAudioCodecConfig()
471 if (group_config.bits_per_sample != 0 && in GetAudioSessionCodecConfigFromAudioSetConfiguration()
472 conf.codec.GetBitsPerSample() != group_config.bits_per_sample) { in GetAudioSessionCodecConfigFromAudioSetConfiguration()
479 group_config.bits_per_sample = conf.codec.GetBitsPerSample(); in GetAudioSessionCodecConfigFromAudioSetConfiguration()
/packages/modules/Bluetooth/system/audio_hearing_aid_hw/src/
Daudio_hearing_aid_hw.cc551 if (ha_ctrl_receive(common, &codec_config->bits_per_sample, in ha_read_output_audio_config()
565 if (ha_ctrl_receive(common, &codec_capability->bits_per_sample, in ha_read_output_audio_config()
607 switch (codec_config->bits_per_sample) { in ha_read_output_audio_config()
619 ERROR("Invalid bits per sample: 0x%x", codec_config->bits_per_sample); in ha_read_output_audio_config()
649 codec_config->sample_rate, codec_config->bits_per_sample, in ha_read_output_audio_config()
661 codec_config->bits_per_sample, codec_config->channel_mode); in ha_read_output_audio_config()
666 codec_capability->sample_rate, codec_capability->bits_per_sample, in ha_read_output_audio_config()
681 codec_config.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE; in ha_write_output_audio_config()
716 codec_config.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16; in ha_write_output_audio_config()
719 codec_config.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24; in ha_write_output_audio_config()
[all …]
/packages/modules/Bluetooth/system/audio_a2dp_hw/src/
Daudio_a2dp_hw.cc548 if (a2dp_ctrl_receive(common, &codec_config->bits_per_sample, in a2dp_read_output_audio_config()
562 if (a2dp_ctrl_receive(common, &codec_capability->bits_per_sample, in a2dp_read_output_audio_config()
598 switch (codec_config->bits_per_sample) { in a2dp_read_output_audio_config()
610 ERROR("Invalid bits per sample: 0x%x", codec_config->bits_per_sample); in a2dp_read_output_audio_config()
640 codec_config->sample_rate, codec_config->bits_per_sample, in a2dp_read_output_audio_config()
652 codec_config->bits_per_sample, codec_config->channel_mode); in a2dp_read_output_audio_config()
657 codec_capability->sample_rate, codec_capability->bits_per_sample, in a2dp_read_output_audio_config()
672 codec_config.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE; in a2dp_write_output_audio_config()
701 codec_config.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16; in a2dp_write_output_audio_config()
704 codec_config.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24; in a2dp_write_output_audio_config()
[all …]
/packages/modules/Bluetooth/system/include/hardware/
Dbt_av.h164 btav_a2dp_codec_bits_per_sample_t bits_per_sample; member
235 (bits_per_sample == BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE), in ToString()
238 (bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16), in ToString()
241 (bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24), in ToString()
244 (bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32), in ToString()
/packages/modules/Bluetooth/system/audio_hal_interface/
Dle_audio_software_host.cc116 .bits_per_sample = pcm_params.bits_per_sample, in GetHostPcmConfig()
157 .bits_per_sample = pcm_params.bits_per_sample, in GetPeerPcmConfig()
225 params.sample_rate, params.bits_per_sample, params.channels_count, in SetPcmParameters()
230 params.sample_rate, params.bits_per_sample, params.channels_count, in SetPcmParameters()
392 params.sample_rate, params.bits_per_sample, params.channels_count, in SetPcmParameters()
397 params.sample_rate, params.bits_per_sample, params.channels_count, in SetPcmParameters()
/packages/modules/Bluetooth/system/gd/rust/topshim/btav/
Dbtav_shim.cc188 .bits_per_sample = static_cast<uint8_t>(config.bits_per_sample), in to_rust_codec_config()
202 .bits_per_sample = static_cast<btav_a2dp_codec_bits_per_sample_t>(rconfig.bits_per_sample), in from_rust_codec_config()
309 .bits_per_sample = static_cast<btav_a2dp_codec_bits_per_sample_t>(rconfig.bits_per_sample), in set_audio_config()

1234