All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Barry Song <21cnbao@gmail.com>
Cc: uclinux-dist-devel@blackfin.uclinux.org, alsa-devel@alsa-project.org
Subject: Re: [PATCH] soc-core: let suspend/resume not called if the card is not instantiated
Date: Fri, 13 Nov 2009 15:02:24 +0000	[thread overview]
Message-ID: <20091113150224.GA23607@rakim.wolfsonmicro.main> (raw)
In-Reply-To: <3c17e3570911130656v662dccej7d6c67e7eaa65b65@mail.gmail.com>

On Fri, Nov 13, 2009 at 10:56:13PM +0800, Barry Song wrote:

> This patch is to solve a completely different problem with the last
> one I sent. Its meaning is very simple actually.  While

No, I get that it's fixing a different problem but it's in a similar
areas and similar issues apply.  Like I say, tweaking the ordering of
suspend and resume will actually fix the TDM problem anyway.

> card->instantiated is not 1, it means the card(cpu dai/codec dai and
> related stuff) and the whole links are not built successfully at all.
> So devices are not even initialized at all. And the audio system
> doesn't start to work. Since so, suspend/resume should be not needed
> for the whole system.

That's not the case unfortunately - some or all of the devices may have
initialised themselves prior to registering with the SoC core and will
be expecting the SoC core to give them a callback so that they can
suspend and resume.  At the minute there's basically an assumption that
the card is going to come up completely and all we're doing here is
avoiding race conditions during startup (which is realistic for
production systems, partially constructed cards aren't likely there
without broken hardware).

With pm_link we'll be able to move some or all of this ordering stuff
out of the ASoC core and into the device model which will allow things
to happen either way without two code paths.

  reply	other threads:[~2009-11-13 15:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-13  4:51 [PATCH] soc-core: let suspend/resume not called if the card is not instantiated Barry Song
2009-11-13 13:38 ` Mark Brown
2009-11-13 14:56   ` Barry Song
2009-11-13 15:02     ` Mark Brown [this message]
2009-11-13 15:29       ` Barry Song
2009-11-13 17:04         ` Mark Brown
2009-11-14  0:46           ` Barry Song
2009-11-16 17:04             ` 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=20091113150224.GA23607@rakim.wolfsonmicro.main \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=21cnbao@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=uclinux-dist-devel@blackfin.uclinux.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.