Re: [chrony-users] Using radio time signal for syncronization |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Using radio time signal for syncronization
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Wed, 8 Jan 2025 09:21:55 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1736324522; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lfeCUHi+gQzzCh3AqwLveVyJDVwf/y7QU8GADdXTQ/w=; b=RyviWhds2PwGSv3UAlzWyytftNb39JHPN8R46VfEgQv1sehzyzva5SylijRhnzZ0II0eSz ftkIc+CDYJkj1TFAAxAhS3+rA/dQdhKLnl4yhmB8XKXY2deIJ5VYRUueufPs64lbst3zCE Nc2J7h1jMVmcSUYEgU7D4YxjZV9pFQ4=
On Tue, Jan 07, 2025 at 02:49:52PM +0000, Sviatoslav Feshchenko wrote:
> I might take Miroslav's suggestion and port the ntpd audio code.
> This would be a hobby project, so I am not looking for the easiest
> porting solution. I would also want the code to last and be relevant
> for the longest amount of time possible, so I would probably write
> directly for ALSA rather than pipewire, to minimize the risk of
> obsolescence. I wouldn't use the SOCK wrapper ntp-refclock in this
> case either, and instead write a standalone application (somewhat
> along the lines of gpsd), which would provide the SOCK connection.
> What are your thoughts on this approach?
That sounds like a lot of work, but of course it's your time :). I'd
just submit a patch adding support for alsa to the ntp project.
Looking at the ./libntp/audio.c file, it shouldn't be that difficult.
alsa provides an alsa-oss package providing some OSS compatibility.
You could start ntpd/ntp-refclock with the aoss utility. Have you
tried that?
> If I am ever successful and
> it works well, would Miroslav be willing to include a blurb about
> the existence of this application in chrony documentation for
> chrony.conf SOCK driver, which currently only mentions gpsd as one
> application that supports the SOCK protocol?
I'd certainly add it to the "Useful links" page on the chrony website.
--
Miroslav Lichvar
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.