Commit Graph
21 Commits
Author SHA1 Message Date
Mike Brady 341f67acd2 Redesign the ptp shm utilities to cater for opening once and closing once but potentially called for opening many times. 2022-02-26 08:32:15 +00:00
Mike Brady 04aba03b4f Stop storing the timing peer list. Clean up generation of device's timing addresses (and fix a bug). Use unique SMI interface for access to NQPTP. 2021-12-30 11:03:34 +00:00
Mike Brady 35317687f9 access the SMI named in the nqptp_shared_memory_interface_name 2021-12-29 10:22:44 +00:00
Mike Brady 966d68bdec Begin to get SPS to give a unique shm interface name to nqptp. Also clang format 2021-12-27 12:19:01 +00:00
Mike Brady 30b9d15e36 Quieten a few debug mssages, slightly shorten the minimum lead time needed for good initial sync. 2021-12-22 13:47:49 +00:00
Mike Brady 6f7e894777 Set the minimum bus mastership time to two seconds. Turn on a debug message. 2021-12-20 12:15:59 +00:00
Mike Brady be4807fff2 Wait for that mutex for longer. (Don't know why yet...) 2021-12-06 18:09:29 +00:00
Mike Brady c0a3dacf30 Working to check for divide / mod by 0's 2021-11-17 10:35:21 +00:00
Mike Brady c4b5e0928f Use a local copy of the nqptp shared memory interface description file. 2021-07-22 11:01:53 +01:00
Mike Brady 861455f703 Add some information about the length of time a new clock master has been monitored for ("history") and warn if the PTP information hasn't been updated for more than a second (not extensively tested). 2021-06-23 12:18:04 +01:00
Mike Brady e925e196c8 Changes to allow it to compile in FreeBSD and fix a few issues that were picked up by clang 10. 2021-06-22 13:49:11 +01:00
Mike Brady 6edaa58595 increase the wait time for the shm access mutex. 2021-06-06 15:49:03 +01:00
Mike Brady a109b587ec Flush seems to be working properly and reliably. Some audio glitches removed too by dropping the first two AAC blocks of any passage. Crude. Flush diagnostic linked list stuff left in place. 2021-05-30 11:17:06 +01:00
Mike Brady 637c8132e9 Move initial delay when using a new bus master to rtp.c and wait, if possible, whenever a new master comes along, to allow it to settle before using it. 2021-05-26 18:12:45 +01:00
Mike Brady 26ce13d511 a slightly more rational clock handling regime, I hope. Wait for 400 ms when a clock becomes master. Wait five seconds when you get a new master clock. 2021-05-26 16:48:25 +01:00
Mike Brady 3f77994948 more closely check for time information being available. 2021-05-11 18:52:02 +01:00
Mike Brady a563d5e847 Quieten some more debug messages. Fix a misleading clock status return. 2021-05-10 16:03:02 +01:00
Mike Brady 04c7f84564 Improve NQPTP clock diagnostics, tidy up some messages. 2021-05-10 14:16:57 +01:00
Mike Brady a68f28ac2b clang format 2021-05-01 14:09:38 +01:00
Mike Brady 61b6b5934d check that the clock is valid and reduce the Buffered Audio lead time to 0.25 seconds 2021-05-01 11:03:45 +01:00
Mike Brady 0af7f4fbde Bring in files and settings from sps2-ex1 2021-04-27 20:07:50 +01:00