From: Mark Brown <broonie@kernel.org>
To: Mike Looijmans <mike.looijmans@topic.nl>
Cc: Linux-ALSA <alsa-devel@alsa-project.org>
Subject: Re: tlv320aic32x4 Codec ADC and DAC must shutdown to alter clocks
Date: Wed, 12 Mar 2014 23:31:37 +0000 [thread overview]
Message-ID: <20140312233137.GB28112@sirena.org.uk> (raw)
In-Reply-To: <53207878.2060107@topic.nl>
[-- Attachment #1.1: Type: text/plain, Size: 1415 bytes --]
On Wed, Mar 12, 2014 at 04:08:40PM +0100, Mike Looijmans wrote:
> What I cannot fix is that changing the parameters (like clock
> frequency) must stop the DAC core.
> The DAPM framework just sets the BIAS to "ON" only once, and does
> not shut down until after a time out. Which is good.
> But if the next stream to play needs a different clock setting, the
> DAC must be stopped first, the code must wait until the DAC has
> powered down, and then the clocks can be stopped and altered. When
> all settings are done, the DAC can be restarted.
As a first order fix the driver should just refuse to reconfigure if the
clocks are active.
> I can detect the change in the hw_params, and on the first stream to
> play, this is called while still in STANDBY or lower levels.
> However, when the codec is already in ON bias level, how do I tell
> DAPM that I had to shut down the DAC in order to change the
> parameters? Just toggling the related bits will keep the DAC powered
> down. A routine to store and restore the power state is possible,
> but very ineffective. Especially since the "I must shutdown"
> conclusion can also be in the clock setting routine. That would
> result in multiple down-up cycles.
The big problem with shutting down is disruption to other activity - if
there's something going on using the clocks. For some devices that
don't have long startup times ignore_pmdow_time may help a lot.
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
next prev parent reply other threads:[~2014-03-12 23:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-12 15:08 tlv320aic32x4 Codec ADC and DAC must shutdown to alter clocks Mike Looijmans
2014-03-12 23:31 ` Mark Brown [this message]
2014-03-13 7:09 ` Mike Looijmans
2014-03-13 14:04 ` Mark Brown
2014-03-14 9:47 ` Mike Looijmans
2014-03-28 14:13 ` 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=20140312233137.GB28112@sirena.org.uk \
--to=broonie@kernel.org \
--cc=alsa-devel@alsa-project.org \
--cc=mike.looijmans@topic.nl \
/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