Lines Matching refs:cfg
294 const DynamicsProcessing::EngineArchitecture& cfg) { in setEngineArchitecture() argument
295 RETURN_VALUE_IF(!validateEngineConfig(cfg), RetCode::ERROR_ILLEGAL_PARAMETER, in setEngineArchitecture()
298 if (mEngineSettings == cfg) { in setEngineArchitecture()
302 mEngineSettings = cfg; in setEngineArchitecture()
315 for (auto& cfg : cfgs) { in setChannelCfgs() local
316 if (cfg.channel < 0 || (size_t)cfg.channel >= mChannelCount) { in setChannelCfgs()
317 LOG(ERROR) << __func__ << " skip illegal channel config " << cfg.toString(); in setChannelCfgs()
321 if (0 != channelSet.count(cfg.channel)) { in setChannelCfgs()
322 LOG(WARNING) << __func__ << " duplicated channel " << cfg.channel; in setChannelCfgs()
325 channelSet.insert(cfg.channel); in setChannelCfgs()
327 targetCfgs[cfg.channel] = cfg; in setChannelCfgs()
357 for (auto& cfg : cfgs) { in setEqBandCfgs() local
358 if (0 != bandSet.count({cfg.channel, cfg.band})) { in setEqBandCfgs()
359 LOG(WARNING) << __func__ << " duplicated band " << cfg.toString(); in setEqBandCfgs()
362 bandSet.insert({cfg.channel, cfg.band}); in setEqBandCfgs()
364 if (!validateEqBandConfig(cfg, mChannelCount, stage.bandCount, channelConfig)) { in setEqBandCfgs()
365 LOG(WARNING) << __func__ << " skip invalid band " << cfg.toString(); in setEqBandCfgs()
369 targetCfgs[cfg.channel * stage.bandCount + cfg.band] = cfg; in setEqBandCfgs()
472 for (const auto& cfg : cfgs) { in setInputGainCfgs() local
473 RETURN_VALUE_IF(cfg.channel < 0 || (size_t)cfg.channel >= mChannelCount, in setInputGainCfgs()
475 mInputGainCfgs[cfg.channel] = cfg; in setInputGainCfgs()