• Home
  • Raw
  • Download

Lines Matching refs:pContext

58     EffectContext* pContext;  in EffectProxyCreate()  local
64 pContext = new EffectContext; in EffectProxyCreate()
65 pContext->sessionId = sessionId; in EffectProxyCreate()
66 pContext->ioId = ioId; in EffectProxyCreate()
67 pContext->uuid = *uuid; in EffectProxyCreate()
68 pContext->common_itfe = &gEffectInterface; in EffectProxyCreate()
72 pContext->eHandle[SUB_FX_HOST] = pContext->eHandle[SUB_FX_OFFLOAD] = NULL; in EffectProxyCreate()
78 pContext->sube = new sub_effect_entry_t*[SUB_FX_COUNT]; in EffectProxyCreate()
79 pContext->desc = new effect_descriptor_t[SUB_FX_COUNT]; in EffectProxyCreate()
80 pContext->aeli = new audio_effect_library_t*[SUB_FX_COUNT]; in EffectProxyCreate()
88 delete[] pContext->sube; in EffectProxyCreate()
89 delete[] pContext->desc; in EffectProxyCreate()
90 delete[] pContext->aeli; in EffectProxyCreate()
91 delete pContext; in EffectProxyCreate()
104 pContext->sube[SUB_FX_OFFLOAD] = sube[0]; in EffectProxyCreate()
105 pContext->desc[SUB_FX_OFFLOAD] = desc[0]; in EffectProxyCreate()
106 pContext->aeli[SUB_FX_OFFLOAD] = aeli[0]; in EffectProxyCreate()
107 pContext->sube[SUB_FX_HOST] = sube[1]; in EffectProxyCreate()
108 pContext->desc[SUB_FX_HOST] = desc[1]; in EffectProxyCreate()
109 pContext->aeli[SUB_FX_HOST] = aeli[1]; in EffectProxyCreate()
113 pContext->sube[SUB_FX_HOST] = sube[0]; in EffectProxyCreate()
114 pContext->desc[SUB_FX_HOST] = desc[0]; in EffectProxyCreate()
115 pContext->aeli[SUB_FX_HOST] = aeli[0]; in EffectProxyCreate()
116 pContext->sube[SUB_FX_OFFLOAD] = sube[1]; in EffectProxyCreate()
117 pContext->desc[SUB_FX_OFFLOAD] = desc[1]; in EffectProxyCreate()
118 pContext->aeli[SUB_FX_OFFLOAD] = aeli[1]; in EffectProxyCreate()
124 delete[] pContext->sube; in EffectProxyCreate()
125 delete[] pContext->desc; in EffectProxyCreate()
126 delete[] pContext->aeli; in EffectProxyCreate()
127 delete pContext; in EffectProxyCreate()
134 effect_uuid_t uuid_print = pContext->desc[SUB_FX_HOST].uuid; in EffectProxyCreate()
147 pContext->replySize = PROXY_REPLY_SIZE_DEFAULT; in EffectProxyCreate()
148 pContext->replyData = (char *)malloc(PROXY_REPLY_SIZE_DEFAULT); in EffectProxyCreate()
150 *pHandle = (effect_handle_t)pContext; in EffectProxyCreate()
156 EffectContext * pContext = (EffectContext *)handle; in EffectProxyRelease() local
157 if (pContext == NULL) { in EffectProxyRelease()
162 delete[] pContext->desc; in EffectProxyRelease()
163 free(pContext->replyData); in EffectProxyRelease()
165 if (pContext->eHandle[SUB_FX_HOST]) in EffectProxyRelease()
166 pContext->aeli[SUB_FX_HOST]->release_effect(pContext->eHandle[SUB_FX_HOST]); in EffectProxyRelease()
167 if (pContext->eHandle[SUB_FX_OFFLOAD]) in EffectProxyRelease()
168 pContext->aeli[SUB_FX_OFFLOAD]->release_effect(pContext->eHandle[SUB_FX_OFFLOAD]); in EffectProxyRelease()
169 delete[] pContext->aeli; in EffectProxyRelease()
170 delete[] pContext->sube; in EffectProxyRelease()
171 delete pContext; in EffectProxyRelease()
172 pContext = NULL; in EffectProxyRelease()
194 EffectContext *pContext = (EffectContext *) self; in Effect_process() local
196 if (pContext != NULL) { in Effect_process()
197 int index = pContext->index; in Effect_process()
200 ret = (*pContext->eHandle[index])->process(pContext->eHandle[index], in Effect_process()
215 EffectContext *pContext = (EffectContext *) self; in Effect_command() local
217 if (pContext == NULL) { in Effect_command()
221 if (pContext->eHandle[SUB_FX_HOST] == NULL) { in Effect_command()
223 status = pContext->aeli[SUB_FX_HOST]->create_effect( in Effect_command()
224 &pContext->desc[SUB_FX_HOST].uuid, in Effect_command()
225 pContext->sessionId, pContext->ioId, in Effect_command()
226 &(pContext->eHandle[SUB_FX_HOST])); in Effect_command()
227 if (status != NO_ERROR || (pContext->eHandle[SUB_FX_HOST] == NULL)) { in Effect_command()
232 if (pContext->eHandle[SUB_FX_OFFLOAD] == NULL) { in Effect_command()
234 status = pContext->aeli[SUB_FX_OFFLOAD]->create_effect( in Effect_command()
235 &pContext->desc[SUB_FX_OFFLOAD].uuid, in Effect_command()
236 pContext->sessionId, pContext->ioId, in Effect_command()
237 &(pContext->eHandle[SUB_FX_OFFLOAD])); in Effect_command()
238 if (status != NO_ERROR || (pContext->eHandle[SUB_FX_OFFLOAD] == NULL)) { in Effect_command()
240 pContext->eHandle[SUB_FX_OFFLOAD] = NULL; in Effect_command()
244 pContext->index = SUB_FX_HOST; in Effect_command()
264 pContext->index = offloadParam->isOffload ? SUB_FX_OFFLOAD : SUB_FX_HOST; in Effect_command()
267 if (pContext->eHandle[pContext->index] == NULL) { in Effect_command()
272 pContext->ioId = offloadParam->ioHandle; in Effect_command()
273 ALOGV("Effect_command()CMD_OFFLOAD index:%d io %d", pContext->index, pContext->ioId); in Effect_command()
277 if (pContext->eHandle[SUB_FX_OFFLOAD]) { in Effect_command()
279 return (*pContext->eHandle[SUB_FX_OFFLOAD])->command( in Effect_command()
280 pContext->eHandle[SUB_FX_OFFLOAD], cmdCode, cmdSize, in Effect_command()
290 int index = pContext->index; in Effect_command()
305 tmpSize = pContext->replySize; in Effect_command()
309 if (tmpSize > pContext->replySize) { in Effect_command()
311 pContext->replyData = (char *)realloc(pContext->replyData, tmpSize); in Effect_command()
312 pContext->replySize = tmpSize; in Effect_command()
327 if (pContext->eHandle[i] == NULL) { in Effect_command()
337 subReplyData[i] = pReplyData == NULL ? NULL : pContext->replyData; in Effect_command()
339 *subStatus[i] = (*pContext->eHandle[i])->command( in Effect_command()
340 pContext->eHandle[i], cmdCode, cmdSize, in Effect_command()
352 EffectContext * pContext = (EffectContext *) self; in Effect_getDescriptor() local
356 if (pContext == NULL || pDescriptor == NULL) { in Effect_getDescriptor()
360 if (pContext->desc == NULL) { in Effect_getDescriptor()
364 desc = &pContext->desc[SUB_FX_HOST]; in Effect_getDescriptor()
366 pDescriptor->uuid = pContext->uuid; // Replace the uuid with the Proxy UUID in Effect_getDescriptor()
368 if (pContext->eHandle[SUB_FX_OFFLOAD] != NULL) in Effect_getDescriptor()