Home
last modified time | relevance | path

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

/system/bt/stack/a2dp/
Da2dp_vendor_ldac.cc491 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in build_codec_config()
493 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in build_codec_config()
495 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_88200; in build_codec_config()
497 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_96000; in build_codec_config()
499 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_176400; in build_codec_config()
501 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_192000; in build_codec_config()
519 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in A2dpCodecConfigLdac()
522 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in A2dpCodecConfigLdac()
525 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_88200; in A2dpCodecConfigLdac()
528 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_96000; in A2dpCodecConfigLdac()
[all …]
Da2dp_aac.cc656 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in build_codec_config()
658 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in build_codec_config()
660 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_88200; in build_codec_config()
662 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_96000; in build_codec_config()
678 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in A2dpCodecConfigAac()
681 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in A2dpCodecConfigAac()
684 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_88200; in A2dpCodecConfigAac()
687 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_96000; in A2dpCodecConfigAac()
724 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_96000; in select_best_sample_rate()
729 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_88200; in select_best_sample_rate()
[all …]
Da2dp_vendor_aptx.cc413 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in A2dpCodecConfigAptx()
416 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in A2dpCodecConfigAptx()
453 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in select_best_sample_rate()
458 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in select_best_sample_rate()
473 switch (p_codec_audio_config->sample_rate) { in select_audio_sample_rate()
477 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in select_audio_sample_rate()
484 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in select_audio_sample_rate()
625 codec_config_.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_NONE; in setCodecConfig()
626 switch (codec_user_config_.sample_rate) { in setCodecConfig()
630 codec_capability_.sample_rate = codec_user_config_.sample_rate; in setCodecConfig()
[all …]
Da2dp_vendor_aptx_hd.cc430 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in A2dpCodecConfigAptxHd()
433 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in A2dpCodecConfigAptxHd()
470 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in select_best_sample_rate()
475 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in select_best_sample_rate()
490 switch (p_codec_audio_config->sample_rate) { in select_audio_sample_rate()
494 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in select_audio_sample_rate()
501 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in select_audio_sample_rate()
642 codec_config_.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_NONE; in setCodecConfig()
643 switch (codec_user_config_.sample_rate) { in setCodecConfig()
647 codec_capability_.sample_rate = codec_user_config_.sample_rate; in setCodecConfig()
[all …]
Da2dp_sbc.cc1008 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in build_codec_config()
1010 result->sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in build_codec_config()
1028 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in A2dpCodecConfigSbc()
1031 codec_local_capability_.sample_rate |= BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in A2dpCodecConfigSbc()
1073 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in select_best_sample_rate()
1078 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in select_best_sample_rate()
1093 switch (p_codec_audio_config->sample_rate) { in select_audio_sample_rate()
1097 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_44100; in select_audio_sample_rate()
1104 p_codec_config->sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_48000; in select_audio_sample_rate()
1277 codec_config_.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_NONE; in setCodecConfig()
[all …]
Da2dp_vendor_ldac_encoder.cc117 uint32_t sample_rate; member
375 p_feeding_params->sample_rate = in a2dp_vendor_ldac_encoder_update()
382 __func__, p_feeding_params->sample_rate, in a2dp_vendor_ldac_encoder_update()
386 p_encoder_params->sample_rate = in a2dp_vendor_ldac_encoder_update()
387 a2dp_ldac_encoder_cb.feeding_params.sample_rate; in a2dp_vendor_ldac_encoder_update()
483 __func__, p_encoder_params->sample_rate, in a2dp_vendor_ldac_encoder_update()
494 p_encoder_params->sample_rate); in a2dp_vendor_ldac_encoder_update()
515 (a2dp_ldac_encoder_cb.feeding_params.sample_rate * in a2dp_vendor_ldac_feeding_reset()
609 switch (p_encoder_params->sample_rate) { in a2dp_ldac_encode_frames()
Da2dp_aac_encoder.cc54 uint32_t sample_rate; member
218 p_feeding_params->sample_rate = A2DP_GetTrackSampleRateAac(p_codec_info); in a2dp_aac_encoder_update()
223 __func__, p_feeding_params->sample_rate, in a2dp_aac_encoder_update()
227 p_encoder_params->sample_rate = in a2dp_aac_encoder_update()
228 a2dp_aac_encoder_cb.feeding_params.sample_rate; in a2dp_aac_encoder_update()
257 p_encoder_params->sample_rate, p_encoder_params->channel_mode); in a2dp_aac_encoder_update()
471 (a2dp_aac_encoder_cb.feeding_params.sample_rate * in a2dp_aac_feeding_reset()
Da2dp_vendor_aptx_encoder.cc257 p_feeding_params->sample_rate = in a2dp_vendor_aptx_encoder_update()
264 __func__, p_feeding_params->sample_rate, in a2dp_vendor_aptx_encoder_update()
286 if (a2dp_aptx_encoder_cb.feeding_params.sample_rate == 48000) { in aptx_init_framing_params()
319 if (a2dp_aptx_encoder_cb.feeding_params.sample_rate == 48000) { in aptx_update_framing_params()
Da2dp_sbc_encoder.cc218 p_feeding_params->sample_rate = A2DP_GetTrackSampleRateSbc(p_codec_info); in a2dp_sbc_encoder_update()
223 __func__, p_feeding_params->sample_rate, in a2dp_sbc_encoder_update()
386 (a2dp_sbc_encoder_cb.feeding_params.sample_rate * in a2dp_sbc_feeding_reset()
631 if (sbc_sampling == a2dp_sbc_encoder_cb.feeding_params.sample_rate) { in a2dp_sbc_read_feeding()
657 switch (a2dp_sbc_encoder_cb.feeding_params.sample_rate) { in a2dp_sbc_read_feeding()
673 src_samples *= a2dp_sbc_encoder_cb.feeding_params.sample_rate; in a2dp_sbc_read_feeding()
710 a2dp_sbc_init_up_sample(a2dp_sbc_encoder_cb.feeding_params.sample_rate, in a2dp_sbc_read_feeding()
Da2dp_vendor_aptx_hd_encoder.cc258 p_feeding_params->sample_rate = in a2dp_vendor_aptx_hd_encoder_update()
265 __func__, p_feeding_params->sample_rate, in a2dp_vendor_aptx_hd_encoder_update()
309 if (a2dp_aptx_hd_encoder_cb.feeding_params.sample_rate == 48000) { in aptx_hd_update_framing_params()
Da2dp_codec_config.cc212 (codec_config.sample_rate == BTAV_A2DP_CODEC_SAMPLE_RATE_NONE) && in isCodecConfigEmpty()
256 if ((saved_codec_config.sample_rate != new_codec_config.sample_rate) || in setCodecUserConfig()
289 (codec_config.sample_rate != BTAV_A2DP_CODEC_SAMPLE_RATE_NONE) && in codecConfigIsValid()
302 result.append(codecSampleRate2Str(codec_config.sample_rate)); in codecConfig2Str()
558 codec_user_config.sample_rate, codec_user_config.bits_per_sample, in setCodecUserConfig()
783 if ((codec_capability.sample_rate == BTAV_A2DP_CODEC_SAMPLE_RATE_NONE) || in getCodecConfigAndCapabilities()
/system/bt/btif/src/
Dbtif_a2dp_control.cc168 tA2DP_SAMPLE_RATE sample_rate = btif_a2dp_sink_get_sample_rate(); in btif_a2dp_recv_ctrl_data() local
172 UIPC_Send(UIPC_CH_ID_AV_CTRL, 0, reinterpret_cast<uint8_t*>(&sample_rate), in btif_a2dp_recv_ctrl_data()
182 codec_config.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_NONE; in btif_a2dp_recv_ctrl_data()
185 codec_capability.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_NONE; in btif_a2dp_recv_ctrl_data()
198 reinterpret_cast<const uint8_t*>(&codec_config.sample_rate), in btif_a2dp_recv_ctrl_data()
208 reinterpret_cast<const uint8_t*>(&codec_capability.sample_rate), in btif_a2dp_recv_ctrl_data()
221 codec_config.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_NONE; in btif_a2dp_recv_ctrl_data()
228 reinterpret_cast<uint8_t*>(&codec_config.sample_rate), in btif_a2dp_recv_ctrl_data()
255 __func__, codec_config.sample_rate, codec_config.bits_per_sample, in btif_a2dp_recv_ctrl_data()
Dbtif_a2dp_sink.cc89 tA2DP_SAMPLE_RATE sample_rate; member
210 return btif_a2dp_sink_cb.sample_rate; in btif_a2dp_sink_get_sample_rate()
457 int sample_rate = A2DP_GetTrackSampleRate(p_buf->codec_info); in btif_a2dp_sink_decoder_update_event() local
458 if (sample_rate == -1) { in btif_a2dp_sink_decoder_update_event()
472 btif_a2dp_sink_cb.sample_rate = sample_rate; in btif_a2dp_sink_decoder_update_event()
488 BtifAvrcpAudioTrackCreate(sample_rate, channel_type); in btif_a2dp_sink_decoder_update_event()
Dbtif_av.cc91 int sample_rate; member
426 __func__, req.sample_rate, req.channel_count); in btif_av_state_idle_handler()
429 req.sample_rate, req.channel_count); in btif_av_state_idle_handler()
605 __func__, req.sample_rate, req.channel_count); in btif_av_state_opening_handler()
609 req.sample_rate, req.channel_count); in btif_av_state_opening_handler()
1243 config_req.sample_rate = in bte_av_sink_media_callback()
1245 if (config_req.sample_rate == -1) { in bte_av_sink_media_callback()
1441 __func__, cp.codec_type, cp.codec_priority, cp.sample_rate, in codec_config_src()
/system/bt/audio_a2dp_hw/src/
Daudio_a2dp_hw.cc464 tA2DP_SAMPLE_RATE sample_rate; in a2dp_read_input_audio_config() local
472 if (a2dp_ctrl_receive(common, &sample_rate, sizeof(tA2DP_SAMPLE_RATE)) < 0) in a2dp_read_input_audio_config()
479 switch (sample_rate) { in a2dp_read_input_audio_config()
482 common->cfg.rate = sample_rate; in a2dp_read_input_audio_config()
485 ERROR("Invalid sample rate: %" PRIu32, sample_rate); in a2dp_read_input_audio_config()
520 if (a2dp_ctrl_receive(common, &codec_config->sample_rate, in a2dp_read_output_audio_config()
534 if (a2dp_ctrl_receive(common, &codec_capability->sample_rate, in a2dp_read_output_audio_config()
548 switch (codec_config->sample_rate) { in a2dp_read_output_audio_config()
569 ERROR("Invalid sample rate: 0x%x", codec_config->sample_rate); in a2dp_read_output_audio_config()
610 codec_config->sample_rate, codec_config->bits_per_sample, in a2dp_read_output_audio_config()
[all …]
/system/extras/sound/
Dplaywav.c28 uint32_t sample_rate; member
60 config.sample_rate = rate; in pcm_play()
115 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/test/
Daudio_a2dp_hw_test.cc112 uint32_t sample_rate = codec_sample_rate2value(codec_sample_rate); in TEST_F() local
113 EXPECT_TRUE(sample_rate != 0); in TEST_F()
125 (time_period_ms * AUDIO_STREAM_OUTPUT_BUFFER_PERIODS * sample_rate * in TEST_F()
/system/media/alsa_utils/include/
Dalsa_device_profile.h89 unsigned profile_calc_min_period_size(alsa_device_profile* profile, unsigned sample_rate);
90 unsigned int profile_get_period_size(alsa_device_profile* profile, unsigned sample_rate);
/system/media/alsa_utils/
Dalsa_device_profile.c110 unsigned profile_calc_min_period_size(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(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()
/system/media/audio/include/system/
Daudio.h232 uint32_t sample_rate; // sample rate in Hz member
272 uint32_t sample_rate; member
303 uint32_t sample_rate; member
414 unsigned int sample_rate; /* sampling rate in Hz */ member
/system/media/audio_utils/include/audio_utils/
DPowerLog.h128 power_log_t *power_log_create(uint32_t sample_rate,
/system/media/audio_utils/
DPowerLog.cpp233 power_log_t *power_log_create(uint32_t sample_rate, in power_log_create() argument
241 PowerLog(sample_rate, channel_count, format, entries, frames_per_entry)); in power_log_create()
/system/bt/stack/include/
Da2dp_codec_api.h440 tA2DP_SAMPLE_RATE sample_rate; // 44100, 48000, etc member