Home | History | Annotate | Download | only in hal

Lines Matching defs:config

50 /* TODO: the following PCM device profiles could be read from a config file */
52 .config = {
72 .config = {
91 .config = {
110 .config = {
130 .config = {
150 .config = {
893 effect_config_t config;
900 config.inputCfg.mask = EFFECT_CONFIG_CHANNELS;
901 config.outputCfg.mask = EFFECT_CONFIG_CHANNELS;
908 &config);
914 config.inputCfg.channels = channel_config->aux_channels;
915 config.outputCfg.channels = config.inputCfg.channels;
920 &config,
929 /* some implementations need to be re-enabled after a config change */
956 /* if config changed, reconfigure all previously added effects */
976 /* if aux channels config did not change but aux channels are present,
1037 size_t src_channels = in->config.channels;
1044 /* since all the processing below is done in frames and using the config.channels
1079 out_buf.s16 = (int16_t *)proc_buf_out + frames_wr * in->config.channels;
1100 in->proc_buf_frames * in->config.channels * audio_bytes_per_sample(in_get_format(in)));
1169 size_t size_in_bytes = pcm_frames_to_bytes(pcm_device->pcm, in->config.period_size);
1170 if (in->read_buf_size < in->config.period_size) {
1171 in->read_buf_size = in->config.period_size;
1185 in->read_buf_frames = in->config.period_size;
1190 buffer->i16 = in->read_buf + (in->config.period_size - in->read_buf_frames) *
1191 in->config.channels;
1227 ALOGVV("%s: frames_rd: %zd, frames_wr: %zd, in->config.channels: %d",
1228 __func__,frames_rd,frames_wr,in->config.channels);
1329 pcm_profile->config.period_size = CAPTURE_PERIOD_SIZE_LOW_LATENCY;
1354 /* Config should be updated as profile can be changed between different calls
1357 * - Config needs to be updated */
1358 if (in->config.rate != pcm_profile->config.rate) {
1361 in->configconfig;
1365 in->config.channels = audio_channel_count_from_in_mask(in->aux_channels);
1370 if (in->requested_rate != in->config.rate) {
1381 ret = create_resampler(in->config.rate,
1383 in->config.channels,
1395 pcm_device->pcm_profile->config.channels,pcm_device->pcm_profile->config.rate,
1396 pcm_device->pcm_profile->config.format, pcm_device->pcm_profile->config.period_size);
1418 &pcm_device->pcm_profile->config);
1567 pcm_device->dsp_context = cras_dsp_context_new(pcm_device->pcm_profile->config.rate,
1578 PCM_OUT | PCM_MONOTONIC, &pcm_device->pcm_profile->config);
1590 if (out->sample_rate != pcm_device->pcm_profile->config.rate) {
1594 out->sample_rate, pcm_device->pcm_profile->config.rate);
1596 pcm_device->pcm_profile->config.rate,
1671 __func__, out->usecase, use_case_table[out->usecase], out->devices, out->config.channels);
1791 size = (pcm_profile->config.period_size * sample_rate) / pcm_profile->config.rate;
1816 return out->config.period_size *
2018 return (out->config.period_count * out->config.period_size * 1000) /
2019 (out->config.rate);
2070 struct pcm_config config;
2124 if (bytes * pcm_device->pcm_profile->config.rate / out->sample_rate + frame_size
2127 bytes * pcm_device->pcm_profile->config.rate / out->sample_rate + frame_size;
2143 size_t dst_channels = pcm_device->pcm_profile->config.channels;
2268 size_t kernel_buffer_size = out->config.period_size * out->config.period_count;
2688 struct audio_config *config,
2698 __func__, config->sample_rate, config->channel_mask, devices, flags);
2708 out->format = config->format;
2709 out->sample_rate = config->sample_rate;
2719 out->config = pcm_profile->config;
2724 out->config = pcm_config_deep_buffer;
2725 out->sample_rate = out->config.rate;
2729 out->sample_rate = out->config.rate;
2779 config->format = out->stream.common.get_format(&out->stream.common);
2780 config->channel_mask = out->stream.common.get_channels(&out->stream.common);
2781 config->sample_rate = out->stream.common.get_sample_rate(&out->stream.common);
3006 const struct audio_config *config)
3013 return get_input_buffer_size(config->sample_rate,
3014 config->format,
3015 audio_channel_count_from_in_mask(config->channel_mask),
3023 struct audio_config *config,
3036 if (check_input_parameters(config->sample_rate, config->format,
3037 audio_channel_count_from_in_mask(config->channel_mask)) != 0)
3068 in->main_channels = config->channel_mask;
3069 in->requested_rate = config->sample_rate;
3070 if (config->sample_rate != CAPTURE_DEFAULT_SAMPLING_RATE)
3075 in->config = pcm_profile->config;
3077 /* Update config params with the requested sample rate and channels */