Home | History | Annotate | Download | only in hal

Lines Matching refs:session

43     struct voice_session *session = NULL;
46 ret = voice_extn_get_session_from_use_case(adev, usecase_id, &session);
48 session = &adev->voice.session[VOICE_SESS_IDX];
51 return session;
58 struct voice_session *session = NULL;
62 session = (struct voice_session *)voice_get_session_from_use_case(adev, usecase_id);
63 session->state.current = CALL_INACTIVE;
65 ret = platform_stop_voice_call(adev->platform, session->vsid);
68 if (session->pcm_rx) {
69 pcm_close(session->pcm_rx);
70 session->pcm_rx = NULL;
72 if (session->pcm_tx) {
73 pcm_close(session->pcm_tx);
74 session->pcm_tx = NULL;
103 struct voice_session *session = NULL;
108 session = (struct voice_session *)voice_get_session_from_use_case(adev, usecase_id);
133 session->pcm_rx = pcm_open(adev->snd_card,
136 if (session->pcm_rx && !pcm_is_ready(session->pcm_rx)) {
137 ALOGE("%s: %s", __func__, pcm_get_error(session->pcm_rx));
144 session->pcm_tx = pcm_open(adev->snd_card,
147 if (session->pcm_tx && !pcm_is_ready(session->pcm_tx)) {
148 ALOGE("%s: %s", __func__, pcm_get_error(session->pcm_tx));
152 pcm_start(session->pcm_rx);
153 pcm_start(session->pcm_tx);
157 ret = platform_start_voice_call(adev->platform, session->vsid);
163 session->state.current = CALL_ACTIVE;
181 call_state = (adev->voice.session[VOICE_SESS_IDX].state.current == CALL_ACTIVE) ? true : false;
445 adev->voice.session[i].pcm_rx = NULL;
446 adev->voice.session[i].pcm_tx = NULL;
447 adev->voice.session[i].state.current = CALL_INACTIVE;
448 adev->voice.session[i].state.new = CALL_INACTIVE;
449 adev->voice.session[i].vsid = VOICE_VSID;