Lines Matching full:session
44 struct voice_session *session = NULL;
47 ret = voice_extn_get_session_from_use_case(adev, usecase_id, &session);
49 session = &adev->voice.session[VOICE_SESS_IDX];
52 return session;
111 struct voice_session *session = NULL;
115 session = (struct voice_session *)voice_get_session_from_use_case(adev, usecase_id);
124 session->state.current = CALL_INACTIVE;
130 ret = platform_stop_voice_call(adev->platform, session->vsid);
133 if (session->pcm_rx) {
134 pcm_close(session->pcm_rx);
135 session->pcm_rx = NULL;
137 if (session->pcm_tx) {
138 pcm_close(session->pcm_tx);
139 session->pcm_tx = NULL;
161 struct voice_session *session = NULL;
166 session = (struct voice_session *)voice_get_session_from_use_case(adev, usecase_id);
191 session->pcm_tx = pcm_open(adev->snd_card,
194 if (session->pcm_tx && !pcm_is_ready(session->pcm_tx)) {
195 ALOGE("%s: %s", __func__, pcm_get_error(session->pcm_tx));
202 session->pcm_rx = pcm_open(adev->snd_card,
205 if (session->pcm_rx && !pcm_is_ready(session->pcm_rx)) {
206 ALOGE("%s: %s", __func__, pcm_get_error(session->pcm_rx));
211 pcm_start(session->pcm_tx);
212 pcm_start(session->pcm_rx);
220 ret = platform_start_voice_call(adev->platform, session->vsid);
226 session->state.current = CALL_ACTIVE;
244 call_state = (adev->voice.session[VOICE_SESS_IDX].state.current == CALL_ACTIVE) ? true : false;
512 adev->voice.session[i].pcm_rx = NULL;
513 adev->voice.session[i].pcm_tx = NULL;
514 adev->voice.session[i].state.current = CALL_INACTIVE;
515 adev->voice.session[i].state.new = CALL_INACTIVE;
516 adev->voice.session[i].vsid = VOICE_VSID;