Home
last modified time | relevance | path

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

/device/google/dragon/audio/hal/
Dcras_dsp_mod_builtin.c17 unsigned long sample_rate) in empty_instantiate() argument
56 unsigned long sample_rate) in invert_lr_instantiate() argument
102 unsigned long sample_rate) in mix_stereo_instantiate() argument
150 int sample_rate; member
157 static int eq_instantiate(struct dsp_module *module, unsigned long sample_rate) in eq_instantiate() argument
163 data->sample_rate = (int) sample_rate; in eq_instantiate()
178 float nyquist = data->sample_rate / 2; in eq_run()
222 int sample_rate; member
229 static int eq2_instantiate(struct dsp_module *module, unsigned long sample_rate) in eq2_instantiate() argument
235 data->sample_rate = (int) sample_rate; in eq2_instantiate()
[all …]
Dcras_dsp.c29 int sample_rate; member
68 if (cras_dsp_pipeline_instantiate(pipeline, ctx->sample_rate) != 0) { in prepare_pipeline()
73 if (cras_dsp_pipeline_get_sample_rate(pipeline) != ctx->sample_rate) { in prepare_pipeline()
76 ctx->sample_rate); in prepare_pipeline()
141 struct cras_dsp_context *cras_dsp_context_new(int sample_rate, in cras_dsp_context_new() argument
147 ctx->sample_rate = sample_rate; in cras_dsp_context_new()
Dcras_dsp_pipeline.c131 int sample_rate; member
636 int cras_dsp_pipeline_instantiate(struct pipeline *pipeline, int sample_rate) in cras_dsp_pipeline_instantiate() argument
643 if (module->instantiate(module, sample_rate) != 0) in cras_dsp_pipeline_instantiate()
648 pipeline->sample_rate = sample_rate; in cras_dsp_pipeline_instantiate()
725 pipeline->sample_rate = 0; in cras_dsp_pipeline_deinstantiate()
735 return pipeline->sample_rate; in cras_dsp_pipeline_get_sample_rate()
Dcras_dsp_module.h28 int (*instantiate)(struct dsp_module *mod, unsigned long sample_rate);
Dcras_dsp.h37 struct cras_dsp_context *cras_dsp_context_new(int sample_rate,
Dcras_dsp_pipeline.h63 int cras_dsp_pipeline_instantiate(struct pipeline *pipeline, int sample_rate);
Daudio_hw.c1590 if (out->sample_rate != pcm_device->pcm_profile->config.rate) { in out_open_pcm_devices()
1594 out->sample_rate, pcm_device->pcm_profile->config.rate); in out_open_pcm_devices()
1595 ret = create_resampler(out->sample_rate, in out_open_pcm_devices()
1744 static int check_input_parameters(uint32_t sample_rate, in check_input_parameters() argument
1752 switch (sample_rate) { in check_input_parameters()
1770 static size_t get_input_buffer_size(uint32_t sample_rate, in get_input_buffer_size() argument
1779 if (check_input_parameters(sample_rate, format, channel_count) != 0) in get_input_buffer_size()
1791 size = (pcm_profile->config.period_size * sample_rate) / pcm_profile->config.rate; in get_input_buffer_size()
1802 return out->sample_rate; in out_get_sample_rate()
2124 if (bytes * pcm_device->pcm_profile->config.rate / out->sample_rate + frame_size in out_write()
[all …]
Daudio_hw.h225 unsigned int sample_rate; member
/device/google/dragon/audio/hal/dsp/
Ddrc.h111 float sample_rate; member
154 struct drc *drc_new(float sample_rate);
Ddrc_kernel.h21 float sample_rate; member
82 void dk_init(struct drc_kernel *dk, float sample_rate);
Ddrc.c26 struct drc *drc_new(float sample_rate) in drc_new() argument
29 drc->sample_rate = sample_rate; in drc_new()
89 float nyquist = drc->sample_rate / 2; in set_default_parameters()
218 dk_init(&drc->kernel[i], drc->sample_rate); in init_kernel()
Ddrc_kernel.c31 void dk_init(struct drc_kernel *dk, float sample_rate) in dk_init() argument
40 dk->sample_rate = sample_rate; in dk_init()
81 unsigned pre_delay_frames = pre_delay_time * dk->sample_rate; in set_pre_delay_time()
256 float sample_rate = dk->sample_rate; in dk_set_parameters() local
272 dk->attack_frames = attack_time * sample_rate; in dk_set_parameters()
275 float release_frames = sample_rate * release_time; in dk_set_parameters()
279 float sat_release_frames = sat_release_time * sample_rate; in dk_set_parameters()
/device/generic/goldfish/audio/
Daudio_hw.c389 (config->sample_rate != OUT_SAMPLING_RATE)) { in adev_open_output_stream()
391 config->format, config->channel_mask, config->sample_rate); in adev_open_output_stream()
394 config->sample_rate = OUT_SAMPLING_RATE; in adev_open_output_stream()
544 (config->sample_rate != IN_SAMPLING_RATE)) { in adev_open_input_stream()
546 config->format, config->channel_mask, config->sample_rate); in adev_open_input_stream()
549 config->sample_rate = IN_SAMPLING_RATE; in adev_open_input_stream()
/device/htc/flounder/audio/hal/
Daudio_hw.c2349 if (out->sample_rate != pcm_device->pcm_profile->config.rate) { in out_open_pcm_devices()
2353 out->sample_rate, pcm_device->pcm_profile->config.rate); in out_open_pcm_devices()
2354 ret = create_resampler(out->sample_rate, in out_open_pcm_devices()
2537 static int check_input_parameters(uint32_t sample_rate, in check_input_parameters() argument
2545 switch (sample_rate) { in check_input_parameters()
2563 static size_t get_input_buffer_size(uint32_t sample_rate, in get_input_buffer_size() argument
2572 if (check_input_parameters(sample_rate, format, channel_count) != 0) in get_input_buffer_size()
2584 size = (pcm_profile->config.period_size * sample_rate) / pcm_profile->config.rate; in get_input_buffer_size()
2595 return out->sample_rate; in out_get_sample_rate()
3110 if (bytes * pcm_device->pcm_profile->config.rate / out->sample_rate + frame_size in out_write()
[all …]
Daudio_hw.h276 unsigned int sample_rate; member
/device/linaro/hikey/audio/
Daudio_hw.c470 if (out->config.rate != config->sample_rate || in adev_open_output_stream()
473 config->sample_rate = out->config.rate; in adev_open_output_stream()
488 config->sample_rate = out_get_sample_rate(&out->stream.common); in adev_open_output_stream()
/device/asus/fugu/libaudio/
DAudioHardwareInput.cpp96 size_t size = calculateInputBufferSize(config->sample_rate, in getInputBufferSize()
Daudio_hal_thunks.cpp477 &config->sample_rate, in adev_open_input_stream()
557 &config->sample_rate, in adev_open_output_stream()
/device/htc/flounder/audio/soundtrigger/
Dsound_trigger_hw.c212 event->common.audio_config.sample_rate = 16000; in sound_trigger_event_alloc()
/device/google/dragon/audio/soundtrigger/
Dsound_trigger_hw.c197 event->common.audio_config.sample_rate = 16000; in sound_trigger_event_alloc()