Lines Matching refs:session
45 struct voice_session *session = NULL; in voice_get_session_from_use_case() local
48 ret = voice_extn_get_session_from_use_case(adev, usecase_id, &session); in voice_get_session_from_use_case()
50 session = &adev->voice.session[VOICE_SESS_IDX]; in voice_get_session_from_use_case()
53 return session; in voice_get_session_from_use_case()
106 struct voice_session *session = NULL; in voice_stop_usecase() local
110 session = (struct voice_session *)voice_get_session_from_use_case(adev, usecase_id); in voice_stop_usecase()
119 session->state.current = CALL_INACTIVE; in voice_stop_usecase()
125 ret = platform_stop_voice_call(adev->platform, session->vsid); in voice_stop_usecase()
128 if (session->pcm_rx) { in voice_stop_usecase()
129 pcm_close(session->pcm_rx); in voice_stop_usecase()
130 session->pcm_rx = NULL; in voice_stop_usecase()
132 if (session->pcm_tx) { in voice_stop_usecase()
133 pcm_close(session->pcm_tx); in voice_stop_usecase()
134 session->pcm_tx = NULL; in voice_stop_usecase()
161 struct voice_session *session = NULL; in voice_start_usecase() local
166 session = (struct voice_session *)voice_get_session_from_use_case(adev, usecase_id); in voice_start_usecase()
192 session->pcm_tx = pcm_open(adev->snd_card, in voice_start_usecase()
195 if (session->pcm_tx && !pcm_is_ready(session->pcm_tx)) { in voice_start_usecase()
196 ALOGE("%s: %s", __func__, pcm_get_error(session->pcm_tx)); in voice_start_usecase()
203 session->pcm_rx = pcm_open(adev->snd_card, in voice_start_usecase()
206 if (session->pcm_rx && !pcm_is_ready(session->pcm_rx)) { in voice_start_usecase()
207 ALOGE("%s: %s", __func__, pcm_get_error(session->pcm_rx)); in voice_start_usecase()
215 ret = pcm_start(session->pcm_tx); in voice_start_usecase()
219 ret = pcm_start(session->pcm_rx); in voice_start_usecase()
231 ret = platform_start_voice_call(adev->platform, session->vsid); in voice_start_usecase()
237 session->state.current = CALL_ACTIVE; in voice_start_usecase()
255 … call_state = (adev->voice.session[VOICE_SESS_IDX].state.current == CALL_ACTIVE) ? true : false; in voice_is_call_state_active()
556 adev->voice.session[i].pcm_rx = NULL; in voice_init()
557 adev->voice.session[i].pcm_tx = NULL; in voice_init()
558 adev->voice.session[i].state.current = CALL_INACTIVE; in voice_init()
559 adev->voice.session[i].state.new = CALL_INACTIVE; in voice_init()
560 adev->voice.session[i].vsid = VOICE_VSID; in voice_init()