OSDN Git Service

conf: add /var/lib/alsa/card<NUMBER>.conf.d directory lookups
authorJaroslav Kysela <perex@perex.cz>
Tue, 6 Apr 2021 19:05:31 +0000 (21:05 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 13 Apr 2021 07:18:56 +0000 (09:18 +0200)
It may be handy to put extra configurations or symlinks to
the global runtime directory. The configurations may be
created at boot / hotplug event by udev or other scripts.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/conf/alsa.conf

index 123874a..962864b 100644 (file)
@@ -57,6 +57,14 @@ cards.@hooks [
                                        ".conf"
                                ]
                        }
+                       {
+                               @func concat
+                               strings [
+                                       "/var/lib/alsa/card"
+                                       { @func private_integer }
+                                       ".conf.d"
+                               ]
+                       }
                ]
                errors false
        }