Lines Matching refs:mHandle
138 if((mHandle->handle == NULL) && (mHandle->rxHandle == NULL) && in read()
139 (strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL)) && in read()
140 (strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP))) { in read()
142 snd_use_case_get(mHandle->ucMgr, "_verb", (const char **)&use_case); in read()
144 if ((mHandle->devices == AudioSystem::DEVICE_IN_VOICE_CALL) && in read()
152 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_VOICE, in read()
153 sizeof(mHandle->useCase)); in read()
158 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_VOICE_UL_DL, in read()
159 sizeof(mHandle->useCase)); in read()
165 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_VOICE, in read()
166 sizeof(mHandle->useCase)); in read()
171 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_VOICE_DL, in read()
172 sizeof(mHandle->useCase)); in read()
176 } else if(mHandle->devices == AudioSystem::DEVICE_IN_FM_RX) { in read()
177 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_FM, sizeof(mHandle->useCase)); in read()
178 } else if (mHandle->devices == AudioSystem::DEVICE_IN_FM_RX_A2DP) { in read()
179 … strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_A2DP_FM, sizeof(mHandle->useCase)); in read()
181 } else if(!strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP)) { in read()
182 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP, sizeof(mHandle->useCase)); in read()
187 … strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_LOWLATENCY_MUSIC, sizeof(mHandle->useCase)); in read()
189 … strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_MUSIC, sizeof(mHandle->useCase)); in read()
193 if ((mHandle->devices == AudioSystem::DEVICE_IN_VOICE_CALL) && in read()
201 strlcpy(mHandle->useCase, SND_USE_CASE_VERB_INCALL_REC, in read()
202 sizeof(mHandle->useCase)); in read()
207 strlcpy(mHandle->useCase, SND_USE_CASE_VERB_UL_DL_REC, in read()
208 sizeof(mHandle->useCase)); in read()
214 strlcpy(mHandle->useCase, SND_USE_CASE_VERB_INCALL_REC, in read()
215 sizeof(mHandle->useCase)); in read()
220 strlcpy(mHandle->useCase, SND_USE_CASE_VERB_DL_REC, in read()
221 sizeof(mHandle->useCase)); in read()
225 } else if(mHandle->devices == AudioSystem::DEVICE_IN_FM_RX) { in read()
226 strlcpy(mHandle->useCase, SND_USE_CASE_VERB_FM_REC, sizeof(mHandle->useCase)); in read()
227 } else if (mHandle->devices == AudioSystem::DEVICE_IN_FM_RX_A2DP) { in read()
228 strlcpy(mHandle->useCase, SND_USE_CASE_VERB_FM_A2DP_REC, sizeof(mHandle->useCase)); in read()
230 } else if(!strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL)){ in read()
231 … strlcpy(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL, sizeof(mHandle->useCase)); in read()
236 … strlcpy(mHandle->useCase, SND_USE_CASE_VERB_HIFI_LOWLATENCY_REC, sizeof(mHandle->useCase)); in read()
238 … strlcpy(mHandle->useCase, SND_USE_CASE_VERB_HIFI_REC, sizeof(mHandle->useCase)); in read()
243 if((!strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL)) || in read()
244 (!strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP))) { in read()
248 …mHandle->module->route(mHandle, (mDevices | AudioSystem::DEVICE_IN_PROXY) , AudioSystem::MODE_IN_C… in read()
252 mHandle->module->route(mHandle, mDevices , AudioSystem::MODE_IN_COMMUNICATION); in read()
256 if((mHandle->devices == AudioSystem::DEVICE_IN_ANLG_DOCK_HEADSET)|| in read()
257 (mHandle->devices == AudioSystem::DEVICE_OUT_ANLG_DOCK_HEADSET)){ in read()
258 mHandle->module->route(mHandle, AudioSystem::DEVICE_IN_PROXY , mParent->mode()); in read()
263 mHandle->module->route(mHandle, mDevices , mParent->mode()); in read()
266 if (!strcmp(mHandle->useCase, SND_USE_CASE_VERB_HIFI_REC) || in read()
267 !strcmp(mHandle->useCase, SND_USE_CASE_VERB_HIFI_LOWLATENCY_REC) || in read()
268 !strcmp(mHandle->useCase, SND_USE_CASE_VERB_FM_REC) || in read()
269 !strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL) || in read()
270 !strcmp(mHandle->useCase, SND_USE_CASE_VERB_FM_A2DP_REC) || in read()
271 !strcmp(mHandle->useCase, SND_USE_CASE_VERB_UL_DL_REC) || in read()
272 !strcmp(mHandle->useCase, SND_USE_CASE_VERB_DL_REC) || in read()
273 !strcmp(mHandle->useCase, SND_USE_CASE_VERB_INCALL_REC)) { in read()
274 snd_use_case_set(mHandle->ucMgr, "_verb", mHandle->useCase); in read()
276 snd_use_case_set(mHandle->ucMgr, "_enamod", mHandle->useCase); in read()
278 if((!strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL)) || in read()
279 (!strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP))) { in read()
280 err = mHandle->module->startVoipCall(mHandle); in read()
283 mHandle->module->open(mHandle); in read()
284 if(mHandle->handle == NULL) { in read()
291 if((mHandle->devices == AudioSystem::DEVICE_IN_ANLG_DOCK_HEADSET)|| in read()
292 (mHandle->devices == AudioSystem::DEVICE_OUT_ANLG_DOCK_HEADSET)){ in read()
293 if((!strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL)) || in read()
294 (!strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP))) { in read()
311 if(!strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL) || in read()
312 !strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP)) { in read()
322 period_size = mHandle->periodSize; in read()
331 int period_bytes = mHandle->handle->period_size; in read()
366 while (mHandle->handle && read_pending > 0) { in read()
367 n = pcm_read(mHandle->handle, &mSurroundInputBuffer[read], in read()
410 } while (mHandle->handle && processed < samples); in read()
422 n = pcm_read(mHandle->handle, buffer, in read()
428 pcm_close(mHandle->handle); in read()
429 mHandle->handle = NULL; in read()
430 …if((!strncmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL, strlen(SND_USE_CASE_VERB_IP_VOICECA… in read()
431 … (!strncmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP, strlen(SND_USE_CASE_MOD_PLAY_VOIP)))) { in read()
432 pcm_close(mHandle->rxHandle); in read()
433 mHandle->rxHandle = NULL; in read()
434 mHandle->module->startVoipCall(mHandle); in read()
437 mHandle->module->open(mHandle); in read()
439 if(mHandle->handle == NULL) { in read()
462 } while (mHandle->handle && read < bytes); in read()
487 if((!strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL)) || in close()
488 (!strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP))) { in close()
513 if((!strcmp(mHandle->useCase, SND_USE_CASE_VERB_INCALL_REC)) || in close()
514 (!strcmp(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_VOICE))) { in close()
576 if((!strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL)) || in standby()
577 (!strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP))) { in standby()
584 if((!strcmp(mHandle->useCase, SND_USE_CASE_VERB_INCALL_REC)) || in standby()
585 (!strcmp(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_VOICE))) { in standby()
591 mHandle->module->standby(mHandle); in standby()