Lines Matching refs:sub
51 SubEffect sub({.descriptor = desc}); in EffectProxy() local
52 status = factory->createEffect(desc.common.id.uuid, &sub.handle); in EffectProxy()
53 if (!status.isOk() || !sub.handle) { in EffectProxy()
54 sub.handle = nullptr; in EffectProxy()
58 subEffects.emplace_back(sub); in EffectProxy()
83 const auto& itor = std::find_if(mSubEffects.begin(), mSubEffects.end(), [&](const auto& sub) { in setOffloadParam() argument
84 const auto& desc = sub.descriptor; in setOffloadParam()
110 for (auto& sub : mSubEffects) { in open() local
112 if (!sub.handle || !(status = sub.handle->open(common, specific, &openReturn)).isOk()) { in open()
113 ALOGE("%s: failed to open %p UUID %s", __func__, sub.handle.get(), in open()
114 ::android::audio::utils::toString(sub.descriptor.common.id.uuid).c_str()); in open()
117 sub.effectMq.statusQ = std::make_shared<StatusMQ>(openReturn.statusMQ); in open()
118 sub.effectMq.inputQ = std::make_shared<DataMQ>(openReturn.inputDataMQ); in open()
119 sub.effectMq.outputQ = std::make_shared<DataMQ>(openReturn.outputDataMQ); in open()
135 for (auto& sub : mSubEffects) { in reopen() local
137 if (!sub.handle || !(status = sub.handle->reopen(&openReturn)).isOk()) { in reopen()
138 ALOGE("%s: failed to open %p UUID %s", __func__, sub.handle.get(), in reopen()
139 ::android::audio::utils::toString(sub.descriptor.common.id.uuid).c_str()); in reopen()
142 sub.effectMq.statusQ = std::make_shared<StatusMQ>(openReturn.statusMQ); in reopen()
143 sub.effectMq.inputQ = std::make_shared<DataMQ>(openReturn.inputDataMQ); in reopen()
144 sub.effectMq.outputQ = std::make_shared<DataMQ>(openReturn.outputDataMQ); in reopen()
288 for (auto& sub : mSubEffects) { in runWithAllSubEffects() local
289 if (!sub.handle) { in runWithAllSubEffects()
290 ALOGW("%s null sub-effect interface %s", __func__, sub.descriptor.toString().c_str()); in runWithAllSubEffects()
293 ndk::ScopedAStatus temp = func(sub.handle); in runWithAllSubEffects()