public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
* Requirement for at91-sama5d2_adc timestamp buffer
@ 2020-10-30 12:26 Eugen.Hristev
  2020-11-01  9:28 ` Alexandru Ardelean
  0 siblings, 1 reply; 5+ messages in thread
From: Eugen.Hristev @ 2020-10-30 12:26 UTC (permalink / raw)
  To: jic23, linux-iio; +Cc: alexandru.ardelean

Hello Jonathan,

I found an issue with at91-sama5d2_adc driver, namely, when using DMA 
and timestamp in the same time, the hardware provides the sample in the 
fashion (2 bytes per channel) * (number of channels) - as copied by the 
DMA master to memory.
I compute a software timestamp , and then push to buffers with timestamp.
However your push code will try to write this timestamp inside my buffer 
! and overwrite my samples... I have multiple samples in the buffer 
(watermark number) and there is no space between them because the 
hardware copies the conversion data directly in this buffer.

Do you have any suggestion on how to solve this, except 1) giving up the 
timestamp in this mode or 2) copy to another buffer with more space for 
timestamp storage ?

Thanks,
Eugen

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-11-02 17:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-30 12:26 Requirement for at91-sama5d2_adc timestamp buffer Eugen.Hristev
2020-11-01  9:28 ` Alexandru Ardelean
2020-11-01 20:21   ` Jonathan Cameron
2020-11-02 13:29     ` Eugen.Hristev
2020-11-02 17:28       ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox