fxls8962af: RTC and NTP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jonathan and list,

We are getting some weird timestamps (with fxls8962af) in the iio buffers when time is set back by NTP.

Here I have dumped old_timestamp, timestamp from the fxls8962af_fifo_flush():
old_timestamp 1673008488434717043, timestamp 1673008489457042043
*old_timestamp 1673008489457042043, timestamp 1673008485198504719*
old_timestamp 1673008485198504719, timestamp 1673008486220571510

Time is set back in the middle data set, so the sample timestamp looks like:
tstamp0 3091988802491735451
tstamp1 4510969115526428858
tstamp2 5929949428561122265
tstamp3 7348929741595815672
tstamp4 8767910054630509079
tstamp5 -8259853706044349130
tstamp6 -6840873393009655723
tstamp7 -5421893079974962316
tstamp8 -4002912766940268909
tstamp9 -2583932453905575502
tstamp10 -1164952140870882095
tstamp11 254028172163811312
tstamp12 1673008485198504719

Possible solutions?
Could we store the sample time from the last collected data set?
And use that if old_timestamp > timestamp?

Or do you have any other idea's?

/Sean



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux