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
George Kiagiadakis
7b4829f808
config: add lua-based device monitors
2021-01-21 09:42:07 +02:00
George Kiagiadakis
c42a4def01
config: rename desktop profile to desktop-ep
...
A new desktop profile without endpoints will be added.
The goal is to be compatible with media-session in the short term
2021-01-15 16:41:22 +02:00
Julian Bouzas
d96c856f28
m-lua-scripting: handle default endpoints from the metadata
2021-01-15 08:59:13 -05:00
Julian Bouzas
9cb79dc3d6
modules: replace session-settings with default-metadata
2021-01-14 13:34:01 -05:00
George Kiagiadakis
b1a0f76807
config: implement the functionality of config-policy in Lua
...
Still missing a way to get the default endpoints, but this
is going to change and use the metadata API
2020-12-22 11:37:31 +02:00
George Kiagiadakis
af01155093
Merge branch 'master' into next-lua
2020-12-21 18:56:52 +02:00
George Kiagiadakis
2f0799642d
config: disable audio sink "streams"; they fail on latest pipewire
...
Fixes #22
2020-12-21 18:48:21 +02:00
George Kiagiadakis
a2181fc3f4
Merge remote-tracking branch 'origin/master' into next
2020-12-01 11:16:13 +02:00
George Kiagiadakis
a7dcd3b76f
src: port daemon to the new APIs
2020-11-15 20:26:15 +02:00
Julian Bouzas
af70cac05f
modules: add module to store device profiles each time they change
2020-11-13 14:20:54 -05:00
Julian Bouzas
763f0f1795
m-monitor: add use-acp flag
2020-11-13 14:20:54 -05:00
Julian Bouzas
321545a32c
modules: refactor dbus reservation
...
The Dbus device reservation has been moved into a separate module, and has also
been refactored to allow reserving a device name before an actual device is
created. Devices now are created and destroyed by the monitor depending on
whether PipeWire owns the device or not. This also simplifies a lot the device
activation module to always enable devices when they are created, and never
worry about checking whether a device is acquired by PipeWire or not.
2020-10-22 14:33:59 -04:00
Julian Bouzas
397a141150
m-endpoint-creation: add bluez5 endpoint creation for bluetooth devices
2020-10-05 11:35:24 -04:00
Julian Bouzas
7d35191091
m-config-endpoint: refactor and rename to endpoint-creation
...
Allows implementing device specific endpoint creation logic, which is currently
needed for bluetooth endpoints as they need to be created differenly.
2020-10-05 11:35:24 -04:00