ucm: add ${evali:} substitution

Example:

  Define.var1 2

  LibraryConfig.test.SubstiConfig {
          a "${evali:$var1+1}"
  }

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2022-05-12 18:33:29 +02:00
parent f1fa7ea077
commit d65b1c7b52
3 changed files with 45 additions and 1 deletions

View file

@ -383,6 +383,12 @@ ${eval:<str>} | Evaluate expression like *($var+2)/3* [**Syntax 5**]
${find-card:<str>} | Find a card - see _Find card substitution_ section
${find-device:<str>} | Find a device - see _Find device substitution_ section
#### Special whole string substitution
Substituted string | Value
---------------------|---------------------
${evali:<str>} | Evaluate expression like *($var+2)/3* [**Syntax 5**]; target node will be integer; substituted only in the LibraryConfig subtree
#### Find card substitution
This substitutions finds the ALSA card and returns the appropriate identifier or