Lines Matching refs:bit_width
731 int bit_width; member
1576 pdata->current_backend_cfg[i].bit_width = CODEC_BACKEND_DEFAULT_BIT_WIDTH; in platform_backend_config_init()
1649 app_type_cfg[length++] = entry->bit_width; in platform_backend_app_type_cfg_init()
1650 ALOGI("%s add entry %d %d", __func__, entry->app_type, entry->bit_width); in platform_backend_app_type_cfg_init()
4218 const unsigned int bit_width = backend_cfg->bit_width; in platform_set_backend_cfg() local
4226 ", backend_idx %d device (%s)", __func__, bit_width, in platform_set_backend_cfg()
4231 (bit_width != my_data->current_backend_cfg[backend_idx].bit_width)) { in platform_set_backend_cfg()
4243 if (bit_width == 24) { in platform_set_backend_cfg()
4248 } else if (bit_width == 32) { 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()
4420 unsigned int bit_width; in platform_check_capture_backend_cfg() local
4425 bit_width = backend_cfg->bit_width; in platform_check_capture_backend_cfg()
4430 "sample rate: %d, channels %d",__func__,backend_idx, bit_width, in platform_check_capture_backend_cfg()
4439 bit_width = CODEC_BACKEND_DEFAULT_BIT_WIDTH; in platform_check_capture_backend_cfg()
4444 audio_extn_usb_is_config_supported(&bit_width, &sample_rate, &channels, false); in platform_check_capture_backend_cfg()
4446 __func__, bit_width, sample_rate, channels); 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()
4457 backend_cfg->bit_width = bit_width; in platform_check_capture_backend_cfg()
4463 __func__, backend_cfg->bit_width, in platform_check_capture_backend_cfg()
4473 unsigned int *bit_width, in pick_playback_cfg_for_uc() argument
4492 if (*bit_width < pcm_format_to_bits(out->config.format)) in pick_playback_cfg_for_uc()
4493 *bit_width = pcm_format_to_bits(out->config.format); in pick_playback_cfg_for_uc()
4506 static void headset_is_config_supported(unsigned int *bit_width, in headset_is_config_supported() argument
4509 switch (*bit_width) { in headset_is_config_supported()
4514 *bit_width = 16; in headset_is_config_supported()
4533 unsigned int bit_width; in platform_check_playback_backend_cfg() local
4547 bit_width = backend_cfg->bit_width; in platform_check_playback_backend_cfg()
4552 ", backend_idx %d usecase = %d device (%s)", __func__, bit_width, in platform_check_playback_backend_cfg()
4559 bit_width = CODEC_BACKEND_DEFAULT_BIT_WIDTH; in platform_check_playback_backend_cfg()
4573 &bit_width, in platform_check_playback_backend_cfg()
4580 audio_extn_usb_is_config_supported(&bit_width, in platform_check_playback_backend_cfg()
4588 &bit_width, in platform_check_playback_backend_cfg()
4598 __func__, bit_width, sample_rate, channels); in platform_check_playback_backend_cfg()
4601 headset_is_config_supported(&bit_width, &sample_rate, &channels); in platform_check_playback_backend_cfg()
4605 bit_width = platform_get_snd_device_bit_width(snd_device); 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()
4620 backend_cfg->bit_width = bit_width; 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()
4645 backend_cfg.bit_width = pcm_format_to_bits(usecase->stream.out->config.format); 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()
4684 backend_cfg.bit_width = CODEC_BACKEND_DEFAULT_BIT_WIDTH; in platform_check_and_set_capture_backend_cfg()
4692 backend_cfg.bit_width, in platform_check_and_set_capture_backend_cfg()
4906 ap->bit_width = bw; in platform_add_app_type()
4940 __func__, entry->uc_type, entry->mode, entry->bit_width, in platform_get_app_type_v2()
4942 if (entry->bit_width == bw && in platform_get_app_type_v2()