Home
last modified time | relevance | path

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

12

/system/bt/stack/a2dp/
Da2dp_vendor_ldac.cc48 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 …]
Da2dp_aac.cc50 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 …]
Da2dp_vendor_aptx.cc48 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 …]
Da2dp_vendor_aptx_hd.cc50 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 …]
Da2dp_sbc.cc53 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 …]
Da2dp_aac_encoder.cc51 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()
Da2dp_vendor_ldac_encoder.cc120 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/
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()
/system/bt/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()
/system/bt/audio_hal_interface/
Dclient_interface_unittest.cc207 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/
Da2dp_codec_config.cc24 int sample_rate, int bits_per_sample, in A2dpCodecConfig() argument
32 bits_per_sample_(bits_per_sample), in A2dpCodecConfig()
Da2dp_codec_config.h29 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/
Dbtif_a2dp_control.cc203 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()
Dbtif_avrcp_audio_track_linux.cc19 void* BtifAvrcpAudioTrackCreate(int trackFreq, int bits_per_sample, in BtifAvrcpAudioTrackCreate() argument
Dbtif_a2dp_sink.cc116 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/
Dbt_av.h126 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/
Dg722_decode.cc183 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()
Dg722_enc_dec.h94 int bits_per_sample; member
117 int bits_per_sample; member
/system/bt/bta/hearing_aid/
Dhearing_aid_audio_source.cc206 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/
Daudio_hearing_aid_hw.cc522 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/
Dsbc_if.h33 int SBC_init(int pcm_sample_freq, int channels, int bits_per_sample);
/system/bt/audio_a2dp_hw/src/
Daudio_a2dp_hw.cc541 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/
Dbtif_avrcp_audio_track.h38 void* BtifAvrcpAudioTrackCreate(int trackFreq, int bits_per_sample,
/system/bt/service/
Da2dp_source.cc58 .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/
Dplaywav.c119 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()

12