Pauli Virtanen
3730e54484
modules: support getting app_id in pw_check_flatpak
...
Support getting the Flatpak application ID from the .flatpak-info file,
similarly as what xdg-desktop-portal does.
2022-08-01 19:36:00 +00:00
Pauli Virtanen
5e5339ce6c
modules: refactor check_flatpak to a common place
...
Move check_flatpak used by module-access and module-protocol-pulse
to a common flatpak-utils.h
2022-08-01 19:36:00 +00:00
Hubert Figuière
f1dfa9797b
Issue #2570 - Use the xdg-portal-destkop of rtkit
...
- If the xdg-desktop-portal is there, use it instead of rtkit
- This allow setting the rt priorities within Flatpak
2022-08-01 19:19:24 +00:00
Barnabás Pőcze
51b5aafeaa
pipewire: module-echo-cancel: remove line that does nothing
2022-07-23 08:58:18 +00:00
Wim Taymans
f857fd4626
avb: fix compilation on big endian
2022-07-19 15:59:00 +02:00
Wim Taymans
1a5ec4452f
avb: fix compilation on big endian
2022-07-19 13:49:42 +02:00
Wim Taymans
aaeafa49c1
fix some printf arguments
2022-07-18 15:39:06 +02:00
Wim Taymans
7151150802
filter-chain: don't use invalid ports
...
When the stream has more channels than the filter inputs or outputs,
don't try to connect an invalid filter port but ignore the input and
clear the output.
2022-07-14 11:55:52 +02:00
Doğukan Korkmaztürk
43602911c6
module-rt: handle pthread_getschedparam() errors correctly
...
pthread_getschedparam() always returns non-negative values, so checking
if its return value is less than zero always evaluates to false.
Also, pthread functions don't set errno. While logging a warning
message, use the return value of pthread_getschedparam() instead of
errno.
2022-07-14 10:55:33 +02:00
Wim Taymans
b2bb2fe028
filter-chain: be more carefull with buffer sizes
...
Take the min of the input buffer size as the output size. Make sure we
don't process more than the output buffer maxsize as well.
2022-07-13 16:45:57 +02:00
Wim Taymans
7a76e55c36
module-looback: improve data copy between streams
...
First go over all the input and collect pointers and the size that we
need to copy. Then go over all destinations and copy the source or
clear the buffer memory.
This fixes the problem where extra planes in the destination would get
a 0 size, which would make the converter produce 0 output. It also
ensure that the output size is consistent.
2022-07-13 16:21:25 +02:00
Wim Taymans
35082e4f4b
pulse-server: add the delay
...
Actually add the delay to the buffered amount of time instead of
overwriting.
2022-07-13 10:49:26 +02:00
Wim Taymans
855d17ac1b
pulse-server: add some debugging
2022-07-13 10:42:00 +02:00
Wim Taymans
00d18217a6
avb: remove unused line
...
Probably a leftover from earlier merge..
2022-07-12 15:53:51 +02:00
Wim Taymans
4304a147e9
avb: properties are owned by avb object
2022-07-12 12:37:58 +02:00
Wim Taymans
10e54dc0ee
avb: fill in some more values
2022-07-12 12:27:22 +02:00
Wim Taymans
9bfb23f3f8
avb: don't include ethernet header in in packets
...
Move vlan_id and prio to the stream.
2022-07-12 12:27:22 +02:00
Wim Taymans
dec2bdf241
avb: reply with advertise to discover
2022-07-12 12:27:22 +02:00
Wim Taymans
a34417eed0
avb: handle command errors better
...
Ignore unknown commands.
Set the right reply message type for unsupported methods.
2022-07-12 12:27:22 +02:00
Wim Taymans
fa9fcbe964
avb: save and load maap state
2022-07-12 12:27:22 +02:00
Wim Taymans
f043922b24
avb: implement maap
...
Implement the maap state machine.
Use maap for the destination address of talker streams.
2022-07-12 12:27:22 +02:00
Wim Taymans
e0d6b2bb4f
avb: implement streams
...
Add in input/output stream, setup the talker/listeners.
Implement IEC61883 audio packets, send and receive data.
Implement talker encoding.
With this, audio can be sent and received from MOTU M64.
2022-07-12 12:27:22 +02:00
Wim Taymans
460cedbc86
avb: 0 was used for no-event
2022-07-12 12:27:22 +02:00
Wim Taymans
2344ad7869
avb: fix compilation
2022-07-12 12:27:22 +02:00
Wim Taymans
c07e16c728
avb: use separate sockets per mac/type
2022-07-12 12:27:22 +02:00
Wim Taymans
42a4108c08
avb: add packet filter
2022-07-12 12:27:22 +02:00
Wim Taymans
ba98a2743c
avb: add missing file
2022-07-12 12:27:22 +02:00
Wim Taymans
9a26df3478
avb: improve state machine
...
Emit per attribute callbacks.
Notify events immediately.
2022-07-12 12:27:22 +02:00
Wim Taymans
773bd610aa
avb: avbtp -> avb
2022-07-12 12:27:22 +02:00
Wim Taymans
d5b4c12684
avb: improve MRP state handling
2022-07-12 12:27:22 +02:00
Wim Taymans
0868f0c7b0
avb: implement more MRP
...
Join a READY listener MRP attribute when we recveive the transmit
response.
Also listen for talker attributes.
Remove attribute callbacks, we don't need them because we moved the
packet construction in the MRP users.
Implement notify for listener attributes.
A connect will now make my MOTU send samples to PipeWire.
2022-07-12 12:27:22 +02:00
Wim Taymans
f64f8cdd4d
avb: more work
...
Implement generic MRP parsing.
Implement more MRP messages.
Implement MRP timeouts.
Implement MRP join/leave.
Prepare for generating and sending MRP packets.
2022-07-12 12:27:22 +02:00
Wim Taymans
0efc02cea6
avb: add more state machine
2022-07-12 12:27:22 +02:00
Wim Taymans
893251c8eb
avb: add beginnings of MRP/MMRP/MSRP/MVRP/SRP
2022-07-12 12:27:22 +02:00
Wim Taymans
911378651b
avb: implement some more methods
...
Only reply to messages for us.
2022-07-12 12:27:22 +02:00
Wim Taymans
3cc21c6f5b
avb: implement acmp connect/disconnect commands
2022-07-12 12:27:22 +02:00
Wim Taymans
50199c9824
avb: use descriptors for ADP
...
Remove some of the json parsing for now, work with descriptors.
Remove some parsing code.
Implement GET_AVB_INFO.
Keep descriptors in a list.
Add some utils.
2022-07-12 12:27:22 +02:00
Wim Taymans
b6b8471540
avb: add some more descriptors
...
PipeWire Streams now show up in Hive.
2022-07-12 12:27:22 +02:00
Wim Taymans
4613c7822f
avb: implement some descriptors
...
Work on raw ethernet frames.
2022-07-12 12:27:22 +02:00
Wim Taymans
da14e9f59d
avb: implement some more AEM
2022-07-12 12:27:22 +02:00
Wim Taymans
287e8cfe51
avb: clean up some packets
...
Listen to all messages. We don't seem to receive TSN messages from our
local host it seems.
Reply with not-implemented for an AEM_COMMANDS.
Implement some mode ADP messages.
2022-07-12 12:27:22 +02:00
Wim Taymans
07a4c5032e
avb: add aecp stubs
2022-07-12 12:27:22 +02:00
Wim Taymans
dc44a61ef3
avbtp: add some more fields
...
Add ADP entries timeout
2022-07-12 12:27:22 +02:00
Wim Taymans
f470354e67
avbtp: add beginnings of AVB manager module
2022-07-12 12:27:22 +02:00
Wim Taymans
de65fd442f
modules: use TARGET_OBJECT instead of NODE_TARGET
2022-07-11 13:52:35 +02:00
Wim Taymans
ea3a81dc29
raop-sink: fix some compilation errors
2022-07-07 19:56:55 +02:00
Wim Taymans
4da583a44b
raop-sink: reuse timing packet send
...
Use send() instead of write(), use sendto() for the packets so that we
can specify a destination.
2022-07-07 14:00:38 +02:00
Christian Glombek
2c8d25b4dc
module-raop-sink: Reply on timing socket earlier
...
Some AirPlay 2 devices require responding on the UDP timing port
right after sending the SETUP request.
2022-07-07 11:20:39 +00:00
Davis Davalos-DeLosh
eb3c2f3e95
module-raop: Add support for auth_setup
...
This step is required by some devices.
Co-authored-by: Christian Glombek <lorbus@fedoraproject.org>
2022-07-07 11:20:39 +00:00
Pauli Virtanen
167537dffc
pulse-server: fix warning
...
The rest of the fields are zeroed later in reply_create_record_stream,
but static analysis doesn't know that.
2022-07-06 14:36:22 +00:00