It may be useful to add new or override specific hardware
configurations until they are merged to the main USB-Audio.conf file.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/654
BugLink: https://github.com/alsa-project/alsa-ucm-conf/issues/609
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Syntax 8
+#
+# Optional configuration can be stored to USB-Audio/conf.d/{VENDOR}-{DEVICE}.conf files
+#
+
Define.ProfileName ""
Define.MixerRemap ""
Define.SplitPCMPeriodTime 10000 # 10ms
+DefineRegex.USBID {
+ Regex "USB([0-9a-f]{4}):([0-9a-f]{4})"
+ String "${CardComponents}"
+}
If.env1 {
Condition {
False.Define.SplitPCMPeriodTime "${env:UCM_USB_PERIOD_TIME}"
}
+#
+# device specific configuration block
+#
+
If.linked {
Condition {
Type RegexMatch
True.Define.ProfileName "Beacn/Beacn-Studio"
}
+#
+# end of device specific configuration block
+#
+
+If.opt.Append.Include.opt {
+ File "/USB-Audio/conf.d/${var:USBID1}-${var:USBID2}.conf"
+ Optional true
+}
+
If.mixremap {
Condition {
Type String