Lines Matching refs:uc_info
247 struct audio_usecase *uc_info; in start_hfp() local
259 uc_info = (struct audio_usecase *)calloc(1, sizeof(struct audio_usecase)); in start_hfp()
260 uc_info->id = hfpmod.ucid; in start_hfp()
261 uc_info->type = PCM_HFP_CALL; in start_hfp()
262 uc_info->stream.out = adev->primary_output; in start_hfp()
263 uc_info->devices = adev->primary_output->devices; in start_hfp()
264 uc_info->in_snd_device = SND_DEVICE_NONE; in start_hfp()
265 uc_info->out_snd_device = SND_DEVICE_NONE; in start_hfp()
267 list_add_tail(&adev->usecase_list, &uc_info->list); in start_hfp()
273 pcm_dev_rx_id = platform_get_pcm_device_id(uc_info->id, PCM_PLAYBACK); in start_hfp()
274 pcm_dev_tx_id = platform_get_pcm_device_id(uc_info->id, PCM_CAPTURE); in start_hfp()
280 __func__, pcm_dev_rx_id, pcm_dev_tx_id, pcm_dev_asm_rx_id, uc_info->id); in start_hfp()
286 __func__, pcm_dev_rx_id, pcm_dev_tx_id, uc_info->id); in start_hfp()
360 struct audio_usecase *uc_info; in stop_hfp() local
383 uc_info = get_usecase_from_list(adev, hfpmod.ucid); in stop_hfp()
384 if (uc_info == NULL) { in stop_hfp()
391 disable_audio_route(adev, uc_info); in stop_hfp()
394 disable_snd_device(adev, uc_info->out_snd_device); in stop_hfp()
395 disable_snd_device(adev, uc_info->in_snd_device); in stop_hfp()
407 list_remove(&uc_info->list); in stop_hfp()
408 free(uc_info); in stop_hfp()