Lines Matching refs:session

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