• Home
  • Raw
  • Download

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()
242 if (mHandle->channelMask == AUDIO_CHANNEL_IN_FRONT_BACK) { in read()
243 mHandle->module->setFlags(mParent->mDevSettingsFlag | DMIC_FLAG); in read()
246 if((!strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL)) || in read()
247 (!strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP))) { in read()
251mHandle->module->route(mHandle, (mDevices | AudioSystem::DEVICE_IN_PROXY) , AudioSystem::MODE_IN_C… in read()
255 mHandle->module->route(mHandle, mDevices , AudioSystem::MODE_IN_COMMUNICATION); in read()
259 if((mHandle->devices == AudioSystem::DEVICE_IN_ANLG_DOCK_HEADSET)|| in read()
260 (mHandle->devices == AudioSystem::DEVICE_OUT_ANLG_DOCK_HEADSET)){ in read()
261 mHandle->module->route(mHandle, AudioSystem::DEVICE_IN_PROXY , mParent->mode()); in read()
266 mHandle->module->route(mHandle, mDevices , mParent->mode()); in read()
269 if (!strcmp(mHandle->useCase, SND_USE_CASE_VERB_HIFI_REC) || in read()
270 !strcmp(mHandle->useCase, SND_USE_CASE_VERB_HIFI_LOWLATENCY_REC) || in read()
271 !strcmp(mHandle->useCase, SND_USE_CASE_VERB_FM_REC) || in read()
272 !strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL) || in read()
273 !strcmp(mHandle->useCase, SND_USE_CASE_VERB_FM_A2DP_REC) || in read()
274 !strcmp(mHandle->useCase, SND_USE_CASE_VERB_UL_DL_REC) || in read()
275 !strcmp(mHandle->useCase, SND_USE_CASE_VERB_DL_REC) || in read()
276 !strcmp(mHandle->useCase, SND_USE_CASE_VERB_INCALL_REC)) { in read()
277 snd_use_case_set(mHandle->ucMgr, "_verb", mHandle->useCase); in read()
279 snd_use_case_set(mHandle->ucMgr, "_enamod", mHandle->useCase); in read()
281 if((!strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL)) || in read()
282 (!strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP))) { in read()
283 err = mHandle->module->startVoipCall(mHandle); in read()
286 mHandle->module->open(mHandle); in read()
287 if(mHandle->handle == NULL) { in read()
294 if((mHandle->devices == AudioSystem::DEVICE_IN_ANLG_DOCK_HEADSET)|| in read()
295 (mHandle->devices == AudioSystem::DEVICE_OUT_ANLG_DOCK_HEADSET)){ in read()
296 if((!strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL)) || in read()
297 (!strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP))) { in read()
314 if(!strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL) || in read()
315 !strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP)) { in read()
325 period_size = mHandle->periodSize; in read()
334 int period_bytes = mHandle->handle->period_size; in read()
369 while (mHandle->handle && read_pending > 0) { in read()
370 n = pcm_read(mHandle->handle, &mSurroundInputBuffer[read], in read()
413 } while (mHandle->handle && processed < samples); in read()
425 n = pcm_read(mHandle->handle, buffer, in read()
431 pcm_close(mHandle->handle); in read()
432 mHandle->handle = NULL; in read()
433 …if((!strncmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL, strlen(SND_USE_CASE_VERB_IP_VOICECA… in read()
434 … (!strncmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP, strlen(SND_USE_CASE_MOD_PLAY_VOIP)))) { in read()
435 pcm_close(mHandle->rxHandle); in read()
436 mHandle->rxHandle = NULL; in read()
437 mHandle->module->startVoipCall(mHandle); in read()
440 mHandle->module->open(mHandle); in read()
442 if(mHandle->handle == NULL) { in read()
465 } while (mHandle->handle && read < bytes); in read()
490 if((!strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL)) || in close()
491 (!strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP))) { in close()
516 if((!strcmp(mHandle->useCase, SND_USE_CASE_VERB_INCALL_REC)) || in close()
517 (!strcmp(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_VOICE))) { in close()
579 if((!strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL)) || in standby()
580 (!strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP))) { in standby()
587 if((!strcmp(mHandle->useCase, SND_USE_CASE_VERB_INCALL_REC)) || in standby()
588 (!strcmp(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_VOICE))) { in standby()
594 mHandle->module->standby(mHandle); in standby()
602 if (mHandle->channelMask == AUDIO_CHANNEL_IN_FRONT_BACK) { in standby()
603 mHandle->module->setFlags(mParent->mDevSettingsFlag); in standby()