Commit Graph

490 Commits

Author SHA1 Message Date
Julian Bouzas
7aded3a8c9 modules: unregister endpoints on global_removed instead of proxy destroyed 2019-06-26 12:37:19 -04:00
Julian Bouzas
495a74d0e6 endpoint: remove unneeded ref/unref 2019-06-26 12:36:59 -04:00
Julian Bouzas
ded3106efc core: handle global references in a simpler way 2019-06-26 12:35:55 -04:00
George Kiagiadakis
6177b7482e softdsp-endpoint: fix compiler warnings 2019-06-26 16:07:24 +03:00
George Kiagiadakis
33391f4246 simple-policy: select by default the first non-loopback device
This is a bit of a hack, temporarily needed for AGL.
2019-06-26 13:33:50 +03:00
George Kiagiadakis
d6f6c3d677 softdsp-endpoint: give a proper name to the endpoint based on alsa properties 2019-06-26 12:51:22 +03:00
George Kiagiadakis
39b5bc8b15 Merge branch 'async-endpoints' into 'master'
Async endpoints

See merge request gkiagia/wireplumber!13
2019-06-26 09:22:52 +00:00
George Kiagiadakis
3e24856263 modules: add new module to manage client permissions
Currently this will just grant full access to all clients.
A future version will refine that to grant access to specific
objects only.
2019-06-26 12:11:38 +03:00
Julian Bouzas
ff2420b70a modules: add support for multiple channels linking 2019-06-24 14:27:52 -04:00
Julian Bouzas
be6256fb0a modules: make endpoint creation async 2019-06-24 11:17:43 -04:00
Julian Bouzas
4333c94531 endpoint: add async initable interface boilerplate 2019-06-24 10:52:02 -04:00
Julian Bouzas
6fbf2527fb factory: add async support 2019-06-24 10:51:40 -04:00
George Kiagiadakis
f412166315 remote-pipewire: emit global-added for all proxy types 2019-06-24 17:20:42 +03:00
George Kiagiadakis
661010a36b Merge branch 'registry' into 'master'
Registry

See merge request gkiagia/wireplumber!12
2019-06-24 10:25:41 +00:00
George Kiagiadakis
1f82868e0c remote-pipewire: do not leak the GSource 2019-06-24 11:10:21 +03:00
Julian Bouzas
d2b8337045 modules: use the registry from WpRemotePipewire 2019-06-20 12:59:34 -04:00
Julian Bouzas
d84217c1e9 remote-pipewire: add registry listener 2019-06-20 12:55:32 -04:00
Julian Bouzas
83394022cb proxy: don't remove the listener on destruction as it is not needed 2019-06-20 11:59:51 -04:00
Julian Bouzas
236ea5e0f2 proxy: add wp_proxy_sync API and DONE signal 2019-06-20 11:59:51 -04:00
George Kiagiadakis
1e6c7488bd proxy: avoid crashing when the WpProxy is unrefed in the "destroyed" signal handler 2019-06-20 18:55:50 +03:00
George Kiagiadakis
0c9d6e8282 meson: add option to disable gobject introspection
Fixes #1
2019-06-20 15:48:29 +03:00
George Kiagiadakis
f2ac3cc6d9 modules: do not leak references to the endpoints at their construction time 2019-06-20 13:09:38 +03:00
George Kiagiadakis
2da44762df m-simple-policy: find_endpoint: ref the endpoint only if it's not NULL 2019-06-20 13:00:16 +03:00
George Kiagiadakis
d236fea23d m-mixer: downgrade warnings about no backend to debug messages
This is a situation that always happens on startup, so let's not
spam with warnings
2019-06-20 13:00:16 +03:00
George Kiagiadakis
ee00a24688 core: destroy globals in _dispose() so that the global-removed signal is dispatched
signal emission apparently does not work in _finalize()

Fixes some critical warnings from remote-endpoint.c because disconnection
from the destroyed endpoints did not happen
2019-06-20 13:00:16 +03:00
George Kiagiadakis
643d3d61bc Merge branch 'proxy-global-id' into 'master'
Proxy global id

