conf: remove extra object level

We can parse this without the extra object level.
Use 4 spaces per level
This commit is contained in:
Wim Taymans 2020-12-31 21:45:36 +01:00
parent d3f314cf82
commit d99ac615b2
3 changed files with 96 additions and 99 deletions

View file

@ -1,22 +1,21 @@
# alsa-monitor config file # alsa-monitor config file
{ properties = {
properties = { }
}
rules = [ rules = [
# an array of matches/actions to evaluate
{ {
# rules for matching a device or node. It is an array of # rules for matching a device or node. It is an array of
# properties that all need to match the regexp. If any of the # properties that all need to match the regexp. If any of the
# matches work, the actions are executed for the object. # matches work, the actions are executed for the object.
matches = [ matches = [
{ {
# this matches all cards
device.name = ~alsa_card.* device.name = ~alsa_card.*
} }
] ]
actions = { actions = {
# actions can update properties on the matched object. # actions can update properties on the matched object.
update-props = { update-props = {
api.alsa.use-acp = true api.alsa.use-acp = true
#api.alsa.use-ucm = true #api.alsa.use-ucm = true
@ -33,9 +32,11 @@
{ {
matches = [ matches = [
{ {
# matches all sinks
node.name = ~alsa_input.* node.name = ~alsa_input.*
} }
{ {
# matches all sources
node.name = ~alsa_output.* node.name = ~alsa_output.*
} }
] ]
@ -54,5 +55,5 @@
} }
} }
} }
] ]
}

View file

@ -1,22 +1,21 @@
# media-session config file # media-session config file
{ properties = {
properties = {
# Properties to configure the session and some # Properties to configure the session and some
# modules # modules
#bluez5.msbc-support = true #bluez5.msbc-support = true
} }
spa-libs = { spa-libs = {
# Mapping from factory name to library. # Mapping from factory name to library.
api.bluez5.* = bluez5/libspa-bluez5 api.bluez5.* = bluez5/libspa-bluez5
api.alsa.* = alsa/libspa-alsa api.alsa.* = alsa/libspa-alsa
api.v4l2.* = v4l2/libspa-v4l2 api.v4l2.* = v4l2/libspa-v4l2
api.libcamera.* = libcamera/libspa-libcamera api.libcamera.* = libcamera/libspa-libcamera
} }
modules = { modules = {
# These are the modules that are enabled when a file with # These are the modules that are enabled when a file with
# the key name is found in the media-session.d config directory. # the key name is found in the media-session.d config directory.
# the default bundle is always enabled. # the default bundle is always enabled.
@ -56,5 +55,4 @@
bluez5 bluez5
restore-stream restore-stream
] ]
}
} }

View file

@ -1,6 +1,5 @@
#daemon config file for PipeWire version @VERSION@ #daemon config file for PipeWire version @VERSION@
{ properties = {
properties = {
## configure properties in the system ## configure properties in the system
#library.name.system = support/libspa-support #library.name.system = support/libspa-support
#context.data-loop.library.name.system = support/libspa-support #context.data-loop.library.name.system = support/libspa-support
@ -18,9 +17,9 @@
#default.video.height = 480 #default.video.height = 480
#default.video.rate.num = 25 #default.video.rate.num = 25
#default.video.rate.denom = 1 #default.video.rate.denom = 1
} }
spa-libs = { spa-libs = {
## <factory-name regex> = <library-name> ## <factory-name regex> = <library-name>
# #
# used to find spa factory names. It maps an spa factory name # used to find spa factory names. It maps an spa factory name
@ -37,9 +36,9 @@
support.* = support/libspa-support support.* = support/libspa-support
#videotestsrc = videotestsrc/libspa-videotestsrc #videotestsrc = videotestsrc/libspa-videotestsrc
#audiotestsrc = audiotestsrc/libspa-audiotestsrc #audiotestsrc = audiotestsrc/libspa-audiotestsrc
} }
modules = { modules = {
## <module-name> = { [args = "<key>=<value> ..."] ## <module-name> = { [args = "<key>=<value> ..."]
# [flags = ifexists] } # [flags = ifexists] }
# #
@ -59,9 +58,9 @@
libpipewire-module-adapter = null libpipewire-module-adapter = null
libpipewire-module-link-factory = null libpipewire-module-link-factory = null
libpipewire-module-session-manager = null libpipewire-module-session-manager = null
} }
objects = { objects = {
## <factory-name> = { [args = "<key>=<value> ..."] ## <factory-name> = { [args = "<key>=<value> ..."]
# [flags = nofail] } # [flags = nofail] }
# #
@ -75,9 +74,9 @@
#adapter = { args = "factory.name=audiotestsrc node.name=my-test" } #adapter = { args = "factory.name=audiotestsrc node.name=my-test" }
#spa-node-factory = { args = "factory.name=api.vulkan.compute.source node.name=my-compute-source" } #spa-node-factory = { args = "factory.name=api.vulkan.compute.source node.name=my-compute-source" }
spa-node-factory = { args = "factory.name=support.node.driver node.name=Dummy priority.driver=8000" } spa-node-factory = { args = "factory.name=support.node.driver node.name=Dummy priority.driver=8000" }
} }
exec = { exec = {
## <program-name> = { [args = "<arguments>"] } ## <program-name> = { [args = "<arguments>"] }
# #
# Execute the given program with arguments. # Execute the given program with arguments.
@ -97,5 +96,4 @@
# on another address with the -a option (eg. -a tcp:4713) # on another address with the -a option (eg. -a tcp:4713)
# #
#"@pipewire_pulse_path@" = { "#args" = "-a tcp:4713" } #"@pipewire_pulse_path@" = { "#args" = "-a tcp:4713" }
}
} }