Lines Matching refs:mHandle
87 if(!strcmp(mHandle->useCase, SND_USE_CASE_VERB_HIFI_LOW_POWER) || in setVolume()
88 !strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_LPA)) { in setVolume()
91 mHandle->module->setLpaVolume(vol); in setVolume()
94 else if(!strcmp(mHandle->useCase, SND_USE_CASE_VERB_HIFI_TUNNEL) || in setVolume()
95 !strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_TUNNEL)) { in setVolume()
98 mHandle->module->setCompressedVolume(vol); in setVolume()
101 else if(!strncmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL, in setVolume()
102 sizeof(mHandle->useCase)) || !strncmp(mHandle->useCase, in setVolume()
103 SND_USE_CASE_MOD_PLAY_VOIP, sizeof(mHandle->useCase))) { in setVolume()
123 if((mHandle->handle == NULL) && (mHandle->rxHandle == NULL) && in write()
124 (strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL)) && in write()
125 (strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP))) { in write()
128 ALOGD("mHandle->useCase: %s", mHandle->useCase); in write()
129 snd_use_case_get(mHandle->ucMgr, "_verb", (const char **)&use_case); in write()
131 if(!strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP)){ in write()
132 strlcpy(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL, in write()
134 } else if(!strcmp(mHandle->useCase,SND_USE_CASE_MOD_PLAY_MUSIC2)) { in write()
135 strlcpy(mHandle->useCase, SND_USE_CASE_VERB_HIFI2, in write()
137 } else if (!strcmp(mHandle->useCase,SND_USE_CASE_MOD_PLAY_MUSIC)){ in write()
138 strlcpy(mHandle->useCase, SND_USE_CASE_VERB_HIFI, in write()
140 } else if(!strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_LOWLATENCY_MUSIC)) { in write()
141 strlcpy(mHandle->useCase, SND_USE_CASE_VERB_HIFI_LOWLATENCY_MUSIC, in write()
145 if(!strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL)){ in write()
146 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP, in write()
148 } else if(!strcmp(mHandle->useCase,SND_USE_CASE_VERB_HIFI2)) { in write()
149 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_PLAY_MUSIC2, in write()
151 } else if (!strcmp(mHandle->useCase,SND_USE_CASE_VERB_HIFI)){ in write()
152 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_PLAY_MUSIC, in write()
154 } else if(!strcmp(mHandle->useCase, SND_USE_CASE_VERB_HIFI_LOWLATENCY_MUSIC)) { in write()
155 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_PLAY_LOWLATENCY_MUSIC, in write()
160 if((!strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL)) || in write()
161 (!strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP))) { in write()
167 mHandle->module->route(mHandle, mDevices , mParent->mode()); in write()
171 mHandle->module->route(mHandle, mDevices , AudioSystem::MODE_IN_COMMUNICATION); in write()
178 mHandle->module->route(mHandle, mDevices , mParent->mode()); in write()
181 mHandle->module->route(mHandle, mDevices , mParent->mode()); in write()
183 if (!strcmp(mHandle->useCase, SND_USE_CASE_VERB_HIFI) || in write()
184 !strcmp(mHandle->useCase, SND_USE_CASE_VERB_HIFI2) || in write()
185 !strcmp(mHandle->useCase, SND_USE_CASE_VERB_HIFI_LOWLATENCY_MUSIC) || in write()
186 !strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL)) { in write()
187 snd_use_case_set(mHandle->ucMgr, "_verb", mHandle->useCase); in write()
189 snd_use_case_set(mHandle->ucMgr, "_enamod", mHandle->useCase); in write()
191 if((!strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL)) || in write()
192 (!strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP))) { in write()
193 err = mHandle->module->startVoipCall(mHandle); in write()
196 mHandle->module->open(mHandle); in write()
197 if(mHandle->handle == NULL) { in write()
203 if((mHandle->devices == AudioSystem::DEVICE_IN_ANLG_DOCK_HEADSET)|| in write()
204 (mHandle->devices == AudioSystem::DEVICE_OUT_ANLG_DOCK_HEADSET)){ in write()
205 if((!strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL)) || in write()
206 (!strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP))) { in write()
225 if(!strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL) || in write()
226 !strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP)) { in write()
237 period_size = mHandle->periodSize; in write()
242 if((mParent->mVoipStreamCount) && (mHandle->rxHandle != 0)) { in write()
243 n = pcm_write(mHandle->rxHandle, in write()
246 } else if (mHandle->handle != 0){ in write()
247 n = pcm_write(mHandle->handle, in write()
253 if (mHandle->handle != NULL) { in write()
255 pcm_close(mHandle->handle); in write()
256 mHandle->handle = NULL; in write()
257 …if((!strncmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL, strlen(SND_USE_CASE_VERB_IP_VOICECA… in write()
258 … (!strncmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP, strlen(SND_USE_CASE_MOD_PLAY_VOIP)))) { in write()
259 pcm_close(mHandle->rxHandle); in write()
260 mHandle->rxHandle = NULL; in write()
261 mHandle->module->startVoipCall(mHandle); in write()
264 mHandle->module->open(mHandle); in write()
265 if(mHandle->handle == NULL) { in write()
280 } while ((mHandle->handle||(mHandle->rxHandle && mParent->mVoipStreamCount)) && sent < bytes); in write()
302 if((!strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL)) || in close()
303 (!strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP))) { in close()
320 else if((!strcmp(mHandle->useCase, SND_USE_CASE_VERB_HIFI_LOW_POWER)) || in close()
321 (!strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_LPA))) { in close()
341 if((!strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL)) || in standby()
342 (!strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP))) { in standby()
347 if((!strcmp(mHandle->useCase, SND_USE_CASE_VERB_HIFI_LOW_POWER)) || in standby()
348 (!strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_LPA))) { in standby()
357 mHandle->module->standby(mHandle); in standby()
373 return USEC_TO_MSEC (mHandle->latency); in latency()