alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Peter Ujfalusi <peter.ujfalusi@nokia.com>
To: ext Mark Brown <broonie@opensource.wolfsonmicro.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:15:12 +0300	[thread overview]
Message-ID: <201008030915.37405.peter.ujfalusi@nokia.com> (raw)
In-Reply-To: <3C7676DA-EAAB-4C56-AD3A-2537EFEDF056@opensource.wolfsonmicro.com>

On Tuesday 03 August 2010 05:56:40 ext Mark Brown wrote:
> > A. When the user configures the capture routing, and starts the capture
> > B. When the user changes the capture routing during active capture
> > (analog to digital, or back).
> 
> It feels like you're focusing in on one specific use case here - there's
> way more active->active transitions that are possible. For example, you
> could switch in bypass or start a second (unrelated) capture stream on
> devices that can support that. I think any change in DAPM needs to be
> motivated in more general terms than you're using here. For
> driver-specific changes this is fine but for changes in the generic code
> we need to think things through more generically.

Sure, I'm pointing these two cases, since I have noticed the problem in these. 
But the same thing happens, when one enables the bypass vs during enabled bypass 
the routing is changed.
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.
As I said, this might be not an issue at all, but the twl4030 codec used to 
switch two bits with DAPM_MUX (within the enum, and than with POST_REG event). 
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.

The patch against soc-dapm.c is my way of asking about this different sequences 
on startup vs runtime routing change.

I can fix this problem within the twl4030 codec as well (patch 2), which gives 
me satisfying results, so I'm happy if you ack that.

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). 


Thanks,
Péter

  reply	other threads:[~2010-08-03  6:15 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 [this message]
2010-08-03  8:39         ` Mark Brown
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=201008030915.37405.peter.ujfalusi@nokia.com \
    --to=peter.ujfalusi@nokia.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=lrg@slimlogic.co.uk \
    /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).