All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jarkko Nikula <jarkko.nikula@nokia.com>
To: ext Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Takashi Iwai <tiwai@suse.de>, alsa-devel@alsa-project.org
Subject: Re: [PATCH] ASoC: Clarify API for bias configuration
Date: Fri, 23 May 2008 11:01:07 +0300	[thread overview]
Message-ID: <20080523110107.e1671a7c.jarkko.nikula@nokia.com> (raw)
In-Reply-To: <20080522233414.GB31117@sirena.org.uk>

On Fri, 23 May 2008 00:34:15 +0100
"ext Mark Brown" <broonie@opensource.wolfsonmicro.com> wrote:

> > It came to my mind only afterwards but probably usual set_power
> > convention fits here well, doesn't confuse with DAPM and doesn't
> > limit to thinking only mic bias :-)
> 
> Hrm, depends - I can see people viewing it as an alternative to DAPM.
> Which, of course, you can do but it's not the Right Way.
> 
> This API really is intended for configuring biases and things like
> them. Maintaining biases is both power and output quality sensitive
> so it's beneficial for the core to be able to control them
> specifically.  Other things are expected to be managed via either
> DAPM, feature-specific APIs (eg, the PLLs) or the regular power
> management interface.  From that point of view it would be good to
> keep the bias name in at least the constants. 
> 
Ok, now I see. That would also clarify what's expected from this
callback and what not.

Now snd_soc_dapm_device_event calling codec->dapm_event seems to be
stream centric only. How about the case if only bypass path is active?
Also then biases should be managed?

> > Also how on earth I was able to test my ASoC drivers for OMAP in
> > case of codec slave since driver is enabling PLL only for master
> > case. Hmm... what a hack I was using then.
> 
> Is the codec able to run entirely from the clocks on the audio bus,
> perhaps?
> 
Yes it can but it requires to reconfigure input clock pin. Actually I
found a hack below from my early development tree :-)

-		if (aic3x->master) {
+		if (1/*aic3x->master*/) {
 			/* enable pll */

This needs to be fixed and also move PLL control out of dapm_event
callback.


Jarkko

  reply	other threads:[~2008-05-23  8:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-19 10:20 [PATCH] ASoC: Remove in-code changelogs Mark Brown
2008-05-19 10:20 ` [PATCH] ASoC: Clarify API for bias configuration Mark Brown
2008-05-19 10:20   ` [PATCH] ASoC: Make CPU and codec DAI operations have same type Mark Brown
2008-05-19 10:20     ` [PATCH] ASoC: core checkpatch cleanups Mark Brown
2008-05-19 14:15   ` [PATCH] ASoC: Clarify API for bias configuration Jarkko Nikula
2008-05-19 18:36     ` Mark Brown
2008-05-20  9:53       ` Jarkko Nikula
2008-05-22 23:34         ` Mark Brown
2008-05-23  8:01           ` Jarkko Nikula [this message]
2008-05-26 10:07             ` Mark Brown
2008-05-19 10:26 ` [PATCH] ASoC: Remove in-code changelogs Ben Dooks
2008-05-19 10:37 ` Takashi Iwai

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=20080523110107.e1671a7c.jarkko.nikula@nokia.com \
    --to=jarkko.nikula@nokia.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=tiwai@suse.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.