summaryrefslogtreecommitdiff
path: root/wireplumber/main.lua.d/51-custom.lua
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-01-22 22:06:02 -0600
committerzachir <zachir@librem.one>2023-01-22 22:06:02 -0600
commit12868424437603855669933d388f68fcedc185c7 (patch)
tree65dba11a133c47e47f58a719a4d53f03fdc338c1 /wireplumber/main.lua.d/51-custom.lua
parentd8a96c4f081242bab18306af3d981446c014440d (diff)
mass deletions
Diffstat (limited to 'wireplumber/main.lua.d/51-custom.lua')
-rw-r--r--wireplumber/main.lua.d/51-custom.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/wireplumber/main.lua.d/51-custom.lua b/wireplumber/main.lua.d/51-custom.lua
new file mode 100644
index 0000000..2340e94
--- /dev/null
+++ b/wireplumber/main.lua.d/51-custom.lua
@@ -0,0 +1,22 @@
+table.insert(alsa_monitor.rules,
+ {
+ -- Rules for matching a device or node. It is an array of
+ -- properties that all need to match the regexp. If any of the
+ -- matches work, the actions are executed for the object.
+ matches = {
+ {
+ { "device.name", "matches", "alsa_card.usb-Audient_Audient_iD4-00" },
+ },
+ },
+ -- Apply properties on the matched object.
+ apply_properties = {
+ -- Use UCM instead of profile when available. Can be
+ -- disabled to skip trying to use the UCM profile.
+ ["api.alsa.use-ucm"] = false,
+
+ -- The default active profile. Is by default set to "Off".
+ ["device.profile"] = "Pro Audio",
+ },
+ }
+)
+