pipewire/spa
Pauli Virtanen 7d0ca2d103 spa: node-driver: always put CLOCK_MONOTONIC values to clock->nsec
When timer is not using monotonic clock, apply clock offset to translate
the time values to the monotonic clock when putting them to spa_io_clock
nsec fields.

Get appropriate clock offset by smoothed filtering.  The parameters here
keep the offset jitter < 10ns or so.

As monotonic/boottime/realtime all contain adjtime(), there generally is
no drift in the offset here, so just averaging should be fine.

Also fix using wrong timer clock when freewheeling.
2024-03-07 20:04:54 +02:00
..
examples meson: fix compilation when spa-plugins is disabled 2024-02-06 11:50:54 +01:00
include profiler: add transport state in the profile block 2024-02-29 14:07:08 +01:00
include-private/spa-private spa: move dbus helpers out of bluez plugin 2024-02-05 13:03:20 +00:00
plugins spa: node-driver: always put CLOCK_MONOTONIC values to clock->nsec 2024-03-07 20:04:54 +02:00
tests Add GNU/Hurd support 2023-09-24 15:11:52 +00:00
tools treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
meson.build meson: fix compilation when spa-plugins is disabled 2024-02-06 11:50:54 +01:00