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>
If.cfg-dmic1 {
Condition {
- Type Regex
+ Type RegexMatch
String "${CardLongName}"
Regex "(SoMeThInK1)" # fixme!
}
If.cfg-dmic2 {
Condition {
- Type Regex
+ Type RegexMatch
String "${CardLongName}"
Regex "(LENOVO.*ThinkPad8)"
}
If.cfg-mspk {
Condition {
- Type Regex
+ Type RegexMatch
String "${CardLongName}"
Regex "(cube-i1_TF|PIPO-W2S)"
}
If.cfg-dmic1 {
Condition {
- Type Regex
+ Type RegexMatch
String "${CardLongName}"
Regex "(ASUSTeK.*T100HAN|ASUSTeK.*T101HA)"
}
If.cfg-dmic2 {
Condition {
- Type Regex
+ Type RegexMatch
String "${CardLongName}"
Regex "(LENOVO.*LenovoMIIX320|MEDION.*Wingman)"
}
If.cfg-mspk {
Condition {
- Type Regex
+ Type RegexMatch
String "${CardLongName}"
Regex "(gpd-win-pocket-rt5645|TECLAST-X80Pro)"
}
If.hs_init {
Condition {
- Type Regex
+ Type RegexMatch
Regex "(rt5682|rt700|rt711)"
String "${var:HeadsetCodec1}"
}
If.mic_init {
Condition {
- Type Regex
+ Type RegexMatch
Regex "(rt715)"
String "${var:MicCodec1}"
}