Lines Matching defs:config
221 struct pcm_config config = profile->default_config;
222 config.rate = rate;
226 profile->direction, &config);
321 static int read_alsa_device_config(alsa_device_profile * profile, struct pcm_config * config)
351 config->channels = pcm_params_get_min(alsa_hw_params, PCM_PARAM_CHANNELS);
355 config->channels < 2 && pcm_params_get_max(alsa_hw_params, PCM_PARAM_CHANNELS) >= 2) {
356 config->channels = 2;
358 config->rate = pcm_params_get_min(alsa_hw_params, PCM_PARAM_RATE);
360 if (config->rate < 48000 &&
362 config->rate = 48000;
363 } else if (config->rate < 44100 &&
365 config->rate = 44100;
367 config->period_size = profile_calc_min_period_size(profile, config->rate);
368 config->period_count = pcm_params_get_min(alsa_hw_params, PCM_PARAM_PERIODS);
369 config->format = get_pcm_format_for_mask(pcm_params_get_mask(alsa_hw_params, PCM_PARAM_FORMAT));
371 log_pcm_config(config, "read_alsa_device_config");
373 if (config->format == PCM_FORMAT_INVALID) {
539 * support STEREO, append to the channel config strings we are generating.
633 dprintf(fd, " Default Config:\n");