]> git.alsa-project.org Git - alsa-lib.git/commit
ucm: add integer comparison condition (Syntax 9)
authorJaroslav Kysela <perex@perex.cz>
Fri, 6 Feb 2026 11:57:02 +0000 (12:57 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 6 Feb 2026 17:27:37 +0000 (18:27 +0100)
commit2943b1e4120756cc862c33344276bc70037f4df0
tree14ab37eb3a5eb92fb31f3485f0a620041d306eb9
parente02e9dc6cfb45337829fc0053ec5e064fd8e7383
ucm: add integer comparison condition (Syntax 9)

Adds support for integer comparison operations in If.Condition blocks.
Supports operators: ==, !=, <, >, <=, >= for comparing integer values.
Both values are substituted and converted from strings to 64-bit integers.
Hexadecimal (C like) strings are also accepted (like 0x1234).

Example usage:
  If.check_channels {
    Condition {
      Type Integer
      Operation ">"
      Value1 "${var:channels}"
      Value2 "2"
    }
    True { ... }
  }

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/ucm/ucm_cond.c
src/ucm/ucm_confdoc.h