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.cc648 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in build_codec_config()
650 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in build_codec_config()
652 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_88200; in build_codec_config()
654 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_96000; in build_codec_config()
656 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_176400; in build_codec_config()
658 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_192000; in build_codec_config()
677 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in A2dpCodecConfigLdacSource()
680 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in A2dpCodecConfigLdacSource()
683 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_88200; in A2dpCodecConfigLdacSource()
686 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_96000; in A2dpCodecConfigLdacSource()
[all …]
Da2dp_aac.cc732 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in build_codec_config()
734 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in build_codec_config()
736 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_88200; in build_codec_config()
738 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_96000; in build_codec_config()
755 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in A2dpCodecConfigAacSource()
758 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in A2dpCodecConfigAacSource()
761 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_88200; in A2dpCodecConfigAacSource()
764 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_96000; in A2dpCodecConfigAacSource()
802 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_96000; in select_best_sample_rate()
807 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.cc855 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in build_codec_config()
857 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in build_codec_config()
876 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in A2dpCodecConfigSbcSource()
879 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in A2dpCodecConfigSbcSource()
922 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in select_best_sample_rate()
927 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in select_best_sample_rate()
942 switch (p_codec_audio_config->sample_rate) { in select_audio_sample_rate()
946 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in select_audio_sample_rate()
953 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in select_audio_sample_rate()
1140 codec_config_.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_NONE; in setCodecConfig()
[all …]
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()
196 if (sample_rate == 16000) { in hearing_aid_recv_ctrl_data()
197 codec_config.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_16000; in hearing_aid_recv_ctrl_data()
198 codec_capability.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_16000; in hearing_aid_recv_ctrl_data()
199 } else if (sample_rate == 24000) { in hearing_aid_recv_ctrl_data()
200 codec_config.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_24000; in hearing_aid_recv_ctrl_data()
201 codec_capability.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_24000; in hearing_aid_recv_ctrl_data()
203 LOG(FATAL) << "unsupported sample rate: " << sample_rate; in hearing_aid_recv_ctrl_data()
215 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.cc88 sample_rate(0), in BtifA2dpSinkControlBlock()
106 sample_rate = 0; in Reset()
115 tA2DP_SAMPLE_RATE sample_rate; member in BtifA2dpSinkControlBlock
333 return btif_a2dp_sink_cb.sample_rate; in btif_a2dp_sink_get_sample_rate()
555 int sample_rate = A2DP_GetTrackSampleRate(p_buf->codec_info); in btif_a2dp_sink_decoder_update_event() local
556 if (sample_rate == -1) { in btif_a2dp_sink_decoder_update_event()
575 btif_a2dp_sink_cb.sample_rate = sample_rate; in btif_a2dp_sink_decoder_update_event()
598 BtifAvrcpAudioTrackCreate(sample_rate, bits_per_sample, channel_type); 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_hal_interface/
Dclient_interface_unittest.cc205 for (auto sample_rate : kSampleRates) { in TEST_F() local
206 pcm_config.sampleRate = sample_rate; in TEST_F()
237 for (auto sample_rate : kSampleRates) { in TEST_F() local
250 .sampleRate = sample_rate, in TEST_F()
289 for (auto sample_rate : kSampleRates) { in TEST_F() local
301 .sampleRate = sample_rate, in TEST_F()
331 for (auto sample_rate : kSampleRates) { in TEST_F() local
341 .sampleRate = sample_rate, in TEST_F()
369 for (auto sample_rate : kSampleRates) { in TEST_F() local
377 AptxParameters aptx = {.sampleRate = sample_rate, in TEST_F()
[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 <<()
75 return audio_cfg.sample_rate; in out_get_sample_rate()
191 out->sample_rate_ = audio_cfg.sample_rate; in out_set_parameters()
279 if (audio_cfg.sample_rate == 16000) { in out_get_parameters()
282 if (audio_cfg.sample_rate == 24000) { in out_get_parameters()
285 if (audio_cfg.sample_rate == 44100) { in out_get_parameters()
288 if (audio_cfg.sample_rate == 48000) { in out_get_parameters()
291 if (audio_cfg.sample_rate == 88200) { in out_get_parameters()
294 if (audio_cfg.sample_rate == 96000) { in out_get_parameters()
297 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/bt/service/hal/
Dfake_bluetooth_av_interface.cc99 uint32_t sample_rate, in NotifyAudioConfig() argument
102 observer.AudioConfigCallback(this, bda, sample_rate, channel_count); in NotifyAudioConfig()
/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