From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
"lrg@slimlogic.co.uk" <lrg@slimlogic.co.uk>
Subject: Re: [RFC 0/2] soc-dapm or TWL4030: Runtime DAPM ordering problem
Date: Tue, 3 Aug 2010 09:39:44 +0100 [thread overview]
Message-ID: <20100803083944.GB25306@rakim.wolfsonmicro.main> (raw)
In-Reply-To: <201008030915.37405.peter.ujfalusi@nokia.com>
On Tue, Aug 03, 2010 at 09:15:12AM +0300, Peter Ujfalusi wrote:
> We do have different register write sequences, which means that we could have
> different type of pop depending on the current sequence.
> In startup (playback/capture/bypass) we most likely have pop from components
> powering up, while during active state (and changing the routings) we might need
> to deal with the pop coming from components turning off.
Good, this is the sort of analysis we need to make a change to DAPM
itself. I don't think it's resonable to say that the active->active
changes are primarily concerned with powerdown pops, though - if you're
making a change where you're adding in a new source then obviously the
powerup of the path is going to be relevant.
I think there's something useful we can do with DAPM here (independantly
of anything in TWL4030), probably involving splitting up the routing
change walk to run power down first and then power up but the current
patch feels like it's going to cause at least as many problems as it
solves.
> Because of the ordering change, in runtime this causes problems, since the
> DAPM_MUX's POST_REG comes as the last thing in the sequence.
You keep saying "ordering change" but I'm still not clear what you mean
by this? Are you just talking about the fact that things end up
happening in different orders for the active->active transitions or do
you see some active reordering of things in the code?
> I only need one of the two patch, and my bet goes for the fix within the twl4030
> codec driver, but I do wanted to bring up the root cause of this problem
> (surfaced with my codec driver).
Honestly, looking at the TWL4030 specific patch it looks like a better
idea anyway regardless of any changes to the core since it's just moving
from the use of an event to pure DAPM widgets which is generally a more
robust approach. Events generally cause hassle if they're doing much
more than implementing multi-write sequences for turning the widget on
and off.
If you could provide a version of the patch with a standalone changelog
I think I'd ack it.
next prev parent reply other threads:[~2010-08-03 8:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-02 7:08 [RFC 0/2] soc-dapm or TWL4030: Runtime DAPM ordering problem Peter Ujfalusi
2010-08-02 7:08 ` [RFC 1/2] ASoC: soc-dapm: Reorder DAPM register write sequence Peter Ujfalusi
2010-08-02 7:08 ` [RFC 2/2] ASoC: TWL4030: Capture route runtime DAPM ordering fix Peter Ujfalusi
2010-08-02 10:27 ` [RFC 0/2] soc-dapm or TWL4030: Runtime DAPM ordering problem Mark Brown
2010-08-02 10:59 ` Peter Ujfalusi
2010-08-03 2:56 ` Mark Brown
2010-08-03 6:15 ` Peter Ujfalusi
2010-08-03 8:39 ` Mark Brown [this message]
2010-08-03 9:09 ` Peter Ujfalusi
2010-08-03 15:02 ` 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=20100803083944.GB25306@rakim.wolfsonmicro.main \
--to=broonie@opensource.wolfsonmicro.com \
--cc=alsa-devel@alsa-project.org \
--cc=lrg@slimlogic.co.uk \
--cc=peter.ujfalusi@nokia.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 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.