]> git.alsa-project.org Git - alsa-utils.git/commit
topology: pre-processor: fix regular expression flags
authorChao Song <chao.song@linux.intel.com>
Mon, 13 Mar 2023 05:38:37 +0000 (13:38 +0800)
committerJaroslav Kysela <perex@perex.cz>
Wed, 3 May 2023 14:25:15 +0000 (16:25 +0200)
commit52f6fb7f3386d4ecc1481d88bd0bd2b7e47c1332
tree6eb33ea09e92addb5a276547d5720fcf2baa1732
parentca503e3519b36cd6497e45d3b2fb633c6102e73b
topology: pre-processor: fix regular expression flags

The REG_ICASE flag is a compile-time flag (cflags), it
should be used with regcomp() instead of regexec(). Also
add the REG_EXTENDED flag in this patch to make patterns
like 'tgl|adl' work.

Fixes: https://github.com/alsa-project/alsa-utils/pull/195
Signed-off-by: Chao Song <chao.song@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
topology/pre-processor.c