From: Liam Girdwood <lrg@slimlogic.co.uk>
To: Jarkko Nikula <jhnikula@gmail.com>
Cc: "Candelaria Villareal, Jorge" <jorge.candelaria@ti.com>,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
"broonie@opensource.wolfsonmicro.com"
<broonie@opensource.wolfsonmicro.com>
Subject: Re: [alsa-devel] [PATCHv2 6/6] ASoC: OMAP4: Add McPDM platform driver
Date: Tue, 26 Jan 2010 10:30:13 +0000 [thread overview]
Message-ID: <1264501813.3067.48.camel@odin> (raw)
In-Reply-To: <20100126102748.3b9fb04d.jhnikula@gmail.com>
On Tue, 2010-01-26 at 10:27 +0200, Jarkko Nikula wrote:
> Hi
>
> On Mon, 25 Jan 2010 15:06:44 -0600
> "Candelaria Villareal, Jorge" <jorge.candelaria@ti.com> wrote:
>
> > > > +static int omap_mcpdm_dai_startup(struct snd_pcm_substream
> > > *substream,
> > > > + struct snd_soc_dai *dai)
> > > > +{
> > > > + struct snd_soc_pcm_runtime *rtd = substream->private_data;
> > > > + struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai;
> > > > + int err = 0;
> > > > +
> > > > + if (!cpu_dai->active)
> > > > + err = omap_mcpdm_request();
> > >
> > > Will anything else use this hw interface other than ALSA audio ?
> > > If not, the request is probably better in the machine driver probe().
> >
> > omap_mcpdm_request will enable the functional clock. Isn't it better
> > for the clock to be enabled only when is about to get used?
> >
> Definitely yes if there is no any need to keep block active after the
> request. That would help the power-management if there are no active
> clocks when the streams are suspended with omap_mcpdm_stop() but the
> block remains reserved (i.e. omap_mcpdm_free is not called).
Ah ok, it seems that some other platforms have similar get_resource_x()
functions that do not additionally call their clk_enable_resource_x().
(last time I looked).
This is fine.
Liam
next prev parent reply other threads:[~2010-01-26 10:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-22 23:15 [PATCHv2 6/6] ASoC: OMAP4: Add McPDM platform driver Candelaria Villareal, Jorge
2010-01-23 1:37 ` Liam Girdwood
2010-01-25 21:06 ` [alsa-devel] " Candelaria Villareal, Jorge
2010-01-26 8:27 ` Jarkko Nikula
2010-01-26 10:30 ` Liam Girdwood [this message]
2010-01-26 17:55 ` [alsa-devel] " Candelaria Villareal, Jorge
2010-01-26 10:33 ` Liam Girdwood
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=1264501813.3067.48.camel@odin \
--to=lrg@slimlogic.co.uk \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=jhnikula@gmail.com \
--cc=jorge.candelaria@ti.com \
--cc=linux-omap@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).