Lines Matching refs:config
44 static int format_convert(struct bat *bat, struct pcm_config *config)
50 config->format = t->format_tiny;
58 static int init_config(struct bat *bat, struct pcm_config *config)
60 config->channels = bat->channels;
61 config->rate = bat->rate;
63 config->period_size = bat->period_size;
65 config->period_size = TINYALSA_PERIODSIZE;
66 config->period_count = 4;
67 config->start_threshold = 0;
68 config->stop_threshold = 0;
69 config->silence_threshold = 0;
71 return format_convert(bat, config);
119 struct pcm_config *config)
134 config->rate, "Sample rate", "Hz");
138 config->channels, "Sample", " channels");
146 config->period_size, "Period size", "Hz");
150 config->period_count, "Period count", "Hz");
286 struct pcm_config config;
304 /* init config */
305 err = init_config(bat, &config);
312 err = check_playback_params(bat, &config);
320 PCM_OUT, &config);
482 struct pcm_config config;
502 /* init config */
503 err = init_config(bat, &config);
511 PCM_IN, &config);