Lines Matching refs:alsa_config
54 proxy->alsa_config.format = config->format; in proxy_prepare()
58 proxy->alsa_config.format = profile->default_config.format; in proxy_prepare()
62 proxy->alsa_config.rate = config->rate; in proxy_prepare()
66 proxy->alsa_config.rate = profile->default_config.rate; in proxy_prepare()
70 proxy->alsa_config.channels = config->channels; in proxy_prepare()
74 proxy->alsa_config.channels = profile->default_config.channels; in proxy_prepare()
78 proxy->alsa_config.period_count = profile->default_config.period_count; in proxy_prepare()
79 proxy->alsa_config.period_size = in proxy_prepare()
80 profile_get_period_size(proxy->profile, proxy->alsa_config.rate); in proxy_prepare()
85 if (proxy->alsa_config.period_count == 0) { in proxy_prepare()
86 proxy->alsa_config.period_count = 4; in proxy_prepare()
92 proxy->frame_size = format_byte_size_map[config->format] * proxy->alsa_config.channels; in proxy_prepare()
109 profile->direction | PCM_MONOTONIC, &proxy->alsa_config); in proxy_open()
117 log_pcm_config(&proxy->alsa_config, "config"); in proxy_open()
142 return proxy->alsa_config.rate; in proxy_get_sample_rate()
150 return proxy->alsa_config.format; in proxy_get_format()
158 return proxy->alsa_config.channels; in proxy_get_channel_count()
166 return proxy->alsa_config.period_size; in proxy_get_period_size()
171 return proxy->alsa_config.period_count; in proxy_get_period_count()
188 proxy->alsa_config.period_size * proxy->alsa_config.period_count; in proxy_get_presentation_position()