Home
last modified time | relevance | path

Searched refs:valueOffsetFromData (Results 1 – 1 of 1) sorted by relevance

/hardware/interfaces/audio/effect/all-versions/default/
DEffect.cpp404 size_t valueOffsetFromData = alignedSizeIn<uint32_t>(paramSize) * sizeof(uint32_t); in parameterToHal() local
405 if (valueOffsetFromData > kMaxSize) { in parameterToHal()
406 ALOGE("%s: Aligned parameter size is too big: %zu", __func__, valueOffsetFromData); in parameterToHal()
409 if (valueSize > kMaxSize - valueOffsetFromData) { in parameterToHal()
411 kMaxSize - valueOffsetFromData); in parameterToHal()
415 size_t halParamBufferSize = sizeof(effect_param_t) + valueOffsetFromData + valueSize; in parameterToHal()
424 memcpy(halParam->data + valueOffsetFromData, *valueData, valueSize); in parameterToHal()
427 *valueData = halParam->data + valueOffsetFromData; in parameterToHal()