Commit Graph

8110 Commits

Author SHA1 Message Date
Martin Piatka
cdebc9669c aplay/aes67: Remove unused field
The sap hash is generated when the packet is created
2026-02-11 13:56:30 +01:00
Martin Piatka
91a7f16c5f aplay/aes67: Remove unused typedef 2026-02-11 13:56:30 +01:00
Martin Piatka
f8bfd1e409 aplay/aes67: Add missing initializers 2026-02-11 13:56:30 +01:00
Martin Piatka
bd0b96550a aplay/aes67: Remove unused sap_session field 2026-02-11 13:56:29 +01:00
Martin Piatka
401df25bb0 aplay/aes67: Send silence if not enough samples 2026-02-11 13:56:29 +01:00
Martin Piatka
a67fd8132a aplay/aes67: Fix incorrect write 2026-02-11 13:56:29 +01:00
Martin Piatka
c535bff11d aplay/aes67: Use ug_rand() 2026-02-11 13:56:29 +01:00
Martin Piatka
f1c10e6572 aplay/aes67: Add missing zero initializers 2026-02-11 13:56:29 +01:00
Martin Piatka
2e47f4c8f1 aplay/aes67: Convert input bps to stream bps 2026-02-11 13:56:29 +01:00
Martin Piatka
aa61b42776 aplay/aes67: Use correct packet time 2026-02-11 13:56:29 +01:00
Martin Piatka
917d627a6e aplay/aes67: Reset timing if off by more than 1s 2026-02-11 13:56:28 +01:00
Martin Piatka
b06aa33dfd PTP: Fix formatting 2026-02-11 13:56:28 +01:00
Martin Piatka
77d2b63c3e aplay/aes67: Configurable session name & info 2026-02-11 13:56:28 +01:00
Martin Piatka
e2b9690402 aplay/aes67: Remove unused stream name & description fields 2026-02-11 13:56:28 +01:00
Martin Piatka
c992b5ae2d aplay/aes67: Use swap_endianity 2026-02-11 13:56:28 +01:00
Martin Piatka
eb7370260b aplay/aes67: Add automatic half packet time offset 2026-02-11 13:56:28 +01:00
Martin Piatka
f071bbe098 aplay/aes67: Simplify stream format handling 2026-02-11 13:56:28 +01:00
Martin Piatka
42298974f5 aplay/aes67: Fix warnings 2026-02-11 13:56:27 +01:00
Martin Piatka
d5db700d01 utils/ptp: Fix warnings 2026-02-11 13:56:27 +01:00
Martin Piatka
81cc5998bb utils/ptp: Remove excessive logging 2026-02-11 13:56:27 +01:00
Martin Piatka
c4a7fa3d6c aplay/aes67: Start when PTP clock locks 2026-02-11 13:56:27 +01:00
Martin Piatka
7fe38b78bd utils/ptp: Lock status based on err moving avg 2026-02-11 13:56:27 +01:00
Martin Piatka
41ff2f33dd aplay/aes67: Use actual ptp clock id in SDP 2026-02-11 13:56:27 +01:00
Martin Piatka
0392227e17 utils/ptp: Ignore packets from other clocks 2026-02-11 13:56:27 +01:00
Martin Piatka
ea9429b910 utils/ptp: Header parsing WIP 2026-02-11 13:56:26 +01:00
Martin Piatka
106790150f utils/ptp: Process all event packets 2026-02-11 13:56:26 +01:00
Martin Piatka
f910ef27f7 utils/ptp: Use platform_sched 2026-02-11 13:56:26 +01:00
Martin Piatka
5aac5ad35b aplay/aes67: Use platform_sched 2026-02-11 13:56:26 +01:00
Martin Piatka
c6503bc588 compat: Add platform_sched for setting scheduler priorities 2026-02-11 13:56:26 +01:00
Martin Piatka
91c79c8534 utils/ptp: Separate threads for event and general messages 2026-02-11 13:56:26 +01:00
Martin Piatka
9fe620369f utils/ptp: Use seq_cst atomics for clock data 2026-02-11 13:56:26 +01:00
Martin Piatka
1ae8246839 aplay/aes67: Use PTP 2026-02-11 13:56:26 +01:00
Martin Piatka
7a47d2dc94 Add utils/ptp 2026-02-11 13:54:17 +01:00
Martin Piatka
0f608677b2 utils: Add delay-locked-loop
Took the implementation from Pipewire. Used to calculate a rate
correction factor to synchronize two streams.
2026-02-11 13:52:27 +01:00
Martin Piatka
4a014f7963 aplay/aes67: Initial 2026-02-11 13:48:28 +01:00
Martin Piatka
16de3329ac rtp/net_udp: Add RAII wrapper for socket_udp 2026-02-11 13:48:04 +01:00
Martin Pulec
5858331f19 vcap/decklink: add autodetect-once option
This can be used as a workaround when for some reason the format flips.
It sometimes occur eg. for PsF formats which is detected as progressive
or vice versa. Maybe a driver issue but this option may be used as
workaround also in other cases.

