From: Ashish Chavan <ashish.chavan@kpitcummins.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: alsa-devel <alsa-devel@alsa-project.org>,
"kuninori.morimoto.gx" <kuninori.morimoto.gx@renesas.com>,
linux-kernel <linux-kernel@vger.kernel.org>,
David@alsa-project.org, Chen <david.chen@diasemi.com>,
lrg <lrg@ti.com>
Subject: Re: [PATCH v3 2/8] ASoC: da7210: Add support for DAPM
Date: Sat, 15 Oct 2011 13:50:03 +0530 [thread overview]
Message-ID: <1318666803.613.21.camel@matrix> (raw)
In-Reply-To: <20111014192008.GD2931@opensource.wolfsonmicro.com>
On Fri, 2011-10-14 at 20:20 +0100, Mark Brown wrote:
> On Fri, Oct 14, 2011 at 04:31:38PM +0530, Ashish Chavan wrote:
>
> > + /* ADCs */
> > + SND_SOC_DAPM_ADC("ADC Left", "Capture", DA7210_STARTUP3, 5, 1),
> > + SND_SOC_DAPM_ADC("ADC Right", "Capture", DA7210_STARTUP3, 6, 1),
> > +
> > + /* Output Side */
> > + /* DACs */
> > + SND_SOC_DAPM_DAC("DAC Left", "Playback", DA7210_STARTUP2, 5, 1),
> > + SND_SOC_DAPM_DAC("DAC Right", "Playback", DA7210_STARTUP2, 6, 1),
>
> These are also being enabled in the probe() function using completely
> different registers - there the registers used are _ADC and _DAC.
> What's going on there? It's good to see the stuff in the startup()
> function gone but almost all of the probe() just shouldn't be there in a
> properly written driver and much of it looks like stuff that DAPM should
> be taking care of.
>
There are two type of registers for all IOs (HP, MIC, AUX) as well as
DAC and ADC. One type of registers control individual enable and disable
of IO, while other set of register controls the standby mode of that
particular IO. e.g. For ADC,
- Enable/disable of ADC left and right channel is controlled by bit 3
and 7 of DA7210_ADC register.
- Standby mode of ADC left and right channel is controlled by bit 5 and
6 of DA7210_STARTUP3 register.
As per hardware designer's recommendation, standby mode is preferred for
minimum power consumption. So, current DAPM patch only takes care of
STANDBY bits.
next prev parent reply other threads:[~2011-10-15 8:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-14 11:01 [PATCH v3 2/8] ASoC: da7210: Add support for DAPM Ashish Chavan
2011-10-14 19:20 ` Mark Brown
2011-10-15 8:20 ` Ashish Chavan [this message]
2011-10-17 21:41 ` Mark Brown
2011-10-19 7:21 ` Ashish Chavan
2011-10-19 12:13 ` Mark Brown
2011-10-20 11:47 ` Ashish Chavan
2011-10-20 12:36 ` [alsa-devel] " Mark Brown
2011-10-20 13:49 ` Ashish Chavan
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=1318666803.613.21.camel@matrix \
--to=ashish.chavan@kpitcummins.com \
--cc=David@alsa-project.org \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=david.chen@diasemi.com \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lrg@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;
as well as URLs for NNTP newsgroup(s).