Lines Matching refs:param

285 status_t AudioEffect::setParameter(effect_param_t *param)  in setParameter()  argument
291 if (param == NULL || param->psize == 0 || param->vsize == 0) { in setParameter()
296 uint32_t psize = ((param->psize - 1) / sizeof(int) + 1) * sizeof(int) + param->vsize; in setParameter()
298 ALOGV("setParameter: param: %d, param2: %d", *(int *)param->data, in setParameter()
299 (param->psize == 8) ? *((int *)param->data + 1): -1); in setParameter()
301 return mIEffect->command(EFFECT_CMD_SET_PARAM, sizeof (effect_param_t) + psize, param, &size, in setParameter()
302 &param->status); in setParameter()
305 status_t AudioEffect::setParameterDeferred(effect_param_t *param) in setParameterDeferred() argument
311 if (param == NULL || param->psize == 0 || param->vsize == 0) { in setParameterDeferred()
317 int psize = ((param->psize - 1) / sizeof(int) + 1) * sizeof(int) + param->vsize; in setParameterDeferred()
325 memcpy(p, param, sizeof(effect_param_t) + psize); in setParameterDeferred()
345 status_t AudioEffect::getParameter(effect_param_t *param) in getParameter() argument
351 if (param == NULL || param->psize == 0 || param->vsize == 0) { in getParameter()
355 ALOGV("getParameter: param: %d, param2: %d", *(int *)param->data, in getParameter()
356 (param->psize == 8) ? *((int *)param->data + 1): -1); in getParameter()
358 uint32_t psize = sizeof(effect_param_t) + ((param->psize - 1) / sizeof(int) + 1) * sizeof(int) + in getParameter()
359 param->vsize; in getParameter()
361 return mIEffect->command(EFFECT_CMD_GET_PARAM, sizeof(effect_param_t) + param->psize, param, in getParameter()
362 &psize, param); in getParameter()