Lines Matching refs:usecase
1057 struct audio_usecase *usecase; in platform_send_gain_dep_cal() local
1072 usecase = node_to_item(node, struct audio_usecase, list); in platform_send_gain_dep_cal()
1073 LOG_ALWAYS_FATAL_IF(usecase == NULL, in platform_send_gain_dep_cal()
1075 valid_uc_type = usecase->type == PCM_PLAYBACK; in platform_send_gain_dep_cal()
1078 audio_devices_t dev = usecase->stream.out->devices; in platform_send_gain_dep_cal()
1085 ALOGV("%s: out device is %d", __func__, usecase->out_snd_device); in platform_send_gain_dep_cal()
1087 app_type = usecase->stream.out->app_type_cfg.app_type; in platform_send_gain_dep_cal()
1091 acdb_dev_id = platform_get_snd_device_acdb_id(usecase->out_snd_device); in platform_send_gain_dep_cal()
2150 int platform_get_pcm_device_id(audio_usecase_t usecase, int device_type) in platform_get_pcm_device_id() argument
2154 device_id = pcm_device_table[usecase][0]; in platform_get_pcm_device_id()
2156 device_id = pcm_device_table[usecase][1]; in platform_get_pcm_device_id()
2405 int platform_send_audio_calibration_v2(void *platform, struct audio_usecase *usecase, in platform_send_audio_calibration_v2() argument
2410 int snd_device = usecase->out_snd_device; in platform_send_audio_calibration_v2()
2417 if ((usecase->type == PCM_HFP_CALL) || (usecase->type == PCM_CAPTURE)) in platform_send_audio_calibration_v2()
2418 snd_device = usecase->in_snd_device; in platform_send_audio_calibration_v2()
3829 int64_t platform_render_latency(audio_usecase_t usecase) in platform_render_latency() argument
3831 switch (usecase) { in platform_render_latency()
3876 int platform_set_usecase_pcm_id(audio_usecase_t usecase, int32_t type, int32_t pcm_id) in platform_set_usecase_pcm_id() argument
3879 if ((usecase <= USECASE_INVALID) || (usecase >= AUDIO_USECASE_MAX)) { in platform_set_usecase_pcm_id()
3880 ALOGE("%s: invalid usecase case idx %d", __func__, usecase); in platform_set_usecase_pcm_id()
3889 ALOGV("%s: pcm_device_table[%d %s][%d] = %d", __func__, usecase, in platform_set_usecase_pcm_id()
3890 use_case_table[usecase], in platform_set_usecase_pcm_id()
3892 pcm_device_table[usecase][type] = pcm_id; in platform_set_usecase_pcm_id()
3999 struct audio_usecase *usecase; in platform_check_and_set_swap_lr_channels() local
4011 struct audio_usecase *usecase; in platform_set_swap_channels() local
4023 usecase = node_to_item(node, struct audio_usecase, list); in platform_set_swap_channels()
4024 if (usecase->type == PCM_PLAYBACK && in platform_set_swap_channels()
4025 usecase->stream.out->devices & AUDIO_DEVICE_OUT_SPEAKER) { in platform_set_swap_channels()
4034 select_devices(adev, usecase->id); in platform_set_swap_channels()
4374 struct audio_usecase *usecase, in pick_playback_cfg_for_uc() argument
4386 if (uc->type == PCM_PLAYBACK && out && usecase != uc) { in pick_playback_cfg_for_uc()
4431 struct audio_usecase* usecase, in platform_check_playback_backend_cfg() argument
4456 sample_rate, channels, backend_idx, usecase->id, in platform_check_playback_backend_cfg()
4475 pick_playback_cfg_for_uc(adev, usecase, snd_device, in platform_check_playback_backend_cfg()
4537 struct audio_usecase *usecase, snd_device_t snd_device) in platform_check_and_set_playback_backend_cfg() argument
4548 backend_cfg.bit_width = pcm_format_to_bits(usecase->stream.out->config.format); in platform_check_and_set_playback_backend_cfg()
4549 backend_cfg.sample_rate = usecase->stream.out->sample_rate; in platform_check_and_set_playback_backend_cfg()
4550 backend_cfg.format = usecase->stream.out->format; in platform_check_and_set_playback_backend_cfg()
4551 backend_cfg.channels = audio_channel_count_from_out_mask(usecase->stream.out->channel_mask); in platform_check_and_set_playback_backend_cfg()
4557 backend_cfg.sample_rate, backend_cfg.channels, backend_idx, usecase->id, in platform_check_and_set_playback_backend_cfg()
4565 if ((platform_check_playback_backend_cfg(adev, usecase, new_snd_devices[i], in platform_check_and_set_playback_backend_cfg()
4576 struct audio_usecase *usecase, snd_device_t snd_device) in platform_check_and_set_capture_backend_cfg() argument
4583 if (usecase->type == PCM_CAPTURE) { in platform_check_and_set_capture_backend_cfg()
4584 backend_cfg.format = usecase->stream.in->format; in platform_check_and_set_capture_backend_cfg()
4585 backend_cfg.channels = audio_channel_count_from_in_mask(usecase->stream.in->channel_mask); in platform_check_and_set_capture_backend_cfg()
4598 backend_idx, usecase->id, in platform_check_and_set_capture_backend_cfg()
5024 struct audio_usecase *usecase = get_usecase_from_list(my_data->adev, uc_id); in platform_get_active_microphones() local
5025 if (mic_count == NULL || mic_array == NULL || usecase == NULL) { in platform_get_active_microphones()
5032 platform_get_input_snd_device(platform, usecase->stream.in, AUDIO_DEVICE_NONE); in platform_get_active_microphones()