alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Lars-Peter Clausen <lars@metafoo.de>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: alsa-devel@alsa-project.org, Liam Girdwood <lrg@ti.com>,
	device-drivers-devel@blackfin.uclinux.org
Subject: Re: [PATCH 3/3] ASoC: ssm2602: Support setting the oscillator and the clock output state
Date: Tue, 27 Sep 2011 14:47:12 +0200	[thread overview]
Message-ID: <4E81C5D0.5000905@metafoo.de> (raw)
In-Reply-To: <20110927123032.GJ4289@opensource.wolfsonmicro.com>

On 09/27/2011 02:30 PM, Mark Brown wrote:
> On Tue, Sep 27, 2011 at 11:08:48AM +0200, Lars-Peter Clausen wrote:
>> Currently the oscillator is always enabled and the clock output is always
>> disabled. This patch adds support for controlling the oscillator and clock
>> output state through snd_soc_dai_set_sysclk. Which makes it possible to
>> disable or enable them dynamically according to the requirements of the board
>> on which the CODEC is used.
>>
>> This patch also slightly modifies the behavior as to when the oscillator is
>> going to be disabled in low-power states. Previously it would only be disabled
>> in BIAS_OFF, now it is also going to be disabled in BIAS_STANDBY, since no
>> components which depend on it should be active in this state.
> 
> Is this last assumption actually true?  Things like accessory detect can
> need clocks on devices even when they're idle from an audio point of
> view.  Still, I've applied the patch - we can always fix up later if
> something needs the clock enabling.

At least for the ssm2602 the sysclk is only used to for audio processing and to
drive the clock out signal. Audio is off in standby and the clock out signal
was going to be disabled when switching to standby even before this patch. But
you are correct the later might be a problem in systems where the clock out
signal is used for another external component which needs a clock input signal
in standby mode.

Thanks
- Lars

  reply	other threads:[~2011-09-27 12:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-27  9:08 [PATCH 1/3] ASoC: ssm2602: Re-enable oscillator after suspend Lars-Peter Clausen
2011-09-27  9:08 ` [PATCH 2/3] ASoC: ssm2602: Set initial bias level to standby Lars-Peter Clausen
2011-09-27 10:22   ` Mark Brown
2011-09-27  9:08 ` [PATCH 3/3] ASoC: ssm2602: Support setting the oscillator and the clock output state Lars-Peter Clausen
2011-09-27 12:30   ` Mark Brown
2011-09-27 12:47     ` Lars-Peter Clausen [this message]
2011-09-27 10:20 ` [PATCH 1/3] ASoC: ssm2602: Re-enable oscillator after suspend 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=4E81C5D0.5000905@metafoo.de \
    --to=lars@metafoo.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=device-drivers-devel@blackfin.uclinux.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).