From: "Zubair Lutfullah :" <zubair.lutfullah@gmail.com>
To: linux-iio@vger.kernel.org
Subject: Cant read more than 2 bytes from triggered buffer 3.10
Date: Sun, 21 Jul 2013 16:24:32 +0100 [thread overview]
Message-ID: <20130721152431.GA22495@gmail.com> (raw)
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
reply other threads:[~2013-07-21 15:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130721152431.GA22495@gmail.com \
--to=zubair.lutfullah@gmail.com \
--cc=linux-iio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).