Lines Matching refs:usecase

120                                        struct audio_usecase *usecase)  in audio_extn_utils_send_app_type_cfg_hfp()  argument
123 int pcm_device_id, acdb_dev_id = 0, snd_device = usecase->out_snd_device; in audio_extn_utils_send_app_type_cfg_hfp()
129 if (usecase->type != PCM_HFP_CALL) { in audio_extn_utils_send_app_type_cfg_hfp()
134 if ((usecase->id != USECASE_AUDIO_HFP_SCO) && in audio_extn_utils_send_app_type_cfg_hfp()
135 (usecase->id != USECASE_AUDIO_HFP_SCO_WB)) { in audio_extn_utils_send_app_type_cfg_hfp()
141 snd_device = usecase->out_snd_device; in audio_extn_utils_send_app_type_cfg_hfp()
142 pcm_device_id = platform_get_pcm_device_id(usecase->id, PCM_PLAYBACK); in audio_extn_utils_send_app_type_cfg_hfp()
151 if (usecase->type == PCM_HFP_CALL) { in audio_extn_utils_send_app_type_cfg_hfp()
178 snd_device = usecase->in_snd_device; in audio_extn_utils_send_app_type_cfg_hfp()
212 struct audio_usecase *usecase, in derive_capture_app_type_cfg() argument
216 if (usecase->stream.in == NULL) { in derive_capture_app_type_cfg()
219 struct stream_in *in = usecase->stream.in; in derive_capture_app_type_cfg()
225 usecase->in_snd_device, in derive_capture_app_type_cfg()
265 struct audio_usecase *usecase, in derive_playback_app_type_cfg() argument
269 if (usecase->stream.out == NULL) { in derive_playback_app_type_cfg()
272 struct stream_out *out = usecase->stream.out; in derive_playback_app_type_cfg()
281 usecase->out_snd_device, in derive_playback_app_type_cfg()
332 struct audio_usecase *usecase) in derive_acdb_dev_id() argument
337 if (usecase->type == PCM_PLAYBACK) { in derive_acdb_dev_id()
338 return platform_get_snd_device_acdb_id(usecase->out_snd_device); in derive_acdb_dev_id()
339 } else if(usecase->type == PCM_CAPTURE) { in derive_acdb_dev_id()
340 return platform_get_snd_device_acdb_id(usecase->in_snd_device); in derive_acdb_dev_id()
346 struct audio_usecase *usecase) in audio_extn_utils_send_app_type_cfg() argument
360 if (usecase->type == PCM_HFP_CALL) { in audio_extn_utils_send_app_type_cfg()
361 return audio_extn_utils_send_app_type_cfg_hfp(adev, usecase); in audio_extn_utils_send_app_type_cfg()
367 if (usecase->type == PCM_PLAYBACK) { in audio_extn_utils_send_app_type_cfg()
369 usecase, in audio_extn_utils_send_app_type_cfg()
372 } else if (usecase->type == PCM_CAPTURE) { in audio_extn_utils_send_app_type_cfg()
374 usecase, in audio_extn_utils_send_app_type_cfg()
378 ALOGE("%s: Invalid uc type : 0x%x", __func__, usecase->type); in audio_extn_utils_send_app_type_cfg()
384 usecase->type); in audio_extn_utils_send_app_type_cfg()
388 if (usecase->type == PCM_PLAYBACK) { in audio_extn_utils_send_app_type_cfg()
389 if (platform_can_split_snd_device(usecase->out_snd_device, in audio_extn_utils_send_app_type_cfg()
391 new_snd_device[0] = usecase->out_snd_device; in audio_extn_utils_send_app_type_cfg()
393 } else if (usecase->type == PCM_CAPTURE) in audio_extn_utils_send_app_type_cfg()
394 new_snd_device[0] = usecase->in_snd_device; in audio_extn_utils_send_app_type_cfg()
396 pcm_device_id = platform_get_pcm_device_id(usecase->id, usecase->type); in audio_extn_utils_send_app_type_cfg()
411 usecase->type, in audio_extn_utils_send_app_type_cfg()
443 struct audio_usecase *usecase) in audio_extn_utils_send_audio_calibration() argument
445 int type = usecase->type; in audio_extn_utils_send_audio_calibration()
448 if (type == PCM_PLAYBACK && usecase->stream.out != NULL) { in audio_extn_utils_send_audio_calibration()
449 struct stream_out *out = usecase->stream.out; in audio_extn_utils_send_audio_calibration()
453 platform_send_audio_calibration_v2(adev->platform, usecase, in audio_extn_utils_send_audio_calibration()
456 } else if (type == PCM_CAPTURE && usecase->stream.in != NULL) { in audio_extn_utils_send_audio_calibration()
457 struct stream_in *in = usecase->stream.in; in audio_extn_utils_send_audio_calibration()
461 platform_send_audio_calibration_v2(adev->platform, usecase, in audio_extn_utils_send_audio_calibration()
467 platform_send_audio_calibration_v2(adev->platform, usecase, app_type, in audio_extn_utils_send_audio_calibration()