Home
last modified time | relevance | path

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

1234

/hardware/qcom/audio/msm8909/hal/audio_extn/
Dutils.c160 uint32_t sample_rate = 48000; in parse_sample_rate_names() local
168 sample_rate = (uint32_t)strtol(str, (char **)NULL, 10); in parse_sample_rate_names()
169 ALOGV("%s: sample_rate - %d", __func__, sample_rate); in parse_sample_rate_names()
170 if (0 != sample_rate) { in parse_sample_rate_names()
175 ss_info->sample_rate = sample_rate; in parse_sample_rate_names()
226 so_info->app_type_cfg.sample_rate = CODEC_BACKEND_DEFAULT_SAMPLE_RATE; in update_streams_output_cfg_list()
299 app_type_cfg[length++] = so_info->app_type_cfg.sample_rate; in send_app_type_cfg()
350 __func__, so_info->flags, so_info->app_type_cfg.sample_rate, in audio_extn_utils_dump_streams_output_cfg_list()
358 ALOGV("sample rate-%d", ss_info->sample_rate); in audio_extn_utils_dump_streams_output_cfg_list()
391 uint32_t sample_rate, uint32_t bit_width) in set_output_cfg() argument
[all …]
/hardware/libhardware/modules/vehicle/
Dvehicle.c56 float sample_rate; member
315 ALOGD("prop: %d rate: %f", sub->prop, sub->sample_rate); in print_subscribe_info()
424 static int vdev_subscribe(vehicle_hw_device_t* device, int32_t prop, float sample_rate, in vdev_subscribe() argument
426 ALOGD("vdev_subscribe 0x%x, %f", prop, sample_rate); in vdev_subscribe()
452 if ((config->change_mode == VEHICLE_PROP_CHANGE_MODE_ON_CHANGE) && (sample_rate != 0)) { in vdev_subscribe()
455 prop, sample_rate); in vdev_subscribe()
458 if ((config->max_sample_rate < sample_rate) || (config->min_sample_rate > sample_rate)) { in vdev_subscribe()
461 prop, sample_rate, config->min_sample_rate, config->max_sample_rate); in vdev_subscribe()
469 sub->sample_rate = sample_rate; in vdev_subscribe()
476 } else if (sub->sample_rate != sample_rate){ // sample rate changed in vdev_subscribe()
[all …]
/hardware/qcom/audio/msm8909/hal/voice_extn/
Dcompress_voip.c64 uint32_t sample_rate; member
90 .sample_rate = 0
290 voip_data.sample_rate = 0; in voip_stop_call()
496 voip_data.sample_rate); in voice_extn_compress_voip_get_parameters()
650 if (out->sample_rate == 16000) in voice_extn_compress_voip_open_output_stream()
657 voip_data.sample_rate = out->sample_rate; in voice_extn_compress_voip_open_output_stream()
685 int sample_rate; in voice_extn_compress_voip_open_input_stream() local
691 if ((voip_data.sample_rate != 0) && in voice_extn_compress_voip_open_input_stream()
692 (voip_data.sample_rate != in->config.rate)) { in voice_extn_compress_voip_open_input_stream()
696 voip_data.sample_rate = in->config.rate; in voice_extn_compress_voip_open_input_stream()
[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/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/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/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
Dmsm_audio_sbc.h29 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
Dmsm_audio_sbc.h41 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/audio/msm8909/hal/
Daudio_hw.c919 usecase->stream.out->sample_rate, in select_devices()
1559 static int check_input_parameters(uint32_t sample_rate, in check_input_parameters() argument
1578 switch (sample_rate) { in check_input_parameters()
1596 static size_t get_input_buffer_size(uint32_t sample_rate, in get_input_buffer_size() argument
1603 if (check_input_parameters(sample_rate, format, channel_count) != 0) in get_input_buffer_size()
1606 size = (sample_rate * AUDIO_CAPTURE_PERIOD_DURATION_MSEC) / 1000; in get_input_buffer_size()
1628 return out->sample_rate; in out_get_sample_rate()
2090 &out->sample_rate); in out_get_render_position()
2094 __func__, *dsp_frames, out->sample_rate); in out_get_render_position()
2151 &out->sample_rate); in out_get_presentation_position()
[all …]
Daudio_hw.h154 int sample_rate; member
169 unsigned int sample_rate; member
254 uint32_t sample_rate; member
/hardware/qcom/audio/hal/
Daudio_hw.c1295 static int check_input_parameters(uint32_t sample_rate, in check_input_parameters() argument
1310 switch (sample_rate) { in check_input_parameters()
1322 ALOGE("%s: unsupported (%d) samplerate passed ", __func__, sample_rate); in check_input_parameters()
1329 static size_t get_input_buffer_size(uint32_t sample_rate, in get_input_buffer_size() argument
1336 if (check_input_parameters(sample_rate, format, channel_count) != 0) in get_input_buffer_size()
1339 size = (sample_rate * AUDIO_CAPTURE_PERIOD_DURATION_MSEC) / 1000; in get_input_buffer_size()
1360 return out->sample_rate; in out_get_sample_rate()
1770 compress_get_tstamp(out->compr, &frames, &out->sample_rate); in out_get_render_position()
1773 __func__, *dsp_frames, out->sample_rate); in out_get_render_position()
1812 &out->sample_rate); in out_get_presentation_position()
[all …]
/hardware/libhardware/modules/usbaudio/
Daudio_hal.c530 if (config->sample_rate == 0) { in adev_open_output_stream()
531 proxy_config.rate = config->sample_rate = profile_get_default_sample_rate(out->profile); in adev_open_output_stream()
532 } else if (profile_is_sample_rate_valid(out->profile, config->sample_rate)) { in adev_open_output_stream()
533 proxy_config.rate = config->sample_rate; in adev_open_output_stream()
535 proxy_config.rate = config->sample_rate = profile_get_default_sample_rate(out->profile); in adev_open_output_stream()
539 out->dev->device_sample_rate = config->sample_rate; in adev_open_output_stream()
871 config->sample_rate, config->channel_mask, config->format); in adev_open_input_stream()
914 if (config->sample_rate == 0) { in adev_open_input_stream()
915 config->sample_rate = profile_get_default_sample_rate(in->profile); in adev_open_input_stream()
920 ret = config->sample_rate != in->dev->device_sample_rate ? -EINVAL : 0; in adev_open_input_stream()
[all …]
/hardware/bsp/intel/peripheral/audio/generic/
Daudio_hal.c640 if (config->sample_rate == 0) { in adev_open_output_stream()
641 proxy_config.rate = config->sample_rate = profile_get_default_sample_rate(out->profile); in adev_open_output_stream()
642 } else if (profile_is_sample_rate_valid(out->profile, config->sample_rate)) { in adev_open_output_stream()
643 proxy_config.rate = config->sample_rate; in adev_open_output_stream()
645 ALOGE("%s: The requested sample rate (%d) is not valid", __func__, config->sample_rate); in adev_open_output_stream()
646 proxy_config.rate = config->sample_rate = profile_get_default_sample_rate(out->profile); in adev_open_output_stream()
974 config->sample_rate, config->channel_mask, config->format); in adev_open_input_stream()
1018 if (config->sample_rate == 0) { in adev_open_input_stream()
1019 proxy_config.rate = config->sample_rate = profile_get_default_sample_rate(in->profile); in adev_open_input_stream()
1020 } else if (profile_is_sample_rate_valid(in->profile, config->sample_rate)) { in adev_open_input_stream()
[all …]
/hardware/libhardware/include/hardware/
Dbt_av.h57 uint32_t sample_rate,
/hardware/qcom/msm8996/kernel-headers/sound/
Dcompress_params.h267 __u32 sample_rate; member
282 __u32 sample_rate; member
322 __u32 sample_rate; member
/hardware/qcom/msm8996/original-kernel-headers/sound/
Dcompress_params.h376 __u32 sample_rate; member
389 __u32 sample_rate; member
472 __u32 sample_rate; member
/hardware/intel/audio_media/hdmi/
Dtinyaudio_hw.c137 uint32_t sample_rate; member
700 if (config->sample_rate == 0) in adev_open_output_stream()
701 config->sample_rate = pcm_config_default.rate; in adev_open_output_stream()
710 if (config->sample_rate == 0) in adev_open_output_stream()
711 config->sample_rate = pcm_config_default.rate; in adev_open_output_stream()
719 out->pcm_config.rate = config->sample_rate; in adev_open_output_stream()
744 config->sample_rate = out_get_sample_rate(&out->stream.common); in adev_open_output_stream()

1234