diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:28:17 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:28:17 +0000 |
commit | 7a46c07230b8d8108c0e8e80df4522d0ac116538 (patch) | |
tree | d483300dab478b994fe199a5d19d18d74153718a /pipewire-alsa/conf | |
parent | Initial commit. (diff) | |
download | pipewire-0bfb2679f751193be0325ef92c84c3863d22ac84.tar.xz pipewire-0bfb2679f751193be0325ef92c84c3863d22ac84.zip |
Adding upstream version 0.3.65.upstream/0.3.65upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pipewire-alsa/conf')
-rw-r--r-- | pipewire-alsa/conf/50-pipewire.conf | 106 | ||||
-rw-r--r-- | pipewire-alsa/conf/99-pipewire-default.conf | 13 | ||||
-rw-r--r-- | pipewire-alsa/conf/meson.build | 5 |
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, +) |