linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@cam.ac.uk>
To: anish singh <anish198519851985@gmail.com>
Cc: "linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>
Subject: Re: adc-jack-driver opinion related to IIO
Date: Fri, 06 Jul 2012 14:25:58 +0100	[thread overview]
Message-ID: <4FF6E766.7000503@cam.ac.uk> (raw)
In-Reply-To: <CAK7N6voPsDGJLoh71Kgcz=bnWDE4QYmXjOrMv0x+bN7RTCHF3g@mail.gmail.com>

On 7/6/2012 1:00 PM, anish singh wrote:
> Hello Jonathan,
>
> I would be extremely happy if I can get your opinion on this.
>
> Recently Myungjoo Ham had posted Extcon: adc-jack driver patch.
>
> Description of this driver:
> This is basically a Headset(jack) driver.Once the headset is inserted
> a irq_handler is called and in this handler we have a callback(this
> callback calls into pmic driver to get the adc value) to get
> the adc value to determine the kind of headset: This headset could
> be headset with mic, headset without mic or headset with
> keys(volume-up/down) attached to it.One we have found out the kind
> of headset we use extcon framework to notify the other interested drivers or
> userspace that a headset with so and so capabilities has been inserted.
>
> Question:
> Does this driver fall into IIO as pointed by Mark Brown in his review comments?
The driver itself probably doesn't, but the adc part does in that IIO
provides a means of talking to the relevant adc.
>
> Why do we need to use IIO to get the adc value?As for different boards the
> method of getting adc is different.How does IIO help in this?
Ultimately, IIO in this case is acting as an infrastructure for ALL 
adcs. E.g. for different boards you'll need a mapping to tell it which
adc channel is connected but that is it.  Hence you don't need a 
specific callback for each pmic as you will be using generic interfaces 
to query it.

Jonathan

  reply	other threads:[~2012-07-06 13:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-06 12:00 adc-jack-driver opinion related to IIO anish singh
2012-07-06 13:25 ` Jonathan Cameron [this message]
2012-07-06 16:45   ` anish kumar
2012-07-06 18:18     ` Lars-Peter Clausen
2012-07-10  8:29       ` anish singh
2012-07-10  9:29         ` Lars-Peter Clausen

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=4FF6E766.7000503@cam.ac.uk \
    --to=jic23@cam.ac.uk \
    --cc=anish198519851985@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).