]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: Qualcomm: add HP Omnibook X14 support
authorJens Glathe <jens.glathe@oldschoolsolutions.biz>
Sat, 22 Mar 2025 20:15:50 +0000 (21:15 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 7 Apr 2025 16:28:02 +0000 (18:28 +0200)
assume same as T14s (2 speakers)

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/531
Signed-off-by: Jens Glathe <jens.glathe@oldschoolsolutions.biz>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/Qualcomm/x1e80100/x1e80100.conf

index 0b42c7afaaa252f756b781e68d2ee2cc1e7f7164..33ded53d9af65548960163279d768f04a2c88b07 100644 (file)
@@ -1,10 +1,12 @@
 Syntax 4
 
+Define.DMI_info "${sys:devices/virtual/dmi/id/board_vendor}-${sys:devices/virtual/dmi/id/product_family}"
+
 If.LENOVOT14s {
        Condition {
                Type RegexMatch
-               String "${sys:devices/virtual/dmi/id/board_vendor}-${sys:devices/virtual/dmi/id/product_family}"
-               Regex "LENOVO.*ThinkPad T14s Gen 6.*"
+               String "${var:DMI_info}"
+               Regex "(LENOVO.*ThinkPad T14s Gen 6.*)|(HP.*Omnibook X.*)"
        }
        True.Include.t14s.File "/Qualcomm/x1e80100/LENOVO-T14s.conf"
 }
@@ -12,7 +14,7 @@ If.LENOVOT14s {
 If.LENOVOSlim7x {
        Condition {
                Type RegexMatch
-               String "${sys:devices/virtual/dmi/id/board_vendor}-${sys:devices/virtual/dmi/id/product_family}"
+               String "${var:DMI_info}"
                Regex "LENOVO.*Yoga Slim 7.*"
        }
        True.Include.7x.File "/Qualcomm/x1e80100/LENOVO-Slim-7x.conf"