Home
last modified time | relevance | path

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

1234

/hardware/qcom/audio/hal/audio_extn/
Dutils.c40 int acdb_dev_id, int sample_rate, in set_stream_app_type_mixer_ctrl() argument
67 app_type_cfg[len++] = sample_rate; in set_stream_app_type_mixer_ctrl()
74 __func__, stream_type, app_type, acdb_dev_id, sample_rate, in set_stream_app_type_mixer_ctrl()
124 int32_t sample_rate = DEFAULT_OUTPUT_SAMPLING_RATE; in audio_extn_utils_send_app_type_cfg_hfp() local
158 sample_rate= CODEC_BACKEND_DEFAULT_SAMPLE_RATE; in audio_extn_utils_send_app_type_cfg_hfp()
160 acdb_dev_id, sample_rate, in audio_extn_utils_send_app_type_cfg_hfp()
170 acdb_dev_id, sample_rate, in audio_extn_utils_send_app_type_cfg_hfp()
188 acdb_dev_id, sample_rate, PCM_CAPTURE, in audio_extn_utils_send_app_type_cfg_hfp()
198 acdb_dev_id, sample_rate, in audio_extn_utils_send_app_type_cfg_hfp()
214 int *sample_rate) in derive_capture_app_type_cfg() argument
[all …]
Daudio_extn.h79 #define audio_extn_usb_is_config_supported(bit_width, sample_rate, ch, pb) (false) argument
96 unsigned int *sample_rate,
111 uint32_t *sample_rate,
159 #define audio_extn_a2dp_get_sample_rate(sample_rate) (0) argument
172 void audio_extn_a2dp_get_sample_rate(int *sample_rate);
Da2dp.c353 uint32_t sample_rate; member
388 uint32_t sample_rate; member
396 uint32_t sample_rate; member
1042 sbc_dsp_cfg.sample_rate = sbc_bt_cfg->sampling_rate; in configure_sbc_enc_format()
1065 __func__, sbc_dsp_cfg.sample_rate, sbc_dsp_cfg.channel_mode); in configure_sbc_enc_format()
1096 aptx_dsp_cfg.custom_cfg.sample_rate = aptx_bt_cfg->default_cfg->sampling_rate; in configure_aptx_enc_format()
1099 aptx_dsp_cfg.custom_cfg.sample_rate = aptx_bt_cfg->dual_mono_cfg->sampling_rate; in configure_aptx_enc_format()
1132 channels:%d", __func__, aptx_dsp_cfg.custom_cfg.sample_rate, in configure_aptx_enc_format()
1138 aptx_dsp_cfg.custom_cfg.sample_rate, in configure_aptx_enc_format()
1170 aptx_dsp_cfg.sample_rate = aptx_bt_cfg->sampling_rate; in configure_aptx_hd_enc_format()
[all …]
/hardware/libhardware/modules/audio/
Daudio_hw.c51 uint32_t sample_rate; member
60 uint32_t sample_rate; member
70 ALOGV("out_get_sample_rate: %u", out->sample_rate); in out_get_sample_rate()
71 return out->sample_rate; in out_get_sample_rate()
79 out->sample_rate = rate; in out_set_sample_rate()
221 ALOGV("in_get_sample_rate: %u", in->sample_rate); in in_get_sample_rate()
222 return in->sample_rate; in in_get_sample_rate()
230 in->sample_rate = rate; in in_set_sample_rate()
346 uint32_t sample_rate, in samples_per_milliseconds() argument
349 return milliseconds * sample_rate * channel_count / 1000; in samples_per_milliseconds()
[all …]
/hardware/libhardware/modules/audio_remote_submix/
Daudio_hw.cpp212 static bool sample_rate_supported(const uint32_t sample_rate) in sample_rate_supported() argument
219 SUBMIX_VALUE_IN_SET(sample_rate, supported_sample_rates, &return_value); in sample_rate_supported()
225 static uint32_t get_supported_sample_rate(uint32_t sample_rate) in get_supported_sample_rate() argument
227 return sample_rate_supported(sample_rate) ? sample_rate : DEFAULT_SAMPLE_RATE_HZ; in get_supported_sample_rate()
337 if (input_config->sample_rate != output_config->sample_rate && in audio_config_compare()
340 if (input_config->sample_rate != output_config->sample_rate) { in audio_config_compare()
343 input_config->sample_rate, output_config->sample_rate); in audio_config_compare()
379 rsxadev->routes[route_idx].config.input_sample_rate = config->sample_rate; in audio_config_compare()
394 rsxadev->routes[route_idx].config.output_sample_rate = config->sample_rate; in audio_config_compare()
417 const NBAIO_Format format = Format_from_SR_C(config->sample_rate, pipe_channel_count, in audio_config_compare()
[all …]
/hardware/qcom/msm8994/kernel-headers/linux/
Dmsm_audio_aac.h71 unsigned short sample_rate; member
76 uint32_t sample_rate; member
Dmsm_audio_calibration.h184 int32_t sample_rate; member
191 int32_t sample_rate; member
205 int32_t sample_rate; member
212 int32_t sample_rate; member
230 uint32_t sample_rate; member
/hardware/qcom/msm8996/kernel-headers/linux/
Dmsm_audio_aac.h71 unsigned short sample_rate; member
76 uint32_t sample_rate; member
Dmsm_audio_calibration.h191 int32_t sample_rate; member
199 int32_t sample_rate; member
212 int32_t sample_rate; member
220 int32_t sample_rate; member
237 uint32_t sample_rate; member
/hardware/qcom/msm8x84/kernel-headers/linux/
Dmsm_audio_aac.h71 unsigned short sample_rate; member
76 uint32_t sample_rate; member
/hardware/qcom/msm8994/original-kernel-headers/linux/
Dmsm_audio_aac.h66 unsigned short sample_rate; member
71 uint32_t sample_rate; member
Dmsm_audio_calibration.h198 int32_t sample_rate; member
206 int32_t sample_rate; member
221 int32_t sample_rate; member
229 int32_t sample_rate; member
248 uint32_t sample_rate; member
/hardware/qcom/msm8996/original-kernel-headers/linux/
Dmsm_audio_aac.h66 unsigned short sample_rate; member
71 uint32_t sample_rate; member
Dmsm_audio_calibration.h206 int32_t sample_rate; member
214 int32_t sample_rate; member
229 int32_t sample_rate; member
237 int32_t sample_rate; member
256 uint32_t sample_rate; member
/hardware/qcom/msm8998/original-kernel-headers/linux/
Dmsm_audio_aac.h66 unsigned short sample_rate; member
71 uint32_t sample_rate; member
Dmsm_audio_calibration.h209 int32_t sample_rate; member
217 int32_t sample_rate; member
232 int32_t sample_rate; member
240 int32_t sample_rate; member
259 uint32_t sample_rate; member
/hardware/qcom/msm8x84/original-kernel-headers/linux/
Dmsm_audio_aac.h66 unsigned short sample_rate; member
71 uint32_t sample_rate; member
/hardware/qcom/msm8998/kernel-headers/linux/
Dmsm_audio_aac.h71 unsigned short sample_rate; member
76 uint32_t sample_rate; member
Dmsm_audio_calibration.h194 int32_t sample_rate; member
201 int32_t sample_rate; member
215 int32_t sample_rate; member
222 int32_t sample_rate; member
240 uint32_t sample_rate; member
/hardware/qcom/audio/hal/
Daudio_hw.c2638 static int check_input_parameters(uint32_t sample_rate, in check_input_parameters() argument
2657 switch (sample_rate) { in check_input_parameters()
2670 ALOGE("%s: unsupported (%d) samplerate passed ", __func__, sample_rate); in check_input_parameters()
2715 static void register_sample_rate(uint32_t sample_rate, in register_sample_rate() argument
2717 ALOGE_IF(!register_uint(sample_rate, supported_sample_rates, MAX_SUPPORTED_SAMPLE_RATES), in register_sample_rate()
2718 "%s: stream can not declare supporting its sample rate %x", __func__, sample_rate); in register_sample_rate()
2722 uint32_t sample_rate, in get_stream_buffer_size() argument
2729 size = (sample_rate * duration_ms) / 1000; in get_stream_buffer_size()
2750 return out->sample_rate; in out_get_sample_rate()
3688 compress_get_tstamp(out->compr, &frames, &out->sample_rate); in out_get_render_position()
[all …]
/hardware/qcom/audio/hal/msm8974/
Dplatform.c1556 pdata->current_backend_cfg[i].sample_rate = CODEC_BACKEND_DEFAULT_SAMPLE_RATE; in platform_backend_config_init()
2406 int app_type, int sample_rate) in platform_send_audio_calibration_v2() argument
2450 app_type, sample_rate, i); in platform_send_audio_calibration_v2()
4122 const unsigned int sample_rate = backend_cfg->sample_rate; in platform_set_backend_cfg() local
4130 sample_rate, channels, backend_idx, in platform_set_backend_cfg()
4169 … (sample_rate != my_data->current_backend_cfg[backend_idx].sample_rate))) { in platform_set_backend_cfg()
4173 switch (sample_rate) { in platform_set_backend_cfg()
4230 my_data->current_backend_cfg[backend_idx].sample_rate = sample_rate; in platform_set_backend_cfg()
4324 unsigned int sample_rate; in platform_check_capture_backend_cfg() local
4329 sample_rate = backend_cfg->sample_rate; in platform_check_capture_backend_cfg()
[all …]
/hardware/libhardware/modules/usbaudio/
Daudio_hal.c572 if (config->sample_rate == 0) { in adev_open_output_stream()
573 proxy_config.rate = config->sample_rate = profile_get_default_sample_rate(&out->profile); in adev_open_output_stream()
574 } else if (profile_is_sample_rate_valid(&out->profile, config->sample_rate)) { in adev_open_output_stream()
575 proxy_config.rate = config->sample_rate; in adev_open_output_stream()
577 proxy_config.rate = config->sample_rate = profile_get_default_sample_rate(&out->profile); in adev_open_output_stream()
583 out->adev->device_sample_rate = config->sample_rate; in adev_open_output_stream()
955 config->sample_rate, config->channel_mask, config->format); in adev_open_input_stream()
1031 int request_config_rate = config->sample_rate; in adev_open_input_stream()
1032 if (config->sample_rate == 0) { in adev_open_input_stream()
1033 config->sample_rate = profile_get_default_sample_rate(&in->profile); in adev_open_input_stream()
[all …]
/hardware/interfaces/bluetooth/audio/2.0/vts/functional/
DVtsHalBluetoothAudioV2_0TargetTest.cpp349 for (auto sample_rate : a2dp_sample_rates) { in TEST_P() local
350 pcm_parameters.sampleRate = sample_rate; in TEST_P()
436 for (auto sample_rate : sample_rates) { in GetSbcCodecSpecificSupportedList() local
442 sbc_data = {.sampleRate = sample_rate, in GetSbcCodecSpecificSupportedList()
492 for (auto sample_rate : sample_rates) { in GetAacCodecSpecificSupportedList() local
497 .sampleRate = sample_rate, in GetAacCodecSpecificSupportedList()
536 for (auto sample_rate : sample_rates) { in GetLdacCodecSpecificSupportedList() local
540 ldac_data = {.sampleRate = sample_rate, in GetLdacCodecSpecificSupportedList()
577 for (auto sample_rate : sample_rates) { in GetAptxCodecSpecificSupportedList() local
580 aptx_data = {.sampleRate = sample_rate, in GetAptxCodecSpecificSupportedList()
[all …]
/hardware/qcom/msm8x09/original-kernel-headers/linux/
Dmsm_audio_calibration.h206 int32_t sample_rate; member
214 int32_t sample_rate; member
229 int32_t sample_rate; member
237 int32_t sample_rate; member
256 uint32_t sample_rate; member
/hardware/qcom/msm8x09/kernel-headers/linux/
Dmsm_audio_calibration.h191 int32_t sample_rate; member
199 int32_t sample_rate; member
212 int32_t sample_rate; member
220 int32_t sample_rate; member
237 uint32_t sample_rate; member

1234