From: Ashish Chavan <ashish.chavan@kpitcummins.com>
To: "Girdwood, Liam" <lrg@ti.com>
Cc: alsa-devel <alsa-devel@alsa-project.org>,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
linux-kernel <linux-kernel@vger.kernel.org>,
"kuninori.morimoto.gx" <kuninori.morimoto.gx@renesas.com>,
David Dajun Chen <david.chen@diasemi.com>
Subject: Re: [PATCH v7 2/3] ASoC: da7210: Add support for line out and DAC
Date: Fri, 21 Oct 2011 14:07:40 +0530 [thread overview]
Message-ID: <1319186260.24621.154.camel@matrix> (raw)
In-Reply-To: <CABS+qY3zsuQSE_9=_jaoO=AYRyopZ3WPNeG-PJYzwucmWxcqkA@mail.gmail.com>
On Thu, 2011-10-20 at 18:10 +0100, Girdwood, Liam wrote:
> On 20 October 2011 15:42, Ashish Chavan <ashish.chavan@kpitcummins.com> wrote:
> > DA7210 has three line outputs. OUT1 Left, OUT1 Right and OUT2 (mono).
> > This patch adds support for gain controls for these three line outs.
> > It also adds support for overall DAC gain control.
> >
> > Signed-off-by: Ashish Chavan <ashish.chavan@kpitcummins.com>
> > Signed-off-by: David Dajun Chen <dchen@diasemi.com>
> > ---
> > Changes since v1:
> > - Removed explicit setting of default gains
> > - Renamed "DAC Playback" to "Digital Playback"
> > ---
> > sound/soc/codecs/da7210.c | 42 ++++++++++++++++++++++++++++++++++++++++++
> > 1 files changed, 42 insertions(+), 0 deletions(-)
> >
>
> >
> > + /* Enable Line out amplifiers */
> > + snd_soc_write(codec, DA7210_OUT1_L, DA7210_OUT1_L_EN);
> > + snd_soc_write(codec, DA7210_OUT1_R, DA7210_OUT1_R_EN);
> > + snd_soc_write(codec, DA7210_OUT2, DA7210_OUT2_EN |
> > + DA7210_OUT2_OUTMIX_L | DA7210_OUT2_OUTMIX_R);
> > +
>
> Any reason for not using DAPM here ? Otherwise they are always on
> making your chip burn mW.....
>
Not really. As explained in the comment in DAPM patch, this enables will
be effective (burn mW) only after respective IO is taken out from
STANDBY mode. DAPM takes care of managing STANDBY mode for all IOs and
ADC/DAC. I know this way of handling low power mode is bit non-trivial,
but it is what is recommended by chip designers. Actually Mark was also
initially confused with this and requested to put enough documentation
into code. After that I tried explaining the logic in source code
comment in DAPM patch. Let me know if it is not clear and doesn't convey
clearly what is should.
Thanks,
-- Ashish (GNU FAN)
next prev parent reply other threads:[~2011-10-21 8:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-20 14:42 [PATCH v7 2/3] ASoC: da7210: Add support for line out and DAC Ashish Chavan
2011-10-20 17:10 ` [alsa-devel] " Girdwood, Liam
2011-10-21 8:37 ` Ashish Chavan [this message]
2011-10-21 9:00 ` Mark Brown
2011-10-21 9:49 ` Ashish Chavan
2011-10-21 10:24 ` Mark Brown
2011-10-21 11:05 ` Ashish Chavan
2011-10-21 11:12 ` Mark Brown
2011-10-21 11:32 ` 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=1319186260.24621.154.camel@matrix \
--to=ashish.chavan@kpitcummins.com \
--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).