src/media/audio/audio_core/thermal_agent.cc
// Finds the nominal config string for the specified target. Returns no value if the specified
// target could not be found.
Finds the nominal config string for the specified target. Returns no value if the specified
target could not be found.
Finds the nominal config string for the specified target . Returns no value if the specified target could not be found .
std::optional<std::string> FindNominalConfigForTarget(const std::string& target_name,
                                                      const DeviceConfig& device_config) {
  const PipelineConfig::Effect* effect = device_config.FindEffect(target_name);
  return effect ? std::optional(effect->effect_config) : std::nullopt;
}
std :: optional < std :: string > FindNominalConfigForTarget ( const std :: string & target_name , const DeviceConfig & device_config ) { const PipelineConfig :: Effect * effect = device_config . FindEffect ( target_name ) ; return effect ? std :: optional ( effect -> effect_config ) : std :: nullopt ; }
Finds the nominal config string for the specified target.
Finds the nominal config string for the specified target .
// For 'special' target names (not effect names), this method must return a string. An empty // string is fine. The remainder of this method assumes the |target_name| references an effect.