From: Mark Brown <broonie@sirena.org.uk>
To: "Lopez Cruz, Misael" <x0052729@ti.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [alsa-devel] [PATCH 1/3] ASoC: Add GPIO support for jack reporting interface
Date: Mon, 2 Mar 2009 22:55:29 +0000 [thread overview]
Message-ID: <20090302225527.GA6390@sirena.org.uk> (raw)
In-Reply-To: <2C7D3DF36ADFFC479B44490D912B616705ECC77862@dlee07.ent.ti.com>
On Mon, Mar 02, 2009 at 03:16:22PM -0600, Lopez Cruz, Misael wrote:
> > That sounds like adding a callback for power updates on the jack itself
> > to me (which isn't a bad idea), rather than changing the report function
> > of the jack detection method. The need for machine-specific extra
> > actions probably isn't specific to jacks that are detected via GPIOs.
> In that situation, power updates should come only when the jack reporting
> bits are either all active (jack enabled) or none (jack disabled), is that
> correct?
No, the jack detect bits can change independently - you won't always
physically be able to get everything that can be detected to report at
once (eg, something that can distinguish between headphones and line
output) or things may not always be present together (eg, a jack could
detect headphones but no microphone even if it's possible that both may
be present simultaneously).
> If so, then machine drivers can create callbacks receiving the soc_codec
> the jack belongs to and the current state of the jack. All the power updates
> (dapm_enable_pin/damp_disable_pin) will happen in the callback in machine
> driver but the dapm sync will happen in soc jack framework (i.e. when
> reporting current status of the jack).
No. The framework takes care of doing the power updates already, there
is no need to add that functionality since the machine drivers can just
use a simple data table. A callback could be used to do things that
can't be coped with already or more complex updates that aren't simply
directly mirroring the status in DAPM pins.
next prev parent reply other threads:[~2009-03-02 22:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-26 7:57 [PATCH 1/3] ASoC: Add GPIO support for jack reporting interface Lopez Cruz, Misael
2009-02-26 11:52 ` [alsa-devel] " Mark Brown
2009-02-27 10:52 ` Lopez Cruz, Misael
2009-02-27 13:05 ` Mark Brown
2009-03-02 1:54 ` Lopez Cruz, Misael
2009-03-02 11:38 ` [alsa-devel] " Mark Brown
2009-03-02 21:16 ` Lopez Cruz, Misael
2009-03-02 22:55 ` Mark Brown [this message]
2009-03-03 0:03 ` Lopez Cruz, Misael
2009-03-03 0:43 ` [alsa-devel] " Mark Brown
2009-03-03 0:47 ` Lopez Cruz, Misael
2009-02-26 18:52 ` David Brownell
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=20090302225527.GA6390@sirena.org.uk \
--to=broonie@sirena.org.uk \
--cc=alsa-devel@alsa-project.org \
--cc=linux-omap@vger.kernel.org \
--cc=x0052729@ti.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