Home
last modified time | relevance | path

Searched refs:sample_rate (Results 1 – 25 of 53) sorted by relevance

123

/system/bt/stack/a2dp/
Da2dp_vendor_ldac.cc649 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in build_codec_config()
651 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in build_codec_config()
653 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_88200; in build_codec_config()
655 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_96000; in build_codec_config()
657 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_176400; in build_codec_config()
659 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_192000; in build_codec_config()
678 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in A2dpCodecConfigLdacSource()
681 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in A2dpCodecConfigLdacSource()
684 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_88200; in A2dpCodecConfigLdacSource()
687 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_96000; in A2dpCodecConfigLdacSource()
[all …]
Da2dp_aac.cc768 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in build_codec_config()
770 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in build_codec_config()
772 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_88200; in build_codec_config()
774 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_96000; in build_codec_config()
792 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in A2dpCodecConfigAacSource()
795 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in A2dpCodecConfigAacSource()
798 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_88200; in A2dpCodecConfigAacSource()
801 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_96000; in A2dpCodecConfigAacSource()
839 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_96000; in select_best_sample_rate()
844 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_88200; in select_best_sample_rate()
[all …]
Da2dp_vendor_aptx.cc450 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in A2dpCodecConfigAptx()
453 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in A2dpCodecConfigAptx()
491 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in select_best_sample_rate()
496 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in select_best_sample_rate()
511 switch (p_codec_audio_config->sample_rate) { in select_audio_sample_rate()
515 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in select_audio_sample_rate()
522 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in select_audio_sample_rate()
665 codec_config_.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_NONE; in setCodecConfig()
666 switch (codec_user_config_.sample_rate) { in setCodecConfig()
670 codec_capability_.sample_rate = codec_user_config_.sample_rate; in setCodecConfig()
[all …]
Da2dp_vendor_aptx_hd.cc468 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in A2dpCodecConfigAptxHd()
471 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in A2dpCodecConfigAptxHd()
509 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in select_best_sample_rate()
514 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in select_best_sample_rate()
529 switch (p_codec_audio_config->sample_rate) { in select_audio_sample_rate()
533 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in select_audio_sample_rate()
540 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in select_audio_sample_rate()
683 codec_config_.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_NONE; in setCodecConfig()
684 switch (codec_user_config_.sample_rate) { in setCodecConfig()
688 codec_capability_.sample_rate = codec_user_config_.sample_rate; in setCodecConfig()
[all …]
Da2dp_sbc.cc859 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in build_codec_config()
861 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in build_codec_config()
880 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in A2dpCodecConfigSbcSource()
883 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in A2dpCodecConfigSbcSource()
926 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in select_best_sample_rate()
931 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in select_best_sample_rate()
946 switch (p_codec_audio_config->sample_rate) { in select_audio_sample_rate()
950 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in select_audio_sample_rate()
957 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in select_audio_sample_rate()
1144 codec_config_.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_NONE; in setCodecConfig()
[all …]
Da2dp_vendor_ldac_decoder.cc69 int32_t sample_rate,
88 uint32_t sample_rate; member
258 int32_t sample_rate; in a2dp_vendor_ldac_decoder_configure() local
268 sample_rate = A2DP_VendorGetTrackSampleRateLdac(p_codec_info); in a2dp_vendor_ldac_decoder_configure()
273 __func__, sample_rate, bits_per_sample, channel_mode); in a2dp_vendor_ldac_decoder_configure()
276 ldac_BCO_configure_func(a2dp_ldac_decoder_cb.ldac_handle_bco, sample_rate, in a2dp_vendor_ldac_decoder_configure()
Da2dp_aac_encoder.cc50 uint32_t sample_rate; member
217 p_feeding_params->sample_rate = A2DP_GetTrackSampleRateAac(p_codec_info); in a2dp_aac_encoder_update()
222 __func__, p_feeding_params->sample_rate, in a2dp_aac_encoder_update()
226 p_encoder_params->sample_rate = in a2dp_aac_encoder_update()
227 a2dp_aac_encoder_cb.feeding_params.sample_rate; in a2dp_aac_encoder_update()
256 p_encoder_params->sample_rate, p_encoder_params->channel_mode); in a2dp_aac_encoder_update()
491 auto sample_rate = a2dp_aac_encoder_cb.feeding_params.sample_rate; in a2dp_aac_feeding_reset() local
492 if (frame_length == 0 || sample_rate == 0) { in a2dp_aac_feeding_reset()
502 a2dp_aac_encoder_interval_ms = frame_length * 1000 / sample_rate; in a2dp_aac_feeding_reset()
512 (a2dp_aac_encoder_cb.feeding_params.sample_rate * in a2dp_aac_feeding_reset()
Da2dp_vendor_ldac_encoder.cc118 uint32_t sample_rate; member
378 p_feeding_params->sample_rate = in a2dp_vendor_ldac_encoder_update()
385 __func__, p_feeding_params->sample_rate, in a2dp_vendor_ldac_encoder_update()
390 p_encoder_params->sample_rate = in a2dp_vendor_ldac_encoder_update()
391 a2dp_ldac_encoder_cb.feeding_params.sample_rate; in a2dp_vendor_ldac_encoder_update()
487 __func__, p_encoder_params->sample_rate, in a2dp_vendor_ldac_encoder_update()
498 p_encoder_params->sample_rate); in a2dp_vendor_ldac_encoder_update()
524 (a2dp_ldac_encoder_cb.feeding_params.sample_rate * in a2dp_vendor_ldac_feeding_reset()
618 switch (p_encoder_params->sample_rate) { in a2dp_ldac_encode_frames()
/system/bt/include/hardware/
Dbt_av.h125 btav_a2dp_codec_sample_rate_t sample_rate; member
168 (sample_rate == BTAV_A2DP_CODEC_SAMPLE_RATE_NONE), "NONE"); in ToString()
170 (sample_rate & BTAV_A2DP_CODEC_SAMPLE_RATE_44100), in ToString()
173 (sample_rate & BTAV_A2DP_CODEC_SAMPLE_RATE_48000), in ToString()
176 (sample_rate & BTAV_A2DP_CODEC_SAMPLE_RATE_88200), in ToString()
179 (sample_rate & BTAV_A2DP_CODEC_SAMPLE_RATE_96000), in ToString()
182 (sample_rate & BTAV_A2DP_CODEC_SAMPLE_RATE_176400), in ToString()
185 (sample_rate & BTAV_A2DP_CODEC_SAMPLE_RATE_192000), in ToString()
188 (sample_rate & BTAV_A2DP_CODEC_SAMPLE_RATE_16000), in ToString()
191 (sample_rate & BTAV_A2DP_CODEC_SAMPLE_RATE_24000), in ToString()
[all …]
/system/bt/bta/hearing_aid/
Dhearing_aid_audio_source.cc37 int sample_rate = -1; variable
65 (num_channels * sample_rate * data_interval_ms * (bit_rate / 8)) / 1000; in send_audio_data()
199 if (sample_rate == 16000) { in hearing_aid_recv_ctrl_data()
200 codec_config.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_16000; in hearing_aid_recv_ctrl_data()
201 codec_capability.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_16000; in hearing_aid_recv_ctrl_data()
202 } else if (sample_rate == 24000) { in hearing_aid_recv_ctrl_data()
203 codec_config.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_24000; in hearing_aid_recv_ctrl_data()
204 codec_capability.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_24000; in hearing_aid_recv_ctrl_data()
206 LOG(FATAL) << "unsupported sample rate: " << sample_rate; in hearing_aid_recv_ctrl_data()
218 reinterpret_cast<const uint8_t*>(&codec_config.sample_rate), in hearing_aid_recv_ctrl_data()
[all …]
/system/bt/audio_hearing_aid_hw/src/
Daudio_hearing_aid_hw.cc461 tHA_SAMPLE_RATE sample_rate; in ha_read_input_audio_config() local
469 if (ha_ctrl_receive(common, &sample_rate, sizeof(tHA_SAMPLE_RATE)) < 0) in ha_read_input_audio_config()
475 switch (sample_rate) { in ha_read_input_audio_config()
480 common->cfg.rate = sample_rate; in ha_read_input_audio_config()
483 ERROR("Invalid sample rate: %" PRIu32, sample_rate); in ha_read_input_audio_config()
518 if (ha_ctrl_receive(common, &codec_config->sample_rate, in ha_read_output_audio_config()
532 if (ha_ctrl_receive(common, &codec_capability->sample_rate, in ha_read_output_audio_config()
546 switch (codec_config->sample_rate) { in ha_read_output_audio_config()
573 ERROR("Invalid sample rate: 0x%x", codec_config->sample_rate); in ha_read_output_audio_config()
620 codec_config->sample_rate, codec_config->bits_per_sample, in ha_read_output_audio_config()
[all …]
/system/bt/btif/src/
Dbtif_a2dp_control.cc187 tA2DP_SAMPLE_RATE sample_rate = btif_a2dp_sink_get_sample_rate(); in btif_a2dp_recv_ctrl_data() local
192 reinterpret_cast<uint8_t*>(&sample_rate), in btif_a2dp_recv_ctrl_data()
202 codec_config.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_NONE; in btif_a2dp_recv_ctrl_data()
205 codec_capability.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_NONE; in btif_a2dp_recv_ctrl_data()
218 reinterpret_cast<const uint8_t*>(&codec_config.sample_rate), in btif_a2dp_recv_ctrl_data()
228 reinterpret_cast<const uint8_t*>(&codec_capability.sample_rate), in btif_a2dp_recv_ctrl_data()
243 codec_config.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_NONE; in btif_a2dp_recv_ctrl_data()
250 reinterpret_cast<uint8_t*>(&codec_config.sample_rate), in btif_a2dp_recv_ctrl_data()
277 __func__, codec_config.sample_rate, codec_config.bits_per_sample, in btif_a2dp_recv_ctrl_data()
Dbtif_a2dp_sink.cc90 sample_rate(0), in BtifA2dpSinkControlBlock()
108 sample_rate = 0; in Reset()
117 tA2DP_SAMPLE_RATE sample_rate; member in BtifA2dpSinkControlBlock
339 return btif_a2dp_sink_cb.sample_rate; in btif_a2dp_sink_get_sample_rate()
593 int sample_rate = A2DP_GetTrackSampleRate(p_buf->codec_info); in btif_a2dp_sink_decoder_update_event() local
594 if (sample_rate == -1) { in btif_a2dp_sink_decoder_update_event()
613 btif_a2dp_sink_cb.sample_rate = sample_rate; in btif_a2dp_sink_decoder_update_event()
640 BtifAvrcpAudioTrackCreate(sample_rate, bits_per_sample, channel_count); in btif_a2dp_sink_decoder_update_event()
/system/extras/sound/
Dplaywav.c28 uint32_t sample_rate; member
62 config.sample_rate = rate; in pcm_play()
116 uint32_t sample_rate; member
168 hdr.num_channels, hdr.sample_rate, hdr.bits_per_sample, in wav_play()
187 play_file(hdr.sample_rate, hdr.num_channels, in wav_play()
210 hdr.sample_rate = rate; in wav_rec()
211 hdr.byte_rate = hdr.sample_rate * hdr.num_channels * 2; in wav_rec()
238 cfg.sample_rate = hdr.sample_rate; in wav_rec()
/system/bt/audio_a2dp_hw/src/
Daudio_a2dp_hw.cc481 tA2DP_SAMPLE_RATE sample_rate; in a2dp_read_input_audio_config() local
489 if (a2dp_ctrl_receive(common, &sample_rate, sizeof(tA2DP_SAMPLE_RATE)) < 0) in a2dp_read_input_audio_config()
496 switch (sample_rate) { in a2dp_read_input_audio_config()
499 common->cfg.rate = sample_rate; in a2dp_read_input_audio_config()
502 ERROR("Invalid sample rate: %" PRIu32, sample_rate); in a2dp_read_input_audio_config()
537 if (a2dp_ctrl_receive(common, &codec_config->sample_rate, in a2dp_read_output_audio_config()
551 if (a2dp_ctrl_receive(common, &codec_capability->sample_rate, in a2dp_read_output_audio_config()
565 switch (codec_config->sample_rate) { in a2dp_read_output_audio_config()
586 ERROR("Invalid sample rate: 0x%x", codec_config->sample_rate); in a2dp_read_output_audio_config()
633 codec_config->sample_rate, codec_config->bits_per_sample, in a2dp_read_output_audio_config()
[all …]
/system/bt/audio_a2dp_hw/test/
Daudio_a2dp_hw_test.cc116 uint32_t sample_rate = codec_sample_rate2value(codec_sample_rate); in TEST_F() local
117 EXPECT_TRUE(sample_rate != 0); in TEST_F()
129 (time_period_ms * AUDIO_STREAM_OUTPUT_BUFFER_PERIODS * sample_rate * in TEST_F()
/system/bt/audio_hearing_aid_hw/test/
Daudio_hearing_aid_hw_test.cc116 uint32_t sample_rate = codec_sample_rate2value(codec_sample_rate); in TEST_F() local
117 EXPECT_TRUE(sample_rate != 0); in TEST_F()
129 (time_period_ms * AUDIO_STREAM_OUTPUT_BUFFER_PERIODS * sample_rate * in TEST_F()
/system/bt/service/common/bluetooth/
Da2dp_codec_config.cc24 int sample_rate, int bits_per_sample, in A2dpCodecConfig() argument
31 sample_rate_(sample_rate), in A2dpCodecConfig()
Da2dp_codec_config.h28 A2dpCodecConfig(int codec_type, int codec_priority, int sample_rate,
36 int sample_rate() const { return sample_rate_; } in sample_rate() function
/system/media/alsa_utils/include/
Dalsa_device_profile.h90 unsigned profile_calc_min_period_size(const alsa_device_profile* profile, unsigned sample_rate);
91 unsigned int profile_get_period_size(const alsa_device_profile* profile, unsigned sample_rate);
/system/bt/audio_bluetooth_hw/
Dstream_apis.cc44 return os << "audio_config[sample_rate=" << config.sample_rate in operator <<()
157 return audio_cfg.sample_rate; in out_get_sample_rate()
273 out->sample_rate_ = audio_cfg.sample_rate; in out_set_parameters()
362 if (audio_cfg.sample_rate == 16000) { in out_get_parameters()
365 if (audio_cfg.sample_rate == 24000) { in out_get_parameters()
368 if (audio_cfg.sample_rate == 44100) { in out_get_parameters()
371 if (audio_cfg.sample_rate == 48000) { in out_get_parameters()
374 if (audio_cfg.sample_rate == 88200) { in out_get_parameters()
377 if (audio_cfg.sample_rate == 96000) { in out_get_parameters()
380 if (audio_cfg.sample_rate == 176400) { in out_get_parameters()
[all …]
/system/bt/service/test/
Da2dp_sink_unittest.cc52 uint32_t sample_rate = 0; member
69 void OnAudioConfig(const std::string& device_address, uint32_t sample_rate, in OnAudioConfig() argument
73 audio_config_.sample_rate = sample_rate; in OnAudioConfig()
264 EXPECT_EQ(kSampleRate, delegate.audio_config().sample_rate); in TEST_F()
/system/bt/service/
Da2dp_sink.h43 uint32_t sample_rate, uint8_t channel_count) = 0;
77 const RawAddress& bd_addr, uint32_t sample_rate,
/system/bt/service/common/android/bluetooth/
DIBluetoothA2dpSinkCallback.aidl23 void OnAudioConfig(String device_address, int sample_rate, int channel_count); in OnAudioConfig() argument
/system/media/alsa_utils/
Dalsa_device_profile.c110 unsigned profile_calc_min_period_size(const alsa_device_profile* profile, unsigned sample_rate) in profile_calc_min_period_size() argument
112 ALOGV("profile_calc_min_period_size(%p, rate:%d)", profile, sample_rate); in profile_calc_min_period_size()
117 unsigned num_sample_frames = ((uint64_t)sample_rate * period_us) / 1000000; in profile_calc_min_period_size()
126 unsigned int profile_get_period_size(const alsa_device_profile* profile, unsigned sample_rate) in profile_get_period_size() argument
128 unsigned int period_size = profile_calc_min_period_size(profile, sample_rate); in profile_get_period_size()
129 ALOGV("profile_get_period_size(rate:%d) = %d", sample_rate, period_size); in profile_get_period_size()

123