Lines Matching refs:backend_cfg
4212 const struct audio_backend_cfg *backend_cfg) in platform_set_backend_cfg() argument
4218 const unsigned int bit_width = backend_cfg->bit_width; in platform_set_backend_cfg()
4219 const unsigned int sample_rate = backend_cfg->sample_rate; in platform_set_backend_cfg()
4220 const unsigned int channels = backend_cfg->channels; in platform_set_backend_cfg()
4221 const audio_format_t format = backend_cfg->format; in platform_set_backend_cfg()
4222 const bool passthrough_enabled = backend_cfg->passthrough_enabled; in platform_set_backend_cfg()
4417 struct audio_backend_cfg *backend_cfg) in platform_check_capture_backend_cfg() argument
4425 bit_width = backend_cfg->bit_width; in platform_check_capture_backend_cfg()
4426 sample_rate = backend_cfg->sample_rate; in platform_check_capture_backend_cfg()
4427 channels = backend_cfg->channels; in platform_check_capture_backend_cfg()
4457 backend_cfg->bit_width = bit_width; in platform_check_capture_backend_cfg()
4458 backend_cfg->sample_rate= sample_rate; in platform_check_capture_backend_cfg()
4459 backend_cfg->channels = channels; in platform_check_capture_backend_cfg()
4463 __func__, backend_cfg->bit_width, in platform_check_capture_backend_cfg()
4464 backend_cfg->sample_rate, backend_cfg->channels); in platform_check_capture_backend_cfg()
4530 struct audio_backend_cfg *backend_cfg) in platform_check_playback_backend_cfg() argument
4547 bit_width = backend_cfg->bit_width; in platform_check_playback_backend_cfg()
4548 sample_rate = backend_cfg->sample_rate; in platform_check_playback_backend_cfg()
4549 channels = backend_cfg->channels; in platform_check_playback_backend_cfg()
4620 backend_cfg->bit_width = bit_width; in platform_check_playback_backend_cfg()
4621 backend_cfg->sample_rate = sample_rate; in platform_check_playback_backend_cfg()
4622 backend_cfg->channels = channels; in platform_check_playback_backend_cfg()
4623 backend_cfg->passthrough_enabled = false; in platform_check_playback_backend_cfg()
4627 __func__, backend_cfg->bit_width, backend_cfg->sample_rate, backend_cfg->channels); in platform_check_playback_backend_cfg()
4641 struct audio_backend_cfg backend_cfg; in platform_check_and_set_playback_backend_cfg() local
4645 backend_cfg.bit_width = pcm_format_to_bits(usecase->stream.out->config.format); in platform_check_and_set_playback_backend_cfg()
4646 backend_cfg.sample_rate = usecase->stream.out->sample_rate; in platform_check_and_set_playback_backend_cfg()
4647 backend_cfg.format = usecase->stream.out->format; in platform_check_and_set_playback_backend_cfg()
4648 backend_cfg.channels = audio_channel_count_from_out_mask(usecase->stream.out->channel_mask); in platform_check_and_set_playback_backend_cfg()
4650 backend_cfg.passthrough_enabled = false; in platform_check_and_set_playback_backend_cfg()
4653 ", backend_idx %d usecase = %d device (%s)", __func__, backend_cfg.bit_width, in platform_check_and_set_playback_backend_cfg()
4654 backend_cfg.sample_rate, backend_cfg.channels, backend_idx, usecase->id, in platform_check_and_set_playback_backend_cfg()
4663 &backend_cfg))) { in platform_check_and_set_playback_backend_cfg()
4665 &backend_cfg); in platform_check_and_set_playback_backend_cfg()
4677 struct audio_backend_cfg backend_cfg; in platform_check_and_set_capture_backend_cfg() local
4678 memset(&backend_cfg, 0, sizeof(struct audio_backend_cfg)); in platform_check_and_set_capture_backend_cfg()
4681 backend_cfg.format = usecase->stream.in->format; in platform_check_and_set_capture_backend_cfg()
4682 backend_cfg.channels = audio_channel_count_from_in_mask(usecase->stream.in->channel_mask); in platform_check_and_set_capture_backend_cfg()
4684 backend_cfg.bit_width = CODEC_BACKEND_DEFAULT_BIT_WIDTH; in platform_check_and_set_capture_backend_cfg()
4685 backend_cfg.sample_rate = CODEC_BACKEND_DEFAULT_SAMPLE_RATE; in platform_check_and_set_capture_backend_cfg()
4686 backend_cfg.format = AUDIO_FORMAT_PCM_16_BIT; in platform_check_and_set_capture_backend_cfg()
4687 backend_cfg.channels = 1; in platform_check_and_set_capture_backend_cfg()
4692 backend_cfg.bit_width, in platform_check_and_set_capture_backend_cfg()
4693 backend_cfg.sample_rate, in platform_check_and_set_capture_backend_cfg()
4694 backend_cfg.channels, in platform_check_and_set_capture_backend_cfg()
4698 if (platform_check_capture_backend_cfg(adev, backend_idx, &backend_cfg)) { in platform_check_and_set_capture_backend_cfg()
4700 &backend_cfg); in platform_check_and_set_capture_backend_cfg()