Wim Taymans
6bd553f89b
node: add _set_param()
2019-11-21 13:09:28 +01:00
Wim Taymans
02d0802004
remote-node: don't enum invalid param ids
2019-11-21 13:05:58 +01:00
Wim Taymans
d9b34dc4e3
filter: remove unused pending_seq
2019-11-21 13:04:58 +01:00
Wim Taymans
d8c86d977a
remote: destroy mempool after proxies
...
Some proxies might want to free the memory from the pool.
2019-11-21 13:04:58 +01:00
Wim Taymans
3f89911f1d
device: expose DEVICE_API in global properties
2019-11-21 09:34:34 +01:00
Wim Taymans
feb8dd3a34
Add include of keys.h
2019-11-21 09:34:08 +01:00
Wim Taymans
81bf9cd488
improve some debug
2019-11-21 09:32:48 +01:00
Wim Taymans
e18a24493a
client: don't register in client_new()
...
Don't register in client_new() to make it possible to do other things
on the client before registering. Register the client in protocol-native
after we set up the events etc.
2019-11-19 15:59:45 +01:00
George Kiagiadakis
5f65f1cbbe
client: register the global early, in pw_client_new()
...
otherwise, if the access module blocks the client, the on_start
callback in the protocol is not called and there is no global,
which means the session manager cannot do anything to grant
permissions on this client and the client is blocked forever
2019-11-19 14:50:04 +00:00
Julian Bouzas
ef94b5c345
tools: add new pipewire-dot tool to generate a global objects dot graph
2019-11-19 15:41:50 +01:00
Wim Taymans
f92775719a
log: make timestamps configurable
2019-11-19 15:38:09 +01:00
Wim Taymans
ac24743b2e
the epoll shim should only be used by the system library.
...
All other places should use the system library to get the right
fds.
2019-11-19 15:16:18 +01:00
Gleb Popov
2720df0175
Do not call memfd_create on FreeBSD.
2019-11-19 13:41:40 +01:00
Gleb Popov
999fa525f5
Implement _gettid() for FreeBSD and do not call pthread_setschedparam() with SCHED_RESET_ON_FORK argument.
2019-11-19 13:41:40 +01:00
Gleb Popov
6ea24a7db5
Don't call getsockopt with SO_PEERCRED and SO_PEERSEC parameters on FreeBSD.
2019-11-19 13:41:40 +01:00
Gleb Popov
33df224254
Use pthread_set_name_np() instead of pthread_setname_np() on FreeBSD.
2019-11-19 13:41:40 +01:00
Gleb Popov
feb9a4b9e1
Don't call prctl() on FreeBSD.
2019-11-19 13:41:40 +01:00
Gleb Popov
0a21c61ed0
Don't define memfd_create() and USE_MEMFD on FreeBSD.
2019-11-19 13:41:40 +01:00
Gleb Popov
ef3ebbed46
Define empty struct ucred on FreeBSD.
2019-11-19 13:41:40 +01:00
Gleb Popov
fd937fa378
On FreeBSD, add dependency on epoll-shim library.
...
FreeBSD doesn't provide timerfd and eventfd functions. These are implemented in
3rd party library called epoll-shim. Link targets requiring these functions to
this library.
2019-11-19 13:41:40 +01:00
Wim Taymans
68e94a2e7e
system: use spa_system functions for fds
2019-11-19 13:41:40 +01:00
Wim Taymans
b14bb1f496
media-session: don't include use-case.h
...
We only use the use-case manager in alsa-endpoint
2019-11-19 11:29:50 +01:00
Arun Raghavan
f61498b863
session-manager: Fix use-case.h include ordering
...
Seems like the ALSA requires the general headers to be included before
use-case.h.
2019-11-19 07:45:43 +05:30
Wim Taymans
3c51f559ef
elsa-endpoint: include asoundlib first
2019-11-18 10:40:50 +01:00
Wim Taymans
9f765897db
add missing files
2019-11-07 16:39:13 +01:00
Wim Taymans
4ad7ce3aa2
session-manager: split policy and monitor
...
Separate the session manager in a monitor and policy part.
The monitor manages the devices and endpoints.
The policy watches the nodes/ports/clients and applies the policy
of linking them.
Because both now have a separate connection, we can remove some
hacks in the protocol. When a remote was both the implementer and
user of an object we could get in a deadlock when the user was
blocked waiting and the implementator was blocked sending a reply.
We used to un-busy a client when it was expecting a reply from a
ping or sync for this reason.
Add and use some more keys for the endpoints and streams.
2019-11-07 16:03:00 +01:00
Wim Taymans
74b4790afe
core: handle error when creating memorypool
...
Start data loop later.
2019-11-07 11:43:09 +01:00
Wim Taymans
638ee33f44
remote: only load protocol when not already loaded
2019-11-07 11:41:14 +01:00
Wim Taymans
9df6efcd8d
properties: copy_keys -> update_keys
...
Change copy_keys to update_keys and make it more powerful by taking
a spa_dict as the source.
Copy some more properties in the session.
2019-11-05 16:35:15 +01:00
Wim Taymans
60cd74fdb0
alsa: set MEDIA_CLASS in nodes
2019-11-05 16:34:12 +01:00
Wim Taymans
1f5aa26452
type: move implementations to a separate section
2019-11-05 16:31:40 +01:00
Wim Taymans
8409e8be49
endpoint: make endpoints of alsa devices
...
Make one endpoint for each device
Make a stream for each node
2019-11-04 17:30:33 +01:00
Wim Taymans
6397db9d68
protocol: init spa_dict properly
...
Or else the flags might be wrong.
2019-11-04 17:30:33 +01:00
Wim Taymans
085f1822b9
session-manager: fix protocol
...
Add separate types for interfaces and implementation
Fix some bugs in the protocol
Add some introspection support in cli
2019-11-04 17:30:33 +01:00
George Kiagiadakis
15f3d28e11
daemon config & remote: load module-session-manager by default
...
Upstream-Status: Pending
2019-11-04 17:30:33 +01:00
George Kiagiadakis
d6dc0d0356
pipewire-cli: add support for printing endpoint info & params
...
Upstream-Status: Pending
2019-11-04 17:30:33 +01:00
George Kiagiadakis
1e14206c71
extensions: implement new session manager extension
...
This extension, implemented in module-session-manager, implements
a set of objects that are useful for session managers.
2019-11-04 17:30:33 +01:00
Wim Taymans
d79abd1502
install metadata header
2019-11-03 16:39:56 +01:00
Wim Taymans
57299ec491
Add missing files
2019-11-03 11:25:23 +01:00
Wim Taymans
0a81a982f7
metadata: Add metadata API
...
Metadata allows apps to attach properties to objects that can be
read by other apps.
Not complete yet, properties should be removed when the object is
removed.
2019-11-03 10:31:14 +01:00
Wim Taymans
8ddf579cc0
protocol: add flags to protocol marshal
...
Allows us to to select marshallers for implementation and binding.
2019-11-03 10:21:57 +01:00
Wim Taymans
c842b5adf2
reserve: fix RequestRelease
...
Only fail when message is NULL
Actually send the message as well
2019-11-03 10:12:45 +01:00
Wim Taymans
140203d5a3
core: add and use some keys for cpu settings
2019-10-29 12:48:07 +01:00
Wim Taymans
b4b69473d3
filter: add filter API
...
The filter API is meant for making generic audio and video filters.
It's like a pw_stream but with many in/out ports and no conversion.
Eventually the pw_stream will be implemented with the filter.
Add some example audio and video filters.
2019-10-29 11:59:58 +01:00
Wim Taymans
858a5017ed
small cleanups
2019-10-28 13:21:40 +01:00
Wim Taymans
ebb5ed94a2
add some docs
2019-10-25 15:01:27 +02:00
Wim Taymans
9ffec214b8
fix includes
2019-10-25 15:01:02 +02:00
Wim Taymans
af73585948
Increase max buffer size
2019-10-24 15:26:59 +02:00
Wim Taymans
12fb58add1
core: explicitly calculate min and max quantum
...
Just clamp to default for now until we can implement power save mode.
2019-10-24 12:19:21 +02:00
Wim Taymans
b74080ea55
alsa: give capture stream highest priority
...
Make sure we always make the capture device a master. We would prefer
to only do resampling on the sinks when we need to.
2019-10-24 11:06:37 +02:00