milan-avb: read gPTP PHC time for talker/listener via NIC PHC mapped onto CLOCK_MONOTONIC_RAW, decoupled from system clock

This commit is contained in:
hackerman-kl 2026-05-31 15:05:51 +02:00 committed by Wim Taymans
parent afc7724070
commit 66959ca678
3 changed files with 212 additions and 13 deletions

View file

@ -9,6 +9,8 @@
#include <pipewire/pipewire.h>
#include "gptp-clock.h"
#ifdef __cplusplus
extern "C" {
#endif
@ -104,6 +106,11 @@ struct server {
uint64_t entity_id;
int ifindex;
/* milan-avb: gPTP time read from the NIC PHC (server->ifname), decoupled from the
* system clock. Lazily opened on first use; gclock_tried guards the one-shot open. */
struct avb_gptp_clock gclock;
unsigned gclock_tried:1;
const struct avb_transport_ops *transport;
void *transport_data;