For the above-mentioned case, it helps also setting :mode= explicitly
or using :cfpr=yes|no.
2026-02-04 08:21:40 +01:00
Martin Pulec
30f61c5eba vcap/screen_avf: simplified a bit
used asnprintf
2026-01-23 15:45:35 +01:00
Martin Pulec
9acfc05fee screen_avf: fixed cfg string copy leak 2026-01-23 15:38:33 +01:00
Martin Pulec
a7314698ee rtp: fix uninitialized atomic variable
Coverity complains about that (CID 472128), possibly rightfully - it
seems like the init of atomic variable doesn't need to be necessarily
atomic (while the asignment is).
2026-01-23 15:38:33 +01:00
Martin Pulec
6a92e897b5 cap/avf,ca: print that capturing explicitly
to eventualy comply with Apple Developer Program License Agreement 3.3.3.A
2026-01-21 16:09:22 +01:00
Martin Pulec
064930e741 screen_avf: probe: fixed swapped name/dev
+ missing "d" in dev specifier (should be ":d=100" for 1st screen)
2026-01-21 13:29:46 +01:00
Martin Pulec
bd2eace525 compat/c23: improved
- for bool, nullptr compat, the comparison to 202311L should be <, not <=
- separate bool/nullptr compat for clarity
- improved countof compat - if c23, check stdcountof.h presence with
__has_include and use if present rather than defining the macro always
2026-01-21 08:53:31 +01:00
Martin Pulec
182119dc26 vcap/avf: fix c&p error in compat 2026-01-21 07:55:20 +01:00
Martin Pulec
3ae62524d1 vcap/screen_avf: set device d=100 if unspec
Otherwise d=0 would be initialized implicitly, which isn't screen cap
device but rather FaceTime HD Camera or so.
2026-01-20 15:09:06 +01:00
Martin Pulec
74c47c53bd module: IWYU
Because many of files didn't include messaging.h and used to have included
it indirectly, in all of them, the correct messaging.h include must have
been added.
2026-01-20 14:40:45 +01:00
Martin Pulec
7b654221f8 module.c: dead-lock check always disabled
It requires _POSIX_TIMEOUTS to be defined (as it isn't in macOS) but
unistd.h was never included so it wasn't used even on platforms where
pthread_mutex_timedlock() is implemented.
2026-01-20 14:40:45 +01:00
Martin Pulec
728ec40195 color_out.h: do not include macros.h
Included with debug.h (for logger) so it would leak the definitions to
almost all compilation units.

Just STRINGIFY is required so rather make a local copy of the macro
(prefixed COLOR_OUT).

+ include macro.h in files that should include that but didn't include
it directly
2026-01-20 14:40:41 +01:00
Martin Pulec
d0c3cde8ef vcap/avf: fix typo in mode 2026-01-20 13:42:35 +01:00
Martin Pulec
6feb734b15 vdisp/avf: print warn if no devices were found 2026-01-20 12:38:55 +01:00