summaryrefslogtreecommitdiffstats
path: root/pipewire-alsa/conf
diff options
context:
space:
mode:
Diffstat (limited to 'pipewire-alsa/conf')
-rw-r--r--pipewire-alsa/conf/50-pipewire.conf106
-rw-r--r--pipewire-alsa/conf/99-pipewire-default.conf13
-rw-r--r--pipewire-alsa/conf/meson.build5
3 files changed, 124 insertions, 0 deletions
diff --git a/pipewire-alsa/conf/50-pipewire.conf b/pipewire-alsa/conf/50-pipewire.conf
new file mode 100644
index 0000000..a3a08a6
--- /dev/null
+++ b/pipewire-alsa/conf/50-pipewire.conf
@@ -0,0 +1,106 @@
+# Add a specific named PipeWire pcm
+
+defaults.pipewire.server "pipewire-0"
+defaults.pipewire.node "-1"
+defaults.pipewire.exclusive false
+defaults.pipewire.role ""
+defaults.pipewire.rate 0
+defaults.pipewire.format ""
+defaults.pipewire.channels 0
+defaults.pipewire.period_bytes 0
+defaults.pipewire.buffer_bytes 0
+
+pcm.pipewire {
+ @args [ SERVER NODE EXCLUSIVE ROLE RATE FORMAT CHANNELS PERIOD_BYTES BUFFER_BYTES ]
+ @args.SERVER {
+ type string
+ default {
+ @func refer
+ name defaults.pipewire.server
+ }
+ }
+ @args.NODE {
+ type string
+ default {
+ @func refer
+ name defaults.pipewire.node
+ }
+ }
+ @args.EXCLUSIVE {
+ type integer
+ default {
+ @func refer
+ name defaults.pipewire.exclusive
+ }
+ }
+ @args.ROLE {
+ type string
+ default {
+ @func refer
+ name defaults.pipewire.role
+ }
+ }
+ @args.RATE {
+ type integer
+ default {
+ @func refer
+ name defaults.pipewire.rate
+ }
+ }
+ @args.FORMAT {
+ type string
+ default {
+ @func refer
+ name defaults.pipewire.format
+ }
+ }
+ @args.CHANNELS {
+ type integer
+ default {
+ @func refer
+ name defaults.pipewire.channels
+ }
+ }
+ @args.PERIOD_BYTES {
+ type integer
+ default {
+ @func refer
+ name defaults.pipewire.period_bytes
+ }
+ }
+ @args.BUFFER_BYTES {
+ type integer
+ default {
+ @func refer
+ name defaults.pipewire.buffer_bytes
+ }
+ }
+
+ type pipewire
+ server $SERVER
+ playback_node $NODE
+ capture_node $NODE
+ exclusive $EXCLUSIVE
+ role $ROLE
+ rate $RATE
+ format $FORMAT
+ channels $CHANNELS
+ period_bytes $PERIOD_BYTES
+ buffer_bytes $BUFFER_BYTES
+ hint {
+ show on
+ description "PipeWire Sound Server"
+ }
+}
+
+ctl.pipewire {
+ @args.SERVER {
+ type string
+ default {
+ @func refer
+ name defaults.pipewire.server
+ }
+ }
+ type pipewire
+ server $SERVER
+}
diff --git a/pipewire-alsa/conf/99-pipewire-default.conf b/pipewire-alsa/conf/99-pipewire-default.conf
new file mode 100644
index 0000000..814506e
--- /dev/null
+++ b/pipewire-alsa/conf/99-pipewire-default.conf
@@ -0,0 +1,13 @@
+pcm.!default {
+ type pipewire
+ playback_node "-1"
+ capture_node "-1"
+ hint {
+ show on
+ description "Default ALSA Output (currently PipeWire Media Server)"
+ }
+}
+
+ctl.!default {
+ type pipewire
+}
diff --git a/pipewire-alsa/conf/meson.build b/pipewire-alsa/conf/meson.build
new file mode 100644
index 0000000..a7336b1
--- /dev/null
+++ b/pipewire-alsa/conf/meson.build
@@ -0,0 +1,5 @@
+alsaconfdir = pipewire_datadir / 'alsa' / 'alsa.conf.d'
+
+install_data(['50-pipewire.conf', '99-pipewire-default.conf'],
+ install_dir: alsaconfdir,
+)