George Kiagiadakis
155ad32212
scripts: add policy for links between clients and endpoints
...
This script takes links that are created by policy-endpoint-client
and activates only the ones that should be active based on role
priorities
2021-04-13 19:37:06 +03:00
Julian Bouzas
5c6d484d08
src: scripts: rename policy-endpoint.lua to policy-endpoint-client.lua
2021-04-09 14:21:03 -04:00
Julian Bouzas
5c781db216
m-audio-endpoint: remove target property
...
Links between endpoints and device nodes are done externally in LUA
2021-04-09 14:19:25 -04:00
Julian Bouzas
380ba4aa39
src: config: do not create endpoints by default
2021-04-08 14:46:13 -04:00
Julian Bouzas
12b1226b37
src: scripts: add policy-endpoint.lua script
...
Links items with media role set to existing endpoints. The target of the
endpoints is also configured.
2021-04-08 14:45:54 -04:00
Julian Bouzas
9f77b98b10
src: scripts: add static-endpoints.lua script
2021-04-08 14:07:05 -04:00
Julian Bouzas
b2c9084413
modules: remove unneeded si-audio-convert module
2021-04-08 14:07:05 -04:00
Julian Bouzas
34f5dadad0
src: config: rename session-item support to default-policy
2021-04-08 14:07:05 -04:00
Julian Bouzas
c5d28031e5
src: scripts: remove unneeded policy-endpoint.lua
2021-04-08 14:07:05 -04:00
George Kiagiadakis
cdd6fda56c
wpctl: status: print nodes, ports, links grouped more nicely
2021-04-01 19:15:34 +03:00
Julian Bouzas
e86ed8e763
policy-node.lua: support config.move and config.follow
2021-03-31 12:44:49 -04:00
George Kiagiadakis
0ecefcb55d
policy-node: use default-nodes-api plugin
2021-03-31 13:10:13 +03:00
George Kiagiadakis
a0876bb275
modules: rename default-metadata to default-nodes and enable it always in the config
2021-03-31 13:10:13 +03:00
George Kiagiadakis
8052ef2792
bluez config: update based on the latest media-session config
2021-03-29 18:32:59 +03:00
Julian Bouzas
e3cc3c330d
src: scripts: add policy-node.lua to link port info session items
2021-03-26 16:16:02 -04:00
Julian Bouzas
32fea4057c
src: config: rename endpoint-support to session-item-support
2021-03-26 16:16:02 -04:00
Julian Bouzas
04992f0d07
modules: remove si-monitor module
...
It is not needed as si-standard-link can be configured with port contexts
2021-03-26 16:16:02 -04:00
Julian Bouzas
f6ed14f997
src: scripts: add create-item.lua and remove create-endpoint.lua
2021-03-26 16:16:02 -04:00
Julian Bouzas
d71cace24f
m-si-convert: rename to si-audio-convert
...
Because it is only meant to be used with audio nodes
2021-03-18 15:00:22 -04:00
Julian Bouzas
340213272e
m-si-adapter: rename to si-audio-adapter
...
Because it is only meant to be used with audio nodes
2021-03-18 14:47:22 -04:00
Julian Bouzas
2747d21de2
m-si-monitor-endpoint: rename to si-monitor
2021-03-18 12:10:37 -04:00
Julian Bouzas
b10a5b6b49
m-si-simple-node-endpoint: rename to si-node
2021-03-18 12:10:37 -04:00
Julian Bouzas
12b2c00d0b
lib: remove WpEndpointStream API
...
Add all that goes with it.
2021-03-18 12:10:37 -04:00
Arnaud Ferraris
a499e02ad9
modules: add module-default-routes for storing/restoring routes
...
This commit adds a WirePlumber module which stores the current route for
a given device, and implements the necessary interfaces to restore those
on startup.
The routes are stored as an array of objects in JSON format.
Please note that actually restoring routes on startup is not done by this
module but will be implemented separately in a future commit.
2021-03-02 18:17:56 +01:00
Julian Bouzas
6c2bfea55b
scripts: policy-endpoints: add move and follow options
...
If 'move' is set to true, endpoints will be moved to the new target when the
metadata 'target.node' key is present. If 'follow' is set to true, endpoints
will be moved to the newly changed default device automatically.
2021-03-01 15:36:28 -05:00
George Kiagiadakis
6690f12637
config: split flatpak access configuration
2021-02-19 10:01:17 +02:00
George Kiagiadakis
7336c271a2
config: bluez-monitor: add hfp_hf in the supported roles comment
2021-02-16 16:53:22 +02:00
George Kiagiadakis
f4b899c9e3
config: move loading of all audio support modules in 90-enable-audio-all
...
This file is meant to provide the equivalent of pipewire-media-session's
'with-pulseaudio' flag file
2021-02-15 20:17:15 +02:00
George Kiagiadakis
be78fbbc7d
config: split configuration for endpoints support in config.lua.d
2021-02-15 20:11:52 +02:00
George Kiagiadakis
115c9c3e4f
monitors: drop the monitor- prefix from the filenames and s/bluez5/bluez/
2021-02-15 19:55:06 +02:00
George Kiagiadakis
f2f889a3e0
config: make the monitor properties & rules available in global tables
...
This allows altering monitor properties or adding rules in different
lua files that get loaded before 90-enable*.lua
2021-02-15 19:48:06 +02:00
George Kiagiadakis
1d40e7713f
config: load reserve-device only if alsa.reserve is true
...
and also make the default of alsa.reserve to be false, for easier scripting
2021-02-15 19:43:07 +02:00
George Kiagiadakis
73a07d0097
monitor-alsa: sync logic, properties and configuration with media-session
2021-02-15 18:49:57 +02:00
George Kiagiadakis
4fdccf5292
config: mimick media-session's v4l2-monitor.conf
2021-02-15 14:43:18 +02:00
George Kiagiadakis
989708a880
config: immitate media-session's bluez-monitor.conf
2021-02-15 14:43:18 +02:00
Julian Bouzas
b1e1e5ced0
scripts: add portal access script
...
Includes a plugin to handle the portal permission store dbus interface
2021-02-12 14:28:45 -05:00
Julian Bouzas
fdc8053d9f
scripts: add flatpak access lua script
...
Replaces old module-client-permissions module
2021-02-12 14:28:38 -05:00
George Kiagiadakis
d94b0a2f0c
scripts: add suspend-node.lua to replace m-node-suspension
...
... plus the necessary API for it to work
2021-02-05 12:03:07 +02:00
George Kiagiadakis
88f59f07cb
monitor-alsa: receive script configuration from config.lua
2021-02-03 17:16:51 +02:00
George Kiagiadakis
c00a706998
scripts: add static-sessions.lua
...
Replaces the old create-session wireplumber.conf commands
2021-02-03 17:16:51 +02:00
George Kiagiadakis
1d0ecc3d88
daemon: refactor
...
* load config from a lua script
* use a WpTransition to organize the code
* activate plugins before lua scripts
* cleanup
2021-02-03 17:16:51 +02:00
George Kiagiadakis
e52bd4468d
src: move scripts to their own directory, install in $prefix/share/
2021-02-03 17:16:51 +02:00
George Kiagiadakis
596990d718
modules: remove modules that are obsoleted by the lua scripts
...
+ their configuration
+ their unit tests
2021-01-30 12:58:26 +02:00
George Kiagiadakis
c29d701e4b
monitor-alsa: add device reservation logic
2021-01-26 17:24:52 +02:00
George Kiagiadakis
c78373b1fc
modules: delete the old dbus-reservation module
2021-01-26 16:28:22 +02:00
Julian Bouzas
d315898477
conf: create-endpoint.lua: make sure endpoints always have a valid name
2021-01-25 09:45:52 -05:00
Julian Bouzas
0beefe4d7e
conf: create-endpoint.lua: use node id as key in session_items table
2021-01-25 09:44:29 -05:00
Julian Bouzas
a3a787c5c8
conf: disable legacy endpoint creation module and replace it with lua script
2021-01-22 10:09:39 -05:00
George Kiagiadakis
ac87519841
config: enable lua scripts, disable legacy modules
2021-01-21 09:50:50 +02:00
George Kiagiadakis
b8f8238fb4
lua: fix some nasty memory leaks
2021-01-21 09:42:07 +02:00