Lines Matching refs:backend_idx

4216     const int backend_idx = platform_get_backend_index(snd_device);  in platform_set_backend_cfg()  local
4227 sample_rate, channels, backend_idx, in platform_set_backend_cfg()
4230 if ((my_data->current_backend_cfg[backend_idx].bitwidth_mixer_ctl) && in platform_set_backend_cfg()
4231 (bit_width != my_data->current_backend_cfg[backend_idx].bit_width)) { in platform_set_backend_cfg()
4235 my_data->current_backend_cfg[backend_idx].bitwidth_mixer_ctl); in platform_set_backend_cfg()
4239 my_data->current_backend_cfg[backend_idx].bitwidth_mixer_ctl); in platform_set_backend_cfg()
4255 my_data->current_backend_cfg[backend_idx].bitwidth_mixer_ctl, bit_width, format); in platform_set_backend_cfg()
4257 my_data->current_backend_cfg[backend_idx].bit_width = bit_width; in platform_set_backend_cfg()
4259 my_data->current_backend_cfg[backend_idx].bitwidth_mixer_ctl, bit_width, format); in platform_set_backend_cfg()
4265 if (passthrough_enabled || ((my_data->current_backend_cfg[backend_idx].samplerate_mixer_ctl) && in platform_set_backend_cfg()
4266 … (sample_rate != my_data->current_backend_cfg[backend_idx].sample_rate))) { in platform_set_backend_cfg()
4316 my_data->current_backend_cfg[backend_idx].samplerate_mixer_ctl); in platform_set_backend_cfg()
4320 my_data->current_backend_cfg[backend_idx].samplerate_mixer_ctl); in platform_set_backend_cfg()
4325 my_data->current_backend_cfg[backend_idx].samplerate_mixer_ctl, rate_str); in platform_set_backend_cfg()
4327 my_data->current_backend_cfg[backend_idx].sample_rate = sample_rate; in platform_set_backend_cfg()
4329 if ((my_data->current_backend_cfg[backend_idx].channels_mixer_ctl) && in platform_set_backend_cfg()
4330 (channels != my_data->current_backend_cfg[backend_idx].channels)) { in platform_set_backend_cfg()
4355 my_data->current_backend_cfg[backend_idx].channels_mixer_ctl); in platform_set_backend_cfg()
4359 my_data->current_backend_cfg[backend_idx].channels_mixer_ctl); in platform_set_backend_cfg()
4363 my_data->current_backend_cfg[backend_idx].channels = channels; in platform_set_backend_cfg()
4368 my_data->current_backend_cfg[backend_idx].channels_mixer_ctl, in platform_set_backend_cfg()
4395 int backend_idx = -1; in platform_get_voice_call_backend() local
4403 backend_idx = platform_get_backend_index(out_snd_device); in platform_get_voice_call_backend()
4408 return backend_idx; in platform_get_voice_call_backend()
4416 int backend_idx, in platform_check_capture_backend_cfg() argument
4430 "sample rate: %d, channels %d",__func__,backend_idx, bit_width, in platform_check_capture_backend_cfg()
4443 if (backend_idx == USB_AUDIO_TX_BACKEND) { in platform_check_capture_backend_cfg()
4450 "sample rate: %d", __func__, backend_idx, bit_width, sample_rate); in platform_check_capture_backend_cfg()
4454 if ((bit_width != my_data->current_backend_cfg[backend_idx].bit_width) || in platform_check_capture_backend_cfg()
4455 (sample_rate != my_data->current_backend_cfg[backend_idx].sample_rate) || in platform_check_capture_backend_cfg()
4456 (channels != my_data->current_backend_cfg[backend_idx].channels)) { in platform_check_capture_backend_cfg()
4536 int backend_idx = DEFAULT_CODEC_BACKEND; in platform_check_playback_backend_cfg() local
4546 backend_idx = platform_get_backend_index(snd_device); in platform_check_playback_backend_cfg()
4553 sample_rate, channels, backend_idx, usecase->id, in platform_check_playback_backend_cfg()
4556 if (backend_idx == platform_get_voice_call_backend(adev)) { in platform_check_playback_backend_cfg()
4578 switch (backend_idx) { in platform_check_playback_backend_cfg()
4613 __func__, backend_idx , bit_width, sample_rate); in platform_check_playback_backend_cfg()
4617 if (bit_width != my_data->current_backend_cfg[backend_idx].bit_width || in platform_check_playback_backend_cfg()
4618 sample_rate != my_data->current_backend_cfg[backend_idx].sample_rate || in platform_check_playback_backend_cfg()
4619 channels != my_data->current_backend_cfg[backend_idx].channels) { in platform_check_playback_backend_cfg()
4636 int backend_idx = DEFAULT_CODEC_BACKEND; in platform_check_and_set_playback_backend_cfg() local
4643 backend_idx = platform_get_backend_index(snd_device); 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()
4675 int backend_idx = platform_get_backend_index(snd_device); in platform_check_and_set_capture_backend_cfg() local
4695 backend_idx, usecase->id, 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()
4856 int backend_idx = platform_get_backend_index(snd_device); in platform_check_and_update_copp_sample_rate() local
4857 int device_sr = my_data->current_backend_cfg[backend_idx].sample_rate; in platform_check_and_update_copp_sample_rate()