From: Mark Brown <broonie@sirena.org.uk>
To: Daniel Mack <daniel@caiaq.org>
Cc: alsa-devel@alsa-project.org
Subject: Re: ASoC: hook for codec control updates and clock controls
Date: Mon, 8 Dec 2008 12:40:48 +0000 [thread overview]
Message-ID: <20081208124048.GI5159@sirena.org.uk> (raw)
In-Reply-To: <20081208121855.GA4063@buzzloop.caiaq.de>
On Mon, Dec 08, 2008 at 01:18:55PM +0100, Daniel Mack wrote:
> On Mon, Dec 08, 2008 at 09:48:43AM +0000, Mark Brown wrote:
> > This would need to at least specify the clock that needs to be turned
> > on and how many cycles it needs to be turned on for. I'm having a hard
> > time getting enthusiastic about that, it seems like too much software
> > especially since we can't use the clock API for any of this due to the
> > inconsistent implementations.
> That's why I was thinking about a general purpose callback mechanism
> like the one Jarkko suggested.
Hrm? I'm talking about the form such a mechanism would take. Like I
say, I think it would be likely to be more trouble than it's worth.
> > In what circumstances does the codec need the clock? What are the
> > negative consequences of it not being enabled?
> If the clock is not enabled, changes in volume registers are not applied
> to the actual mixers in hardware, e.g., the gain setting does simply not
> happen.
> We'll think about how much disadvantage it is to keep the clock running
> all the time.
Note that I also suggested that leaving the clocks on while the analogue
paths are enabled by ensuring that the DAPM bias configuration covers
those and then using the machine bias callback; this would turn the
clocks off when there's no audio which is likely to be all you need
since the amplifiers will probably burn enough power to make the cost of
the clock irrelevant.
We should be bringing the bias up to ON with analouge only paths anyway
so this is a low cost approach.
next prev parent reply other threads:[~2008-12-08 12:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-07 17:38 ASoC: hook for codec control updates and clock controls Daniel Mack
2008-12-07 19:02 ` Mark Brown
2008-12-08 0:04 ` Daniel Mack
2008-12-08 9:48 ` Mark Brown
2008-12-08 12:18 ` Daniel Mack
2008-12-08 12:40 ` Mark Brown [this message]
2008-12-08 9:49 ` Jarkko Nikula
2008-12-08 11:11 ` Mark Brown
2008-12-08 11:40 ` Jarkko Nikula
2008-12-08 11:59 ` Mark Brown
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=20081208124048.GI5159@sirena.org.uk \
--to=broonie@sirena.org.uk \
--cc=alsa-devel@alsa-project.org \
--cc=daniel@caiaq.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 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.