* Cant read more than 2 bytes from triggered buffer 3.10
@ 2013-07-21 15:24 Zubair Lutfullah :
0 siblings, 0 replies; only message in thread
From: Zubair Lutfullah : @ 2013-07-21 15:24 UTC (permalink / raw)
To: linux-iio
I am running kernel version with the tag 3.10.
I am trying to read data from a triggered buffer I created for the ti-adc
driver. Just wanted to read a counter back using generic_buffer.c
and sysfs triggers.
But for some reason, I can only read 2 samples using generic_buffer.c
I tried a dozen printfs and lots of hours.
indio_dev->scan_bytes seems fixed at 8 or 4.
indio_dev->masklength is similar 8 or 4.
I use generic_buffer -n TI-am335x-adc -t sysfstrig1 -l 1024.
but only one sample output or two.
I enabled the simple dummy buffer and tried triggering it too.
Only 1 sample..
no matter the buffer length.
Have spent a couple of hours messing over this. But I can't get my counter output from the driver.
If anyone wants to see the modified am335x adc driver
pastebin(.)com/1Zrw3KTt
Hope somebody can point out whats wrong..
Thanks
Zubair Lutfullah
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-07-21 15:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-21 15:24 Cant read more than 2 bytes from triggered buffer 3.10 Zubair Lutfullah :
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).