/system/bt/stack/a2dp/ |
D | a2dp_vendor_ldac.cc | 640 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in build_codec_config() 642 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in build_codec_config() 644 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_88200; in build_codec_config() 646 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_96000; in build_codec_config() 648 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_176400; in build_codec_config() 650 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_192000; in build_codec_config() 669 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in A2dpCodecConfigLdacSource() 672 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in A2dpCodecConfigLdacSource() 675 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_88200; in A2dpCodecConfigLdacSource() 678 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_96000; in A2dpCodecConfigLdacSource() [all …]
|
D | a2dp_aac.cc | 755 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in build_codec_config() 757 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in build_codec_config() 759 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_88200; in build_codec_config() 761 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_96000; in build_codec_config() 779 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in A2dpCodecConfigAacSource() 782 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in A2dpCodecConfigAacSource() 785 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_88200; in A2dpCodecConfigAacSource() 788 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_96000; in A2dpCodecConfigAacSource() 826 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_96000; in select_best_sample_rate() 831 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_88200; in select_best_sample_rate() [all …]
|
D | a2dp_vendor_aptx_hd.cc | 461 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in A2dpCodecConfigAptxHd() 464 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in A2dpCodecConfigAptxHd() 502 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in select_best_sample_rate() 507 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in select_best_sample_rate() 522 switch (p_codec_audio_config->sample_rate) { in select_audio_sample_rate() 526 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in select_audio_sample_rate() 533 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in select_audio_sample_rate() 676 codec_config_.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_NONE; in setCodecConfig() 677 switch (codec_user_config_.sample_rate) { in setCodecConfig() 681 codec_capability_.sample_rate = codec_user_config_.sample_rate; in setCodecConfig() [all …]
|
D | a2dp_vendor_aptx.cc | 443 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in A2dpCodecConfigAptx() 446 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in A2dpCodecConfigAptx() 484 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in select_best_sample_rate() 489 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in select_best_sample_rate() 504 switch (p_codec_audio_config->sample_rate) { in select_audio_sample_rate() 508 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in select_audio_sample_rate() 515 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in select_audio_sample_rate() 658 codec_config_.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_NONE; in setCodecConfig() 659 switch (codec_user_config_.sample_rate) { in setCodecConfig() 663 codec_capability_.sample_rate = codec_user_config_.sample_rate; in setCodecConfig() [all …]
|
D | a2dp_sbc.cc | 844 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in build_codec_config() 846 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in build_codec_config() 865 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in A2dpCodecConfigSbcSource() 868 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in A2dpCodecConfigSbcSource() 911 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in select_best_sample_rate() 916 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in select_best_sample_rate() 931 switch (p_codec_audio_config->sample_rate) { in select_audio_sample_rate() 935 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in select_audio_sample_rate() 942 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in select_audio_sample_rate() 1129 codec_config_.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_NONE; in setCodecConfig() [all …]
|
D | a2dp_vendor_ldac_decoder.cc | 69 int32_t sample_rate, 88 uint32_t sample_rate; member 253 int32_t sample_rate; in a2dp_vendor_ldac_decoder_configure() local 263 sample_rate = A2DP_VendorGetTrackSampleRateLdac(p_codec_info); in a2dp_vendor_ldac_decoder_configure() 268 __func__, sample_rate, bits_per_sample, channel_mode); in a2dp_vendor_ldac_decoder_configure() 271 ldac_BCO_configure_func(a2dp_ldac_decoder_cb.ldac_handle_bco, sample_rate, in a2dp_vendor_ldac_decoder_configure()
|
D | a2dp_aac_encoder.cc | 50 uint32_t sample_rate; member 217 p_feeding_params->sample_rate = A2DP_GetTrackSampleRateAac(p_codec_info); in a2dp_aac_encoder_update() 222 p_feeding_params->sample_rate, p_feeding_params->bits_per_sample, 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() 255 p_encoder_params->sample_rate, p_encoder_params->channel_mode); in a2dp_aac_encoder_update() 488 auto sample_rate = a2dp_aac_encoder_cb.feeding_params.sample_rate; in a2dp_aac_feeding_reset() local 489 if (frame_length == 0 || sample_rate == 0) { in a2dp_aac_feeding_reset() 499 a2dp_aac_encoder_interval_ms = frame_length * 1000 / sample_rate; in a2dp_aac_feeding_reset() 509 (a2dp_aac_encoder_cb.feeding_params.sample_rate * in a2dp_aac_feeding_reset()
|
D | a2dp_vendor_ldac_encoder.cc | 118 uint32_t sample_rate; member 377 p_feeding_params->sample_rate = in a2dp_vendor_ldac_encoder_update() 384 p_feeding_params->sample_rate, p_feeding_params->bits_per_sample, in a2dp_vendor_ldac_encoder_update() 389 p_encoder_params->sample_rate = in a2dp_vendor_ldac_encoder_update() 390 a2dp_ldac_encoder_cb.feeding_params.sample_rate; in a2dp_vendor_ldac_encoder_update() 485 __func__, p_encoder_params->sample_rate, p_encoder_params->channel_mode, in a2dp_vendor_ldac_encoder_update() 495 p_encoder_params->sample_rate); in a2dp_vendor_ldac_encoder_update() 520 (a2dp_ldac_encoder_cb.feeding_params.sample_rate * in a2dp_vendor_ldac_feeding_reset() 613 switch (p_encoder_params->sample_rate) { in a2dp_ldac_encode_frames()
|
/system/bt/include/hardware/ |
D | bt_av.h | 125 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/ |
D | hearing_aid_audio_source.cc | 37 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/ |
D | audio_hearing_aid_hw.cc | 460 tHA_SAMPLE_RATE sample_rate; in ha_read_input_audio_config() local 468 if (ha_ctrl_receive(common, &sample_rate, sizeof(tHA_SAMPLE_RATE)) < 0) in ha_read_input_audio_config() 474 switch (sample_rate) { in ha_read_input_audio_config() 479 common->cfg.rate = sample_rate; in ha_read_input_audio_config() 482 ERROR("Invalid sample rate: %" PRIu32, sample_rate); in ha_read_input_audio_config() 517 if (ha_ctrl_receive(common, &codec_config->sample_rate, in ha_read_output_audio_config() 531 if (ha_ctrl_receive(common, &codec_capability->sample_rate, in ha_read_output_audio_config() 545 switch (codec_config->sample_rate) { in ha_read_output_audio_config() 572 ERROR("Invalid sample rate: 0x%x", codec_config->sample_rate); in ha_read_output_audio_config() 619 codec_config->sample_rate, codec_config->bits_per_sample, in ha_read_output_audio_config() [all …]
|
/system/bt/btif/src/ |
D | btif_a2dp_control.cc | 187 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()
|
D | btif_a2dp_sink.cc | 90 sample_rate(0), in BtifA2dpSinkControlBlock() 108 sample_rate = 0; in Reset() 117 tA2DP_SAMPLE_RATE sample_rate; member in BtifA2dpSinkControlBlock 338 return btif_a2dp_sink_cb.sample_rate; in btif_a2dp_sink_get_sample_rate() 592 int sample_rate = A2DP_GetTrackSampleRate(p_buf->codec_info); in btif_a2dp_sink_decoder_update_event() local 593 if (sample_rate == -1) { in btif_a2dp_sink_decoder_update_event() 612 btif_a2dp_sink_cb.sample_rate = sample_rate; in btif_a2dp_sink_decoder_update_event() 638 BtifAvrcpAudioTrackCreate(sample_rate, bits_per_sample, channel_count); in btif_a2dp_sink_decoder_update_event()
|
/system/extras/sound/ |
D | playwav.c | 28 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/ |
D | audio_a2dp_hw.cc | 480 tA2DP_SAMPLE_RATE sample_rate; in a2dp_read_input_audio_config() local 488 if (a2dp_ctrl_receive(common, &sample_rate, sizeof(tA2DP_SAMPLE_RATE)) < 0) in a2dp_read_input_audio_config() 495 switch (sample_rate) { in a2dp_read_input_audio_config() 498 common->cfg.rate = sample_rate; in a2dp_read_input_audio_config() 501 ERROR("Invalid sample rate: %" PRIu32, sample_rate); in a2dp_read_input_audio_config() 536 if (a2dp_ctrl_receive(common, &codec_config->sample_rate, in a2dp_read_output_audio_config() 550 if (a2dp_ctrl_receive(common, &codec_capability->sample_rate, in a2dp_read_output_audio_config() 564 switch (codec_config->sample_rate) { in a2dp_read_output_audio_config() 585 ERROR("Invalid sample rate: 0x%x", codec_config->sample_rate); in a2dp_read_output_audio_config() 632 codec_config->sample_rate, codec_config->bits_per_sample, in a2dp_read_output_audio_config() [all …]
|
/system/bt/audio_hearing_aid_hw/test/ |
D | audio_hearing_aid_hw_test.cc | 116 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_a2dp_hw/test/ |
D | audio_a2dp_hw_test.cc | 116 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/ |
D | a2dp_codec_config.cc | 24 int sample_rate, int bits_per_sample, in A2dpCodecConfig() argument 31 sample_rate_(sample_rate), in A2dpCodecConfig()
|
D | a2dp_codec_config.h | 28 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/ |
D | alsa_device_profile.h | 90 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/ |
D | stream_apis.cc | 44 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/ |
D | a2dp_sink_unittest.cc | 52 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/ |
D | a2dp_sink.h | 43 uint32_t sample_rate, uint8_t channel_count) = 0; 77 const RawAddress& bd_addr, uint32_t sample_rate,
|
/system/bt/service/common/android/bluetooth/ |
D | IBluetoothA2dpSinkCallback.aidl | 23 void OnAudioConfig(String device_address, int sample_rate, int channel_count); in OnAudioConfig() argument
|
/system/media/alsa_utils/ |
D | alsa_device_profile.c | 110 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()
|