See merge request gkiagia/wireplumber!11
2019-06-19 13:52:26 +00:00
Julian Bouzas
601749d721 audio-softdsp-endpoint: set module instead of core in the module data 2019-06-19 09:13:02 -04:00
Julian Bouzas
fc7ebc2c31 proxy: add global_id property 2019-06-19 09:07:00 -04:00
George Kiagiadakis
0ad9464b54 softdsp-endpoint: workaround pipewire bug
spa audioconvert (the backend of audio-dsp) does not adevertise
property changes, therefore subscribe_params() is useless.
In order to get the real value from the node we need to call
enum_params() manually.

https://github.com/PipeWire/pipewire/issues/157
2019-06-19 12:19:36 +03:00
George Kiagiadakis
aa5b16f8df module-mixer: implement the "Mixer/Audio" endpoint provider
This provides high level volume controls for the AGL audiomixer
binding and the applications using it.
2019-06-18 19:58:42 +03:00
George Kiagiadakis
dcbe3a6f10 modules: move the "selected" endpoint logic to the simple-policy module and improve it
We now have always a "selected" endpoint for each direction (source, sink)
that is picked as the first available endpoint at startup,
and it changes automatically if the currently selected endpoint is removed
2019-06-18 19:44:28 +03:00
George Kiagiadakis
5d93cf338b remote-endpoint: disconnect the control-value change callback when the proxy is destroyed
This avoids the theoretical crash that would happen if you change
the control value on an endpoint whose client-endpoint proxy has
already been destroyed
2019-06-18 19:42:19 +03:00
George Kiagiadakis
b770cf6a3e core: remove_global: remove object from the list before triggering the notification
This avoids being able to find the same object on the globals list
from code that is connected to the signal.
2019-06-18 19:39:52 +03:00
George Kiagiadakis
ca1453febd endpoint: add some useful API for querying info about streams & controls 2019-06-18 17:42:06 +03:00
George Kiagiadakis
ecad76d995 policy: consume floating reference of GVariant in _find_endpoint() 2019-06-18 17:41:34 +03:00
George Kiagiadakis
52273e99a0 Merge branch 'unregister-endpoint' into 'master'
Unregister endpoint

See merge request gkiagia/wireplumber!10
2019-06-18 14:25:35 +00:00
Julian Bouzas
a471a2df13 proxy: remove unneeded core reference 2019-06-18 10:18:21 -04:00
Julian Bouzas
42bdf3ee6d modules: unregister the endpoints when their proxy is destroyed 2019-06-18 10:10:20 -04:00
Julian Bouzas
922065f97d proxy: add destroyed signal 2019-06-18 10:09:40 -04:00
George Kiagiadakis
994e7d19d8 Merge branch 'refcount-fix' into 'master'
modules: fix proxy ref-count

See merge request gkiagia/wireplumber!9
2019-06-18 12:36:49 +00:00
Julian Bouzas
3feddf5579 modules: fix proxy ref-count 2019-06-18 08:34:54 -04:00
George Kiagiadakis
e603ed4215 lib: add some debug statements to debug the destruction sequence 2019-06-18 10:33:38 +03:00
George Kiagiadakis
64affcaf49 proxy: maintain a weak ref to the core
avoids criticals and crashes when the core is destroyed earlier
2019-06-18 10:21:58 +03:00
George Kiagiadakis
0b3433d732 modules: fix some ref counting and memory {de-,}allocation issues 2019-06-18 10:02:01 +03:00
George Kiagiadakis
ab73fd6eb0 endpoint: maintain a weak ref to the core since construction time
+ add a method to retrieve the core
+ change the register function to not require the core as a parameter
2019-06-18 09:23:40 +03:00
George Kiagiadakis
f5279fcb66 Merge branch 'use-proxy-api' into 'master'
Use proxy api in module-pipewire and simple-endpoint

See merge request gkiagia/wireplumber!8
2019-06-18 05:20:18 +00:00
Julian Bouzas
1f2386c08d module-pipewire and simple-endpoint: use the new Proxy API 2019-06-17 14:37:14 -04:00
Julian Bouzas
8877e0438d alsa-udev: fix minor bug 2019-06-17 14:26:24 -04:00
Julian Bouzas
7337f9c19f audio-softdsp-endpoint: fix proxy port property description 2019-06-17 14:26:24 -04:00
George Kiagiadakis
7b9e8a030e lib: add a new WpRemote base class and move the pw_remote glue into a new WpRemotePipewire
This is a cleaner way to interface with the remote pipewire daemon.
The WpRemote base class can be subclassed also for interfacing
with other daemons (hardware-specific managers, etc)
2019-06-17 20:28:06 +03:00