mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-07-03 00:06:38 -04:00
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:
parent
afc7724070
commit
66959ca678
3 changed files with 212 additions and 13 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue