Lines Matching refs:config
78 struct pcm_config config; member
100 out->config.start_threshold = PLAYBACK_PERIOD_START_THRESHOLD * PERIOD_SIZE; in start_output_stream()
101 out->config.avail_min = PERIOD_SIZE; in start_output_stream()
103 …pcm = pcm_open(CARD_OUT, PORT_CODEC, PCM_OUT | PCM_MMAP | PCM_NOIRQ | PCM_MONOTONIC, &out->config); in start_output_stream()
120 return out->config.rate; in out_get_sample_rate()
144 return audio_channel_out_mask_from_count(out->config.channels); in out_get_channels()
151 return audio_format_from_pcm_format(out->config.format); in out_get_format()
231 return (PERIOD_SIZE * PLAYBACK_PERIOD_COUNT * 1000) / out->config.rate; in out_get_latency()
299 size_t kernel_buffer_size = out->config.period_size * out->config.period_count; in out_get_presentation_position()
423 struct audio_config *config, in adev_open_output_stream() argument
461 out->config.channels = CHANNEL_STEREO; in adev_open_output_stream()
462 out->config.rate = CODEC_SAMPLING_RATE; in adev_open_output_stream()
463 out->config.format = PCM_FORMAT_S16_LE; in adev_open_output_stream()
464 out->config.period_size = PERIOD_SIZE; in adev_open_output_stream()
465 out->config.period_count = PLAYBACK_PERIOD_COUNT; in adev_open_output_stream()
467 if (out->config.rate != config->sample_rate || in adev_open_output_stream()
468 audio_channel_count_from_out_mask(config->channel_mask) != CHANNEL_STEREO || in adev_open_output_stream()
469 out->config.format != pcm_format_from_audio_format(config->format) ) { in adev_open_output_stream()
470 config->sample_rate = out->config.rate; in adev_open_output_stream()
471 config->format = audio_format_from_pcm_format(out->config.format); in adev_open_output_stream()
472 config->channel_mask = audio_channel_out_mask_from_count(CHANNEL_STEREO); in adev_open_output_stream()
477 out->config.channels, out->config.rate, out->config.format); in adev_open_output_stream()
483 config->format = out_get_format(&out->stream.common); in adev_open_output_stream()
484 config->channel_mask = out_get_channels(&out->stream.common); in adev_open_output_stream()
485 config->sample_rate = out_get_sample_rate(&out->stream.common); in adev_open_output_stream()
570 const struct audio_config *config) in adev_get_input_buffer_size() argument
579 struct audio_config *config, in adev_open_input_stream() argument