mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-04-29 02:30:40 +02:00
config: add endpoint config files to increase priority on USB audio devices
if there is a usb device plugged, we can assume it's meant to be used instead of the built-in audio
This commit is contained in:
parent
b3e53daf26
commit
e81dc5782a
2 changed files with 28 additions and 0 deletions
15
src/config/15-usb-alsa-audio-sink.endpoint
Normal file
15
src/config/15-usb-alsa-audio-sink.endpoint
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
[match-node]
|
||||
properties = [
|
||||
{ name = "media.class", value = "Audio/Sink" },
|
||||
{ name = "device.api", value = "alsa" },
|
||||
{ name = "api.alsa.pcm.id", value = "USB Audio" },
|
||||
]
|
||||
|
||||
[endpoint]
|
||||
session = "audio"
|
||||
type = "si-adapter"
|
||||
streams = "audio-sink.streams"
|
||||
|
||||
[endpoint.config]
|
||||
priority = 5
|
||||
enable-monitor = true
|
||||
13
src/config/15-usb-alsa-audio-source.endpoint
Normal file
13
src/config/15-usb-alsa-audio-source.endpoint
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[match-node]
|
||||
properties = [
|
||||
{ name = "media.class", value = "Audio/Source" },
|
||||
{ name = "device.api", value = "alsa" },
|
||||
{ name = "api.alsa.pcm.id", value = "USB Audio" },
|
||||
]
|
||||
|
||||
[endpoint]
|
||||
session = "audio"
|
||||
type = "si-adapter"
|
||||
|
||||
[endpoint.config]
|
||||
priority = 5
|
||||
Loading…
Add table
Reference in a new issue