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
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
Julian Bouzas
2c76103c30
modules: use the new proxy API
2019-06-17 10:42:59 -04: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
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
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
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
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
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
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
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
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
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
George Kiagiadakis
e1ef9b1128
module-pipewire: implement client node detection and simple-endpoint creation
2019-05-22 16:49:21 +03:00
George Kiagiadakis
06db0e414a
factory: improve API and hide its implementation (better for introspection)
2019-05-22 13:03:24 +03:00
George Kiagiadakis
5f853d0e53
endpoint: refactor slightly the public API
...
* Make streams a GVariant array, for future-proofness
* Add API for controls (volume, mute, brightness, contrast, etc...)
* Remove API for profiles (it's not well-thought; may be re-added
in the future)
2019-05-21 18:27:07 +03:00
George Kiagiadakis
447c968846
Refactor everything!
...
After discussing things at the AGL May 2019 F2F meeting
and reflecting on the initial design of WirePlumber,
it became clear that it needed a fresh start.
2019-05-17 13:34:07 +03:00
George Kiagiadakis
43365715f7
many crash fixes
2019-04-28 14:20:00 +03:00
George Kiagiadakis
ac65d44bbf
session: make the media_class a normal GObject property
2019-04-28 14:18:44 +03:00
George Kiagiadakis
e16e66de2d
lib: object/interface: do not (transfer full) interfaces and objects
2019-04-26 13:19:18 +03:00
George Kiagiadakis
b376c5d7c4
modules: add a basic default session implementation as a module
2019-04-26 12:39:35 +03:00