George Kiagiadakis
08ef641a04
Merge branch 'proxy-api' into 'master'
...
Proxy API
See merge request gkiagia/wireplumber!7
2019-06-17 14:46:19 +00:00
Julian Bouzas
2c76103c30
modules: use the new proxy API
2019-06-17 10:42:59 -04:00
Julian Bouzas
aa1ce5cdd4
proxy: add API
2019-06-17 10:42:29 -04:00
George Kiagiadakis
5a863fe50c
WpPolicy: add a way of signaling policy changes
...
This can be used by code that depends on policy to re-evaluate
choices they have made in the past that could now change based
on the new policy.
2019-06-14 15:29:57 +03:00
George Kiagiadakis
5cb1232f27
m-pipewire: temporarily add the sync_core_with_cb hack
...
We need to delay the registration of the simple endpoint because
it needs to get some information from the "info" callback of pipewire
before we can use it in a link.
2019-06-13 16:52:16 +03:00
George Kiagiadakis
a93b47690e
modules: re-implement the simple policy module using WpPolicy
2019-06-13 14:57:59 +03:00
George Kiagiadakis
25d70c5446
lib: add new WpPolicy class and basic policy management functionality
2019-06-13 14:51:20 +03:00
George Kiagiadakis
18f3e764c0
simple-policy: link client to the "selected" endpoint
2019-06-11 14:07:54 +03:00
George Kiagiadakis
b83bcd091e
softdsp-endpoint: automatically deselect other endpoints when one is selected
...
Only one endpoint of a certain media class can be selected at a time
2019-06-11 13:29:20 +03:00
George Kiagiadakis
8f544329b9
remote-endpoint: do not require a stream id on controls
...
the stream id is optional, a control may apply globally to all streams
2019-06-11 13:28:33 +03:00
George Kiagiadakis
45dc9786f4
endpoint: ref the endpoint while unregistering
...
The core may be the last object holding a reference to the endpoint,
so the unregister call may destroy it.
2019-06-11 12:49:11 +03:00
George Kiagiadakis
eabd2a49a4
softdsp-endpoint: add the "selected" control
...
This shall be a temporary method of selecting which endpoint
is going to be the default input or output, for testing purposes
2019-06-11 11:58:12 +03:00
George Kiagiadakis
c2f0d65723
softdsp-endpoint: add master volume & mute controls
2019-06-11 11:38:56 +03:00
George Kiagiadakis
e43d2d523d
softdsp-endpoint: destroy the DSP->node link when the DSP becomes idle
2019-06-11 11:18:53 +03:00
George Kiagiadakis
3c201b610f
softdsp-endpoint: copy format using standard struct assignment
2019-06-11 11:05:40 +03:00
George Kiagiadakis
acc3eef294
softdsp-endpoint: improve destruction sequence
...
- Set the node proxy to NULL when it is destroyed externally
so that we don't try to destroy it a second time in finalize.
- Don't remove the dsp_listener, as this is already done inside
the node proxy destroy sequence (but keep removing the node
listener to avoid calling node_proxy_destroy() from inside
finalize())
2019-06-11 10:57:56 +03:00
George Kiagiadakis
c9f03b2cad
softdsp-endpoint: restructure some code, fix some coding style issues
2019-06-11 10:51:34 +03:00
George Kiagiadakis
80831c9320
Cleanup trailing whitespaces
2019-06-11 10:11:24 +03:00
George Kiagiadakis
aa0cfbeb76
Merge branch 'endpoint-linking' into 'master'
...
Endpoint linking
See merge request gkiagia/wireplumber!5
2019-06-10 16:38:00 +00:00
Julian Bouzas
b87e9775ce
simple-policy: add new module
2019-06-10 11:52:03 -04:00
Julian Bouzas
f1d1bff593
modules: add softdsp-endpoit and endpoint linking implementations
2019-06-10 11:51:18 -04:00
Julian Bouzas
cad748ae91
endpoint: set core to null after unregistering endpoint and not before
2019-06-06 12:51:05 -04:00
George Kiagiadakis
1962a8ca1c
daemon: quit when the pipewire remote disconnects or signals an error
...
This is implemented in a slightly hacky way, we register the GMainLoop
as a global object and use it from the module to quit the daemon.
This is bad design because the module assumes it is loaded inside
our daemon.
In the future, this should change. It looks like we should have an
object that tracks the state of PipeWire and main() should track
state changes of that object and decide what to do.
2019-06-05 18:38:56 +03:00
George Kiagiadakis
d4ddad18b3
m-pipewire/simple-endpoint: implement volume & mute controls
2019-06-05 17:20:57 +03:00
George Kiagiadakis
0bc48e27c1
remote-endpoint: print error string in set_param implementation
2019-06-05 17:19:38 +03:00
George Kiagiadakis
1d9eaea5c2
remote-endpoint: fix de-serialization of control id (Int instead of Id)
2019-06-05 17:18:55 +03:00
George Kiagiadakis
36bc1795ca
Relicense to MIT
2019-05-31 12:13:12 +03:00
George Kiagiadakis
d24b469749
Merge branch 'link-bugfix' into 'master'
...
endpoint: fix bug when linking endpoints
See merge request gkiagia/wireplumber!4
2019-05-30 14:22:51 +00:00
Julian Bouzas
dcf749bd40
endpoint: fix bug when linking endpoints
2019-05-30 10:22:04 -04:00
George Kiagiadakis
98fe322897
meson: export the module & config dirs to the C code
...
This allows loading of config and modules when deployed in
the target system without setting environment variables.
2019-05-29 17:36:22 +03:00
George Kiagiadakis
0e01895db3
meson: install wireplumber.conf
2019-05-29 12:58:47 +03:00
George Kiagiadakis
97c9da62ff
meson: properly install modules, headers and add {so,}version on the lib
2019-05-29 12:47:26 +03:00
George Kiagiadakis
c319d40411
remote-endpoint: serialize control & stream IDs as int
...
SPA_POD_Id is reserved for spa type IDs, not arbitrary implementation IDs
2019-05-28 12:24:59 +03:00
George Kiagiadakis
8874e453a5
remote-endpoint: adjust to pw_endpoint api changes
2019-05-28 11:38:28 +03:00
George Kiagiadakis
3aa7d6ce78
lib: remove the session-manager object and register endpoints as globals
2019-05-26 19:21:27 +03:00
George Kiagiadakis
1b6d9720c8
core: allow having a flat list of globals with the same key
...
and also implement
* global-added/removed signals
* a foreach function to iterate through globals
* registering modules and factories with the same key
2019-05-26 18:58:19 +03:00
George Kiagiadakis
bf60614032
improve debug statements a bit
2019-05-26 12:36:20 +03:00
George Kiagiadakis
d91a7666b4
module-pw-alsa-udev: remove useless switch case statements
2019-05-26 12:03:10 +03:00
George Kiagiadakis
93c62ec392
module-pw-alsa-udev: register the endpoints
2019-05-26 12:01:40 +03:00
George Kiagiadakis
f0d592c7f3
module-pipewire: export endpoints to pipewire
2019-05-25 23:24:55 +03:00
George Kiagiadakis
940e1e70c0
endpoint: fix clearing the weak ref
...
g_weak_ref_clear destroys the weak ref, so it will crash
when _finalize() tries to destroy it again
2019-05-25 23:20:54 +03:00
George Kiagiadakis
aa78db35a7
session-manager: add endpoint-added/removed signals
2019-05-25 23:20:33 +03:00
George Kiagiadakis
901593e217
endpoint: improve GVariant format docs
2019-05-25 23:19:28 +03:00
George Kiagiadakis
d2ccd2996b
Merge branch 'alsa-endpoints' of gitlab.freedesktop.org:julian/wireplumber
2019-05-25 23:17:20 +03:00
Julian Bouzas
f8a3c09902
audio-softdsp-endpoint: set name and media-class endpoint properties on creation
2019-05-24 15:04:15 -04:00
Julian Bouzas
21e9f0d98b
alsa-udev: add listener to created audio softdsp endpoints when alsa nodes are created
2019-05-24 13:38:26 -04:00
George Kiagiadakis
8e7f84d888
endpoint: add methods to register to the SM and use them in simple-endpoint
...
This changes the registration point to be the endpoint and not the
session manager, as it seems easier to implement (the implementation
will not need to keep a pointer to the session manager around)
2019-05-24 17:19:58 +03:00
Julian Bouzas
2fd0f63118
factory: don't use smart pointer when creating a factory
2019-05-23 14:09:59 -04:00
Julian Bouzas
92dc9d5cdf
Fix no return statement warnings
2019-05-22 16:59:56 -04:00
George Kiagiadakis
220b95fb05
module-pipewire: add some more debug and fix segfault on startup
2019-05-22 23:46:33 +03:00