Lines Matching refs:alsa_config
60 proxy->alsa_config.format = config->format; in proxy_prepare()
62 proxy->alsa_config.format = profile->default_config.format; in proxy_prepare()
72 proxy->alsa_config.rate = config->rate; in proxy_prepare()
74 proxy->alsa_config.rate = profile->default_config.rate; in proxy_prepare()
84 proxy->alsa_config.channels = config->channels; in proxy_prepare()
86 proxy->alsa_config.channels = profile_get_closest_channel_count(profile, config->channels); in proxy_prepare()
88 config->channels, proxy->alsa_config.channels); in proxy_prepare()
95 proxy->alsa_config.period_count = profile->default_config.period_count; in proxy_prepare()
96 proxy->alsa_config.period_size = in proxy_prepare()
97 profile_get_period_size(proxy->profile, proxy->alsa_config.rate); in proxy_prepare()
102 if (proxy->alsa_config.period_count == 0) { in proxy_prepare()
103 proxy->alsa_config.period_count = 4; in proxy_prepare()
109 proxy->frame_size = format_byte_size_map[config->format] * proxy->alsa_config.channels; in proxy_prepare()
119 if (proxy->alsa_config.rate > profile->sample_rates[max_rate_index]) { in proxy_prepare()
121 proxy->alsa_config.rate, profile->sample_rates[max_rate_index]); in proxy_prepare()
122 proxy->alsa_config.rate = profile->sample_rates[max_rate_index]; in proxy_prepare()
140 profile->direction | PCM_MONOTONIC, &proxy->alsa_config); in proxy_open()
148 log_pcm_config(&proxy->alsa_config, "config"); in proxy_open()
173 return proxy->alsa_config.rate; in proxy_get_sample_rate()
181 return proxy->alsa_config.format; in proxy_get_format()
189 return proxy->alsa_config.channels; in proxy_get_channel_count()
197 return proxy->alsa_config.period_size; in proxy_get_period_size()
202 return proxy->alsa_config.period_count; in proxy_get_period_count()
219 proxy->alsa_config.period_size * proxy->alsa_config.period_count; in proxy_get_presentation_position()
246 proxy->alsa_config.period_size * proxy->alsa_config.period_count; in proxy_get_capture_position()
285 dprintf(fd, " channels: %d\n", proxy->alsa_config.channels); in proxy_dump()
286 dprintf(fd, " rate: %d\n", proxy->alsa_config.rate); in proxy_dump()
287 dprintf(fd, " period_size: %d\n", proxy->alsa_config.period_size); in proxy_dump()
288 dprintf(fd, " period_count: %d\n", proxy->alsa_config.period_count); in proxy_dump()
289 dprintf(fd, " format: %d\n", proxy->alsa_config.format); in proxy_dump()
299 struct pcm_config alsa_config; in proxy_scan_rates() local
300 memcpy(&alsa_config, &proxy->alsa_config, sizeof(alsa_config)); in proxy_scan_rates()
305 alsa_config.rate = sample_rates[rate_index]; in proxy_scan_rates()
307 profile->direction | PCM_MONOTONIC, &alsa_config); in proxy_scan_rates()