Home | History | Annotate | Download | only in factory

Lines Matching refs:fx

74     effect_entry_t *fx = (effect_entry_t *)self;
76 if (fx->lib == NULL) {
80 pthread_mutex_lock(&fx->lib->lock);
83 ret = (*fx->subItfe)->process(fx->subItfe, inBuffer, outBuffer);
84 pthread_mutex_unlock(&fx->lib->lock);
99 effect_entry_t *fx = (effect_entry_t *)self;
101 if (fx->lib == NULL) {
105 pthread_mutex_lock(&fx->lib->lock);
108 ret = (*fx->subItfe)->command(fx->subItfe, cmdCode, cmdSize, pCmdData, replySize, pReplyData);
109 pthread_mutex_unlock(&fx->lib->lock);
120 effect_entry_t *fx = (effect_entry_t *)self;
122 if (fx->lib == NULL) {
126 pthread_mutex_lock(&fx->lib->lock);
129 ret = (*fx->subItfe)->get_descriptor(fx->subItfe, desc);
130 pthread_mutex_unlock(&fx->lib->lock);
140 effect_entry_t *fx = (effect_entry_t *)self;
142 if (fx->lib == NULL) {
146 pthread_mutex_lock(&fx->lib->lock);
149 if ((*fx->subItfe)->process_reverse != NULL) {
150 ret = (*fx->subItfe)->process_reverse(fx->subItfe, inBuffer, outBuffer);
154 pthread_mutex_unlock(&fx->lib->lock);
266 effect_entry_t *fx;
296 ALOGW("EffectCreate() library %s: could not create fx %s, error %d", l->name, d->name, ret);
301 fx = (effect_entry_t *)malloc(sizeof(effect_entry_t));
302 fx->subItfe = itfe;
304 fx->itfe = (struct effect_interface_s *)&gInterfaceWithReverse;
307 fx->itfe = (struct effect_interface_s *)&gInterface;
310 fx->lib = l;
313 e->object = fx;
317 *pHandle = (effect_handle_t)fx;
328 effect_entry_t *fx;
348 fx = (effect_entry_t *)e1->object;
361 if (fx->lib == NULL) {
362 ALOGW("EffectRelease() fx %p library already unloaded", handle);
364 pthread_mutex_lock(&fx->lib->lock);
365 fx->lib->desc->release_effect(fx->subItfe);
366 pthread_mutex_unlock(&fx->lib->lock);
368 free(fx);