/system/bt/stack/a2dp/ |
D | a2dp_vendor_ldac.cc | 48 btav_a2dp_codec_bits_per_sample_t bits_per_sample; member 434 switch (ldac_cie.bits_per_sample) { in A2DP_VendorGetTrackBitsPerSampleLdac() 660 result->bits_per_sample = config_cie.bits_per_sample; in build_codec_config() 694 codec_local_capability_.bits_per_sample = in A2dpCodecConfigLdacSource() 695 a2dp_ldac_source_caps.bits_per_sample; in A2dpCodecConfigLdacSource() 831 btav_a2dp_codec_bits_per_sample_t bits_per_sample, tA2DP_LDAC_CIE* p_result, in select_best_bits_per_sample() argument 833 if (bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32) { in select_best_bits_per_sample() 834 p_codec_config->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32; in select_best_bits_per_sample() 835 p_result->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32; in select_best_bits_per_sample() 838 if (bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24) { in select_best_bits_per_sample() [all …]
|
D | a2dp_aac.cc | 50 btav_a2dp_codec_bits_per_sample_t bits_per_sample; member 740 result->bits_per_sample = config_cie.bits_per_sample; in build_codec_config() 766 codec_local_capability_.bits_per_sample = in A2dpCodecConfigAacSource() 767 a2dp_aac_source_caps.bits_per_sample; in A2dpCodecConfigAacSource() 878 btav_a2dp_codec_bits_per_sample_t bits_per_sample, tA2DP_AAC_CIE* p_result, in select_best_bits_per_sample() argument 880 if (bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32) { in select_best_bits_per_sample() 881 p_codec_config->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32; in select_best_bits_per_sample() 882 p_result->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32; in select_best_bits_per_sample() 885 if (bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24) { in select_best_bits_per_sample() 886 p_codec_config->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24; in select_best_bits_per_sample() [all …]
|
D | a2dp_vendor_aptx.cc | 48 btav_a2dp_codec_bits_per_sample_t bits_per_sample; member 294 tA2DP_BITS_PER_SAMPLE bits_per_sample = CodecConfig->getAudioBitsPerSample(); in A2DP_VendorGetBitRateAptx() local 296 return (samplerate * bits_per_sample * 2) / 4; in A2DP_VendorGetBitRateAptx() 455 codec_local_capability_.bits_per_sample = in A2dpCodecConfigAptx() 456 a2dp_aptx_source_caps.bits_per_sample; in A2dpCodecConfigAptx() 545 p_codec_config->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16; in select_best_bits_per_sample() 557 switch (p_codec_audio_config->bits_per_sample) { in select_audio_bits_per_sample() 559 p_codec_config->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16; in select_audio_bits_per_sample() 746 codec_config_.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE; in setCodecConfig() 747 switch (codec_user_config_.bits_per_sample) { in setCodecConfig() [all …]
|
D | a2dp_vendor_aptx_hd.cc | 50 btav_a2dp_codec_bits_per_sample_t bits_per_sample; member 308 tA2DP_BITS_PER_SAMPLE bits_per_sample = CodecConfig->getAudioBitsPerSample(); in A2DP_VendorGetBitRateAptxHd() local 310 return (samplerate * bits_per_sample * 2) / 4; in A2DP_VendorGetBitRateAptxHd() 473 codec_local_capability_.bits_per_sample = in A2dpCodecConfigAptxHd() 474 a2dp_aptx_hd_source_caps.bits_per_sample; in A2dpCodecConfigAptxHd() 563 p_codec_config->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24; in select_best_bits_per_sample() 575 switch (p_codec_audio_config->bits_per_sample) { in select_audio_bits_per_sample() 577 p_codec_config->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24; in select_audio_bits_per_sample() 764 codec_config_.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE; in setCodecConfig() 765 switch (codec_user_config_.bits_per_sample) { in setCodecConfig() [all …]
|
D | a2dp_sbc.cc | 53 btav_a2dp_codec_bits_per_sample_t bits_per_sample; member 859 result->bits_per_sample = config_cie.bits_per_sample; in build_codec_config() 881 codec_local_capability_.bits_per_sample = in A2dpCodecConfigSbcSource() 882 a2dp_sbc_source_caps.bits_per_sample; in A2dpCodecConfigSbcSource() 977 p_codec_config->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16; in select_best_bits_per_sample() 989 switch (p_codec_audio_config->bits_per_sample) { in select_audio_bits_per_sample() 991 p_codec_config->bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16; in select_audio_bits_per_sample() 1220 codec_config_.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE; in setCodecConfig() 1221 switch (codec_user_config_.bits_per_sample) { in setCodecConfig() 1223 codec_capability_.bits_per_sample = codec_user_config_.bits_per_sample; in setCodecConfig() [all …]
|
D | a2dp_aac_encoder.cc | 51 uint8_t bits_per_sample; member 215 p_feeding_params->bits_per_sample = in a2dp_aac_encoder_update() 220 p_feeding_params->bits_per_sample, p_feeding_params->channel_count); in a2dp_aac_encoder_update() 469 a2dp_aac_encoder_cb.feeding_params.bits_per_sample / 8 * in a2dp_aac_feeding_reset() 514 a2dp_aac_encoder_cb.feeding_params.bits_per_sample / 8; in a2dp_aac_get_num_frame_iteration() 548 p_feeding_params->bits_per_sample / 8; in a2dp_aac_encode_frames() 556 int in_buf_element_sizes[1] = {p_feeding_params->bits_per_sample / 8}; in a2dp_aac_encode_frames() 569 int out_buf_element_sizes[1] = {p_feeding_params->bits_per_sample / 8}; in a2dp_aac_encode_frames() 633 p_feeding_params->bits_per_sample / 8; in a2dp_aac_encode_frames() 670 a2dp_aac_encoder_cb.feeding_params.bits_per_sample / 8; in a2dp_aac_read_feeding()
|
D | a2dp_vendor_ldac_encoder.cc | 120 uint8_t bits_per_sample; member 380 p_feeding_params->bits_per_sample = in a2dp_vendor_ldac_encoder_update() 386 p_feeding_params->bits_per_sample, p_feeding_params->channel_count); in a2dp_vendor_ldac_encoder_update() 472 a2dp_ldac_encoder_cb.feeding_params.bits_per_sample >> 3; in a2dp_vendor_ldac_encoder_update() 525 a2dp_ldac_encoder_cb.feeding_params.bits_per_sample / 8 * in a2dp_vendor_ldac_feeding_reset() 583 a2dp_ldac_encoder_cb.feeding_params.bits_per_sample / 8; in a2dp_ldac_get_num_frame_iteration() 687 a2dp_ldac_encoder_cb.feeding_params.bits_per_sample / 8; in a2dp_ldac_encode_frames() 722 a2dp_ldac_encoder_cb.feeding_params.bits_per_sample / 8; in a2dp_ldac_read_feeding()
|
/system/bt/audio_a2dp_hw/test/ |
D | audio_a2dp_hw_test.cc | 119 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()
|
/system/bt/audio_hearing_aid_hw/test/ |
D | audio_hearing_aid_hw_test.cc | 119 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()
|
/system/bt/audio_hal_interface/ |
D | client_interface_unittest.cc | 207 for (auto bits_per_sample : kBitsPerSamples) { in TEST_F() local 208 pcm_config.bitsPerSample = bits_per_sample; in TEST_F() 238 for (auto bits_per_sample : kBitsPerSamples) { in TEST_F() local 257 .bitsPerSample = bits_per_sample, in TEST_F() 290 for (auto bits_per_sample : kBitsPerSamples) { in TEST_F() local 304 .bitsPerSample = bits_per_sample}; in TEST_F() 332 for (auto bits_per_sample : kBitsPerSamples) { in TEST_F() local 346 .bitsPerSample = bits_per_sample}; in TEST_F() 370 for (auto bits_per_sample : kBitsPerSamples) { in TEST_F() local 379 .bitsPerSample = bits_per_sample}; in TEST_F() [all …]
|
/system/bt/service/common/bluetooth/ |
D | a2dp_codec_config.cc | 24 int sample_rate, int bits_per_sample, in A2dpCodecConfig() argument 32 bits_per_sample_(bits_per_sample), in A2dpCodecConfig()
|
D | a2dp_codec_config.h | 29 int bits_per_sample, int channel_mode, 37 int bits_per_sample() const { return bits_per_sample_; } in bits_per_sample() function
|
/system/bt/btif/src/ |
D | btif_a2dp_control.cc | 203 codec_config.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE; in btif_a2dp_recv_ctrl_data() 206 codec_capability.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE; in btif_a2dp_recv_ctrl_data() 221 reinterpret_cast<const uint8_t*>(&codec_config.bits_per_sample), in btif_a2dp_recv_ctrl_data() 232 reinterpret_cast<const uint8_t*>(&codec_capability.bits_per_sample), in btif_a2dp_recv_ctrl_data() 244 codec_config.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE; in btif_a2dp_recv_ctrl_data() 258 reinterpret_cast<uint8_t*>(&codec_config.bits_per_sample), in btif_a2dp_recv_ctrl_data() 277 __func__, codec_config.sample_rate, codec_config.bits_per_sample, in btif_a2dp_recv_ctrl_data()
|
D | btif_avrcp_audio_track_linux.cc | 19 void* BtifAvrcpAudioTrackCreate(int trackFreq, int bits_per_sample, in BtifAvrcpAudioTrackCreate() argument
|
D | btif_a2dp_sink.cc | 116 tA2DP_BITS_PER_SAMPLE bits_per_sample; member in BtifA2dpSinkControlBlock 338 return btif_a2dp_sink_cb.bits_per_sample; in btif_a2dp_sink_get_bits_per_sample() 560 int bits_per_sample = A2DP_GetTrackBitsPerSample(p_buf->codec_info); in btif_a2dp_sink_decoder_update_event() local 561 if (bits_per_sample == -1) { in btif_a2dp_sink_decoder_update_event() 576 btif_a2dp_sink_cb.bits_per_sample = bits_per_sample; in btif_a2dp_sink_decoder_update_event() 598 BtifAvrcpAudioTrackCreate(sample_rate, bits_per_sample, channel_type); in btif_a2dp_sink_decoder_update_event()
|
/system/bt/include/hardware/ |
D | bt_av.h | 126 btav_a2dp_codec_bits_per_sample_t bits_per_sample; member 196 (bits_per_sample == BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE), in ToString() 199 (bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16), in ToString() 202 (bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24), in ToString() 205 (bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32), in ToString()
|
/system/bt/embdrv/g722/ |
D | g722_decode.cc | 183 s->bits_per_sample = 6; in g722_decode_init() 185 s->bits_per_sample = 7; in g722_decode_init() 187 s->bits_per_sample = 8; in g722_decode_init() 289 if (s->in_bits < s->bits_per_sample) in g722_decode() 294 code = s->in_buffer & ((1 << s->bits_per_sample) - 1); in g722_decode() 295 s->in_buffer >>= s->bits_per_sample; in g722_decode() 296 s->in_bits -= s->bits_per_sample; in g722_decode()
|
D | g722_enc_dec.h | 94 int bits_per_sample; member 117 int bits_per_sample; member
|
/system/bt/bta/hearing_aid/ |
D | hearing_aid_audio_source.cc | 206 codec_config.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16; in hearing_aid_recv_ctrl_data() 207 codec_capability.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16; in hearing_aid_recv_ctrl_data() 218 reinterpret_cast<const uint8_t*>(&codec_config.bits_per_sample), in hearing_aid_recv_ctrl_data() 229 reinterpret_cast<const uint8_t*>(&codec_capability.bits_per_sample), in hearing_aid_recv_ctrl_data() 242 codec_config.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE; in hearing_aid_recv_ctrl_data() 255 reinterpret_cast<uint8_t*>(&codec_config.bits_per_sample), in hearing_aid_recv_ctrl_data() 273 << "bits_per_sample=" << codec_config.bits_per_sample in hearing_aid_recv_ctrl_data()
|
/system/bt/audio_hearing_aid_hw/src/ |
D | audio_hearing_aid_hw.cc | 522 if (ha_ctrl_receive(common, &codec_config->bits_per_sample, in ha_read_output_audio_config() 536 if (ha_ctrl_receive(common, &codec_capability->bits_per_sample, in ha_read_output_audio_config() 578 switch (codec_config->bits_per_sample) { in ha_read_output_audio_config() 590 ERROR("Invalid bits per sample: 0x%x", codec_config->bits_per_sample); in ha_read_output_audio_config() 620 codec_config->sample_rate, codec_config->bits_per_sample, in ha_read_output_audio_config() 632 codec_config->bits_per_sample, codec_config->channel_mode); in ha_read_output_audio_config() 637 codec_capability->sample_rate, codec_capability->bits_per_sample, in ha_read_output_audio_config() 652 codec_config.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE; in ha_write_output_audio_config() 687 codec_config.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16; in ha_write_output_audio_config() 690 codec_config.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24; in ha_write_output_audio_config() [all …]
|
/system/bt/embdrv/sbc/encoder/include/ |
D | sbc_if.h | 33 int SBC_init(int pcm_sample_freq, int channels, int bits_per_sample);
|
/system/bt/audio_a2dp_hw/src/ |
D | audio_a2dp_hw.cc | 541 if (a2dp_ctrl_receive(common, &codec_config->bits_per_sample, in a2dp_read_output_audio_config() 555 if (a2dp_ctrl_receive(common, &codec_capability->bits_per_sample, in a2dp_read_output_audio_config() 591 switch (codec_config->bits_per_sample) { in a2dp_read_output_audio_config() 603 ERROR("Invalid bits per sample: 0x%x", codec_config->bits_per_sample); in a2dp_read_output_audio_config() 633 codec_config->sample_rate, codec_config->bits_per_sample, in a2dp_read_output_audio_config() 645 codec_config->bits_per_sample, codec_config->channel_mode); in a2dp_read_output_audio_config() 650 codec_capability->sample_rate, codec_capability->bits_per_sample, in a2dp_read_output_audio_config() 665 codec_config.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE; in a2dp_write_output_audio_config() 694 codec_config.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16; in a2dp_write_output_audio_config() 697 codec_config.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24; in a2dp_write_output_audio_config() [all …]
|
/system/bt/btif/include/ |
D | btif_avrcp_audio_track.h | 38 void* BtifAvrcpAudioTrackCreate(int trackFreq, int bits_per_sample,
|
/system/bt/service/ |
D | a2dp_source.cc | 58 .bits_per_sample = static_cast<btav_a2dp_codec_bits_per_sample_t>( in CodecConfigToFluoride() 59 config.bits_per_sample()), in CodecConfigToFluoride() 83 config.sample_rate, config.bits_per_sample, in FluorideCodecToCodec()
|
/system/extras/sound/ |
D | playwav.c | 119 uint16_t bits_per_sample; member 168 hdr.num_channels, hdr.sample_rate, hdr.bits_per_sample, in wav_play() 182 if (hdr.bits_per_sample != 16) { in wav_play() 213 hdr.bits_per_sample = 16; in wav_rec()
|