]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: add initial ucm.conf for the latest alsa-lib
authorJaroslav Kysela <perex@perex.cz>
Wed, 27 May 2020 10:28:32 +0000 (12:28 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 27 May 2020 10:29:12 +0000 (12:29 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/ucm.conf [new file with mode: 0644]

diff --git a/ucm2/ucm.conf b/ucm2/ucm.conf
new file mode 100644 (file)
index 0000000..29bef5c
--- /dev/null
@@ -0,0 +1,93 @@
+#
+# This is the toplevel file included from the alsa-lib.
+#
+# It allows to add extra lookups for the old kernels or so.
+#
+# You may specify the directory (relative to the toplevel) and
+# the master configuration file which defines the verbs.
+#
+
+#
+# Syntax version is reset for the master configuration file.
+#
+
+Syntax 3
+
+If.driver {
+       Condition {
+               Type String
+               Empty "${CardNumber}"
+       }
+       True {
+
+               #
+               # The last probed path for no-hw-card:
+               #
+               #   ucm2/${OpenName}/${OpenName}.conf
+               #   ucm/${OpenName}/${OpenName}.conf
+               #
+
+               UseCasePath {
+                       legacy {
+                               Directory "${OpenName}"
+                               File "${OpenName}.conf"
+                       }
+                       v1_legacy {
+                               Version 1
+                               Directory "${OpenName}"
+                               File "${OpenName}.conf"
+                       }
+               }
+
+       }
+       False {
+
+               #
+               # The last probed path when hw-card is found:
+               #
+               #   ucm2/${CardDriver}/${CardLongName}.conf
+               #   ucm2/${CardDriver}/${CardDriver}.conf
+               #   ucm/${CardLongName}/${CardLongName}.conf
+               #   ucm/${CardName}/${CardName}.conf or \
+               #                       ucm/${OpenName}/${OpenName}.conf
+               #
+
+               UseCasePath {
+                       longname {
+                               Directory "${CardDriver}"
+                               File "${CardLongName}.conf"
+                       }
+                       driver {
+                               Directory "${CardDriver}"
+                               File "${CardDriver}.conf"
+                       }
+                       v1_longname {
+                               Version 1
+                               Directory "${CardLongName}"
+                               File "${CardLongName}.conf"
+                       }
+               }
+
+               If.hw {
+                       Condition {
+                               Type String
+                               Haystack "${OpenName}.conf"
+                               Needle "hw:"
+                       }
+                       True {
+                               UseCasePath.v1_cardnamme {
+                                       Version 1
+                                       Directory "${CardName}"
+                                       File "${CardName}.conf"
+                               }
+                       }
+                       False {
+                               UseCasePath.v1_openname {
+                                       Version 1
+                                       Directory "${OpenName}"
+                                       File "${OpenName}.conf"
+                               }
+                       }
+               }
+       }
+}