Lines Matching refs:pcm_config
182 struct pcm_config pcm_config; // Constant after init member
213 struct pcm_config pcm_config; // Constant after init member
236 static struct pcm_config pcm_config_out = {
245 static struct pcm_config pcm_config_in = {
272 int size = out->pcm_config.period_size * in out_get_buffer_size()
409 return (out->pcm_config.period_size * 1000) / out->pcm_config.rate; in out_get_latency()
461 PCM_OUT | PCM_MONOTONIC, &out->pcm_config); in out_write_worker()
465 out->pcm_config.channels, in out_write_worker()
466 out->pcm_config.format, in out_write_worker()
467 out->pcm_config.rate in out_write_worker()
472 buffer_frames = out->pcm_config.period_size; in out_write_worker()
1015 PCM_IN | PCM_MONOTONIC, &in->pcm_config); in in_read_worker()
1019 in->pcm_config.channels, in in_read_worker()
1020 in->pcm_config.format, in in_read_worker()
1021 in->pcm_config.rate in in_read_worker()
1026 buffer_frames = in->pcm_config.period_size; in in_read_worker()
1107 in->pcm_config.channels == 2) { in in_read()
1238 memcpy(&out->pcm_config, &pcm_config_out, sizeof(struct pcm_config)); in adev_open_output_stream()
1239 out->pcm_config.rate = config->sample_rate; in adev_open_output_stream()
1240 out->pcm_config.period_size = out->pcm_config.rate*OUT_PERIOD_MS/1000; in adev_open_output_stream()
1252 out->pcm_config.period_size*out->pcm_config.period_count, in adev_open_output_stream()
1253 out->pcm_config.channels * in adev_open_output_stream()
1254 pcm_format_to_bits(out->pcm_config.format) >> 3); in adev_open_output_stream()
1474 memcpy(&in->pcm_config, &pcm_config_in, sizeof(struct pcm_config)); in adev_open_input_stream()
1475 in->pcm_config.rate = config->sample_rate; in adev_open_input_stream()
1476 in->pcm_config.period_size = in->pcm_config.rate*IN_PERIOD_MS/1000; in adev_open_input_stream()
1488 in->pcm_config.period_size*in->pcm_config.period_count, in adev_open_input_stream()
1489 in->pcm_config.channels * in adev_open_input_stream()
1490 pcm_format_to_bits(in->pcm_config.format) >> 3); in adev_open_input_stream()