Lines Matching refs:uc_info
62 struct audio_usecase *uc_info; in voice_stop_usecase() local
89 uc_info = get_usecase_from_list(adev, usecase_id); in voice_stop_usecase()
90 if (uc_info == NULL) { in voice_stop_usecase()
97 disable_audio_route(adev, uc_info); in voice_stop_usecase()
100 disable_snd_device(adev, uc_info->out_snd_device); in voice_stop_usecase()
101 disable_snd_device(adev, uc_info->in_snd_device); in voice_stop_usecase()
103 list_remove(&uc_info->list); in voice_stop_usecase()
104 free(uc_info); in voice_stop_usecase()
113 struct audio_usecase *uc_info; in voice_start_usecase() local
127 uc_info = (struct audio_usecase *)calloc(1, sizeof(struct audio_usecase)); in voice_start_usecase()
128 if (!uc_info) { in voice_start_usecase()
133 uc_info->id = usecase_id; in voice_start_usecase()
134 uc_info->type = VOICE_CALL; in voice_start_usecase()
135 uc_info->stream.out = adev->current_call_output ; in voice_start_usecase()
136 uc_info->devices = adev->current_call_output ->devices; in voice_start_usecase()
137 uc_info->in_snd_device = SND_DEVICE_NONE; in voice_start_usecase()
138 uc_info->out_snd_device = SND_DEVICE_NONE; in voice_start_usecase()
140 list_add_tail(&adev->usecase_list, &uc_info->list); in voice_start_usecase()
144 pcm_dev_rx_id = platform_get_pcm_device_id(uc_info->id, PCM_PLAYBACK); in voice_start_usecase()
145 pcm_dev_tx_id = platform_get_pcm_device_id(uc_info->id, PCM_CAPTURE); in voice_start_usecase()
149 __func__, pcm_dev_rx_id, pcm_dev_tx_id, uc_info->id); in voice_start_usecase()