linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Flávio Alberto Lopes Soares" <flavioalsoares-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: how to access spi ADC on high sample rate ?
Date: Tue, 5 Apr 2011 02:39:45 -0300	[thread overview]
Message-ID: <BANLkTin2zT9Wp3EUHLrdthuoU50S8cry2A@mail.gmail.com> (raw)

Hello all, I'm using an ads8320 analog/digital converter connected to a
2S3C2440 Samsung ucontroller by a SPI bus, I'm using spidev driver on kernel
2.6.32 to access it from user space and this works fine.
The problem occurs because I want to access this adc in your max sample rate
possible (100K Samples/s according datasheet, 50% of this for me will be
great) saving this data, reading using an application in user space only
reach 200 Samples/s in linux kernel, this is for me was not surprising
because the application runs in user space and process scheduler time slice
prevents achieve a faster sample rate. I want to know the best way to access
this adc (I believe I need write a kernel driver), there's some reference
example or documentation to do this ? Some audio capture driver can serve as
reference ?

Thanks in advance

Flavio Alberto Lopes Soares
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev

                 reply	other threads:[~2011-04-05  5:39 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=BANLkTin2zT9Wp3EUHLrdthuoU50S8cry2A@mail.gmail.com \
    --to=flavioalsoares-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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).