Wim Taymans
32e4d676b4
media-session: clear manager after cleanup
2018-10-02 05:45:50 +02:00
Wim Taymans
0f69a7b767
node: remove and add node from graph in idle/running
...
Add the node and all links to the graph when going to running and
remove them again when idle.
2018-10-02 05:10:55 +02:00
Wim Taymans
cd1c7b74af
remote: improve cleanup
...
don't free the proxy when the node is destroyed, the proxy has
user data that we need to clean up the ports. Instead let the
remote take care of destroying the proxy later.
2018-10-01 17:59:25 +02:00
Wim Taymans
c1eeb89e18
stream: fix debug of control messages
2018-10-01 11:15:51 +02:00
Wim Taymans
392b217f81
client-stream: make adapter port variable
...
We need this to add control ports later
2018-10-01 11:15:12 +02:00
Wim Taymans
18408dad81
port: handle control only ports
...
Mark ports with only control io as control ports and skip negotiation
of buffers and format for them.
2018-09-28 17:55:01 +02:00
Wim Taymans
909abdb6bf
port: remove some checks, the mixer is always set
2018-09-28 17:52:47 +02:00
Wim Taymans
1ca399d4a6
link: pass id to _set_io
2018-09-28 17:50:22 +02:00
Wim Taymans
089fc2e8c1
link: also unlink controls
2018-09-28 17:49:57 +02:00
Wim Taymans
857352e4a4
stream: advertise that we can do buffers
2018-09-28 17:48:14 +02:00
Wim Taymans
8f7328173b
utils: add another flag helper macro
2018-09-28 17:47:37 +02:00
Wim Taymans
2ebc65728c
link: also try to link controls
2018-09-28 11:25:22 +02:00
Wim Taymans
6b0c28e717
client-node: don't try to add invalid memid
2018-09-28 05:49:38 +02:00
Wim Taymans
b8fb7aeaad
media-session: handle disconnect better
2018-09-26 13:22:21 +02:00
Wim Taymans
4e2855f6fb
node: move root directly to driver graph
2018-09-26 13:12:45 +02:00
Wim Taymans
d4fa4e63e8
remove unused type map
...
Add reset methods for array and map
Signal disconnect before destroying the proxies in remote.
2018-09-26 13:11:23 +02:00
Wim Taymans
04f8da9110
improve debug
2018-09-26 11:44:50 +02:00
Wim Taymans
650f9eb9a7
media-session: make device links passive again
2018-09-26 10:52:33 +02:00
Wim Taymans
f4672cbe99
link: improve state handling
2018-09-26 10:52:11 +02:00
Wim Taymans
9b2a051daf
link: add feedback links
...
Check if a link is a feedback loop. For feedback loops we want to
schedule the consumer before the provider.
2018-09-25 17:10:06 +02:00
Wim Taymans
0701428aec
link: only idle node if all links are idle
2018-09-25 17:09:22 +02:00
Wim Taymans
74ebff6b7d
add some more debug log
2018-09-25 17:08:59 +02:00
Wim Taymans
39240fb9c0
use _list_consume to destroy objects
2018-09-25 13:05:13 +02:00
Wim Taymans
881ee6caea
node: remove process signals
...
Remove the process and finish signals, we are not supposed to
call these from rt threads. Instead use the link trigger to signal
the end of the graph.
2018-09-24 12:48:37 +02:00
Wim Taymans
30316df5c8
fix some leaks
2018-09-24 09:33:09 +02:00
Wim Taymans
132ee30930
improve some debug
2018-09-24 09:32:27 +02:00
Wim Taymans
8a562c4427
module: remove resource listener in cleanup
...
Remove the resource listener before destroying the object because that
will trigger the resource cleanup again.
2018-09-24 09:30:14 +02:00
Wim Taymans
8a88c6da53
link-factory: add linger options
...
The linger option makes the link survive after the client is destroyed.
2018-09-21 16:45:52 +02:00
Wim Taymans
59f10ad453
Add proxy destroy
...
Make the current destroy method on the core for proxies to remove the
server side resource.
Make a new destroy method on the registry to destroy globals.
Remove the destroy method on the client-node
media-session: monitor the dsp and device node states to manage the
session state
2018-09-21 16:43:11 +02:00
Wim Taymans
ce4cfd78e7
introspect: copy link properties
2018-09-21 16:40:06 +02:00
Wim Taymans
375df60384
stream: protect time updates with atomic seqlock
2018-09-21 16:39:06 +02:00
Wim Taymans
3af7b42193
node: update quantum dynamically
...
Keep the requested quantum around and recalculate when nodes are
added and removed from the driver graph.
2018-09-20 17:47:22 +02:00
Wim Taymans
5ba27a7dc1
add some more debug
2018-09-20 10:14:11 +02:00
Wim Taymans
b50482e346
fix cleanup
...
When the node is destroyed, remove it from the node list and mark
the reference to the node gone so that when the resource is cleaned
up we don't try to destroy the node again.
2018-09-20 10:13:00 +02:00
Wim Taymans
3d1acf3032
media-session: also link source to DSP
2018-09-20 10:12:04 +02:00
Wim Taymans
27cacaaa2e
video-play: free SDL data
2018-09-19 15:01:11 +02:00
Wim Taymans
627dfa3da2
fix some leaks
...
Make pw_get_client_name() return a static string.
Unload the dbus interface. Rename the method to make it more obvious
that the interface needs to be unloaded.
Free module properties
Free remote objects and types
Free stream params and the array
2018-09-19 13:38:39 +02:00
Wim Taymans
f57d1125f6
link-factory: clear links when client dies
2018-09-18 12:33:01 +02:00
Wim Taymans
3dc2254196
media-session: add suspend
2018-09-18 09:28:52 +02:00
Wim Taymans
aab69948b0
node: add set_param and send_command methods
2018-09-18 09:28:17 +02:00
Wim Taymans
96a84d09df
media-session: remove session when the driver node is removed
2018-09-17 17:17:08 +02:00
Wim Taymans
c194c34326
audio-dsp: cleanup when the node is destroyed
...
Also clean up when the node is distroyed
2018-09-17 17:16:20 +02:00
Wim Taymans
fcd90b25d3
More work on multichannel
...
Reorder channels to a more common default order.
Only add channel layout when channels > 1
Don't try to link to a session that is still starting
Small sse fixes.
2018-09-14 15:23:12 +02:00
Wim Taymans
5196f7f053
audio: remove layout from audio
...
Make special format types for planar and interleaved instead of
having a field.
Add enum for audio channel positions
Add some default audio channel layouts
Place the channel layout in the audio format when possible
alsa: place audio channel positions in format
Add sse optimized channel mixing for some common cases
Remove name from port info, it's not mandatory and in the properties
Add direction to port info
2018-09-13 17:03:56 +02:00
Wim Taymans
fb3379e587
Pass channelmask around and use it to name ports
...
Use the channel name in the port names of the dsp
2018-09-11 18:09:45 +02:00
Wim Taymans
7aae01fe15
media-session: handle object remove
...
Improve debug
Deal with removed objects, handle node cleanup
Classify nodes with a type ans get rid of stream struct.
2018-09-11 15:25:35 +02:00
Wim Taymans
45807e804a
media-session: also link sinks correctly
2018-09-11 12:02:35 +02:00
Wim Taymans
593daa36d4
connection: split messages to work around fd limit
...
Split messages in multiple parts when there are too many fds to
send in one message.
2018-09-11 12:01:19 +02:00
Wim Taymans
968192f9a9
media-session: implement more
...
Track the state of nodes and ports.
Make streams for nodes tagged as stream
Make sessions for nodes that are sinks and sources and make a DSP
node for those
Rescan when a change happens and reconfigure
Link streams to sessions
2018-09-11 10:26:19 +02:00
Wim Taymans
f3dec52fd2
audio-dsp: improve cleanup
2018-09-11 10:25:40 +02:00