From: Bastien Nocera <hadess@hadess.net>
To: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: Reyad Attiyat <reyad.attiyat@gmail.com>,
linux-iio@vger.kernel.org,
Benjamin Tissoires <benjamin.tissoires@redhat.com>,
Jonathan Cameron <jic23@kernel.org>
Subject: Re: User-space API for accelerometer(s)?
Date: Thu, 19 Jun 2014 13:20:34 +0200 [thread overview]
Message-ID: <1403176834.30918.32.camel@nuvo> (raw)
In-Reply-To: <53A224AB.9090305@linux.intel.com>
On Wed, 2014-06-18 at 16:45 -0700, Srinivas Pandruvada wrote:
> On 06/18/2014 04:31 PM, Reyad Attiyat wrote:
> > Hello Bastien Nocera,
> >
> > I'm not the best person to answer your questions but I will try and
> > help. The best people to talk to would be Jonathan Cameron, the IIO
> > maintainer, and Srinivas Pandruvada, the author of the hid-sensor-hub
> > device drivers. I have CC'ed them for you to hopefully get a better
> > response than what I can offer.
> >
> > Your device uses the same sensor hub, over usb, as my device does. I
> > have a Microsoft Surface and it also uses many of the sensors found on
> > the Lenovo Yoga.
> >
> >> So, my question regarding the IIO user-space API is:
> >> is it possible to make the IIO accelerometer send out a kevent when the
> >> orientation changes in a major way (using triggers?) or does user-space
> >> need to poll the device instead?
>
> You can check a program called generic_buffer.c in
> "drivers/staging/iio/Documentation". I have used this as a reference to
> port to Android.
> You don't need to poll, you can also check
> "https://github.com/pfps/yoga-laptop/sensors " developed by Peter F.
> Patel-Schneider.
I've read this code, and in fact, I mentioned it in my original mail. I
fail to see how this code isn't polling. It's also much more complicated
than doing the same thing for a evdev accelerometer.
next prev parent reply other threads:[~2014-06-19 11:20 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-18 14:09 User-space API for accelerometer(s)? Bastien Nocera
2014-06-18 23:31 ` Reyad Attiyat
2014-06-18 23:45 ` Srinivas Pandruvada
2014-06-19 11:20 ` Bastien Nocera [this message]
2014-06-21 12:01 ` Jonathan Cameron
2014-06-21 12:37 ` Bastien Nocera
2014-06-21 16:26 ` Srinivas Pandruvada
2014-07-01 12:10 ` Bastien Nocera
2014-07-03 17:51 ` Jonathan Cameron
2014-07-03 17:58 ` Lars-Peter Clausen
2014-07-04 9:35 ` Bastien Nocera
2014-07-09 14:33 ` Bastien Nocera
2014-07-09 14:54 ` Peter Meerwald
2014-07-09 22:16 ` Bastien Nocera
2014-07-10 1:38 ` Peter F. Patel-Schneider
2014-07-10 15:04 ` Srinivas Pandruvada
2014-07-23 12:19 ` Bastien Nocera
2014-07-23 13:02 ` Srinivas Pandruvada
2014-07-23 16:51 ` Bastien Nocera
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=1403176834.30918.32.camel@nuvo \
--to=hadess@hadess.net \
--cc=benjamin.tissoires@redhat.com \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=reyad.attiyat@gmail.com \
--cc=srinivas.pandruvada@linux.intel.com \
/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).