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:
George Kiagiadakis 2020-06-16 15:44:39 +03:00
parent b3e53daf26
commit e81dc5782a
2 changed files with 28 additions and 0 deletions

View 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

View 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