]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
Fix invalid "Regex" Type in various Condition blocks
authorHans de Goede <hdegoede@redhat.com>
Sun, 28 Jun 2020 17:44:17 +0000 (19:44 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 28 Jun 2020 20:02:06 +0000 (22:02 +0200)
Regex is not a valid Condition type, using it leads to errors like these:

ALSA lib ucm_cond.c:300:(if_eval) unknown If.Condition.Type
ALSA lib main.c:983:(snd_use_case_mgr_open) error: failed to import cht-bsw-rt5672 use case configuration -22
alsaucm: error failed to open sound card cht-bsw-rt5672: Invalid argument

Replacing it with "RegexMatch" fixes this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/cht-bsw-rt5672/HiFi.conf
ucm2/chtnau8824/HiFi.conf
ucm2/chtrt5645/HiFi.conf
ucm2/sof-soundwire/sof-soundwire.conf

index 394e45d39ace9f8ed08193c947d7e0e136fd3783..dc8ddd5ed45ff4ab47a6887c8cb352ce9e47d0b0 100644 (file)
@@ -9,7 +9,7 @@ Define.HeadsetMic "yes"
 
 If.cfg-dmic1 {
        Condition {
-               Type Regex
+               Type RegexMatch
                String "${CardLongName}"
                Regex "(SoMeThInK1)" # fixme!
        }
@@ -21,7 +21,7 @@ If.cfg-dmic1 {
 
 If.cfg-dmic2 {
        Condition {
-               Type Regex
+               Type RegexMatch
                String "${CardLongName}"
                Regex "(LENOVO.*ThinkPad8)"
        }
index 6b7624d6e775c2e83e86e9dbfdea55ee36a29c4a..3ccd6b149517d2539b0562b094b47547082f8571 100644 (file)
@@ -2,7 +2,7 @@ Define.Speaker "Speaker"
 
 If.cfg-mspk {
        Condition {
-               Type Regex
+               Type RegexMatch
                String "${CardLongName}"
                Regex "(cube-i1_TF|PIPO-W2S)"
        }
index fb8636d8fface3ac053b02d48542a22e095a8a01..5d0e3bf42f406ded2cedbf4f6d87cf0c3e6dc8ed 100644 (file)
@@ -4,7 +4,7 @@ Define.DigitalMic ""
 
 If.cfg-dmic1 {
        Condition {
-               Type Regex
+               Type RegexMatch
                String "${CardLongName}"
                Regex "(ASUSTeK.*T100HAN|ASUSTeK.*T101HA)"
        }
@@ -16,7 +16,7 @@ If.cfg-dmic1 {
 
 If.cfg-dmic2 {
        Condition {
-               Type Regex
+               Type RegexMatch
                String "${CardLongName}"
                Regex "(LENOVO.*LenovoMIIX320|MEDION.*Wingman)"
        }
@@ -28,7 +28,7 @@ If.cfg-dmic2 {
 
 If.cfg-mspk {
        Condition {
-               Type Regex
+               Type RegexMatch
                String "${CardLongName}"
                Regex "(gpd-win-pocket-rt5645|TECLAST-X80Pro)"
        }
index fe43d5f81d57fd1a93f73ce69621cb66bf2d14c4..2ba44be8b284db28c5343fab21ee2dcb8ed3bd89 100644 (file)
@@ -38,7 +38,7 @@ DefineRegex {
 
 If.hs_init {
        Condition {
-               Type Regex
+               Type RegexMatch
                Regex "(rt5682|rt700|rt711)"
                String "${var:HeadsetCodec1}"
        }
@@ -47,7 +47,7 @@ If.hs_init {
 
 If.mic_init {
        Condition {
-               Type Regex
+               Type RegexMatch
                Regex "(rt715)"
                String "${var:MicCodec1}"
        }