alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Jarkko Nikula <jhnikula@gmail.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Wan@alsa-project.org, alsa-devel@alsa-project.org,
	Lars-Peter Clausen <lars@metafoo.de>,
	Eric Miao <eric.y.miao@gmail.com>, ZongShun <mcuos.com@gmail.com>,
	Mike Frysinger <vapier.adi@gmail.com>,
	Jassi@alsa-project.org,
	Kevin Hilman <khilman@deeprootsystems.com>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	Nicolas Ferre <nicolas.ferre@atmel.com>,
	Cai <cliff.cai@analog.com>, Timur Tabi <timur@freescale.com>,
	Morimoto <morimoto.kuninori@renesas.com>,
	Kuninori@alsa-project.org,
	Manuel Lauss <manuel.lauss@googlemail.com>,
	Daniel Gloeckner <dg@emlix.com>, Brar <jassi.brar@samsung.com>,
	Liam Girdwood <lrg@slimlogic.co.uk>,
	Ryan Mallon <ryan@bluewatersys.com>,
	"Arnaud Patard (Rtp)" <arnaud.patard@rtp-net.org>,
	Cliff@alsa-project.org
Subject: Re: [PATCH] ASoC: Decouple DAPM from CODECs
Date: Fri, 5 Nov 2010 09:20:08 +0200	[thread overview]
Message-ID: <20101105092008.388e67de.jhnikula@gmail.com> (raw)
In-Reply-To: <20101105032919.GA12228@opensource.wolfsonmicro.com>

On Thu, 4 Nov 2010 23:29:20 -0400
Mark Brown <broonie@opensource.wolfsonmicro.com> wrote:

> On Thu, Nov 04, 2010 at 02:38:05PM +0200, Jarkko Nikula wrote:
> > From: Liam Girdwood <lrg@slimlogic.co.uk>
> > 
> > Decoupling Dynamic Audio Power Management (DAPM) from codec devices is
> > required when developing ASoC further. Such as for other ASoC components to
> > have DAPM widgets or when extending DAPM to handle cross-device paths.
> 
> This looks good but won't apply without your DAPM locking change.  In a
> case like this where the patch is going to be applied on a different
> branch to the one the dependency is on it's usually best to let the
> merge get sorted out when the branches get merged.

Lets not take honor from Peter Ujfalusi who find the locking issue
in DAPM :-)

As this patch is huge, a small fixup below to those conflicting
lines (and only those) of patch file. That makes the patch to apply on
top of for-2.6.38 branch.


-- 
Jarkko
-------------------- fixup.diff --------------------
--- [PATCH]_ASoC__Decouple_DAPM_from_CODECs.orig	2010-11-05 09:14:14.000000000 +0200
+++ [PATCH]_ASoC__Decouple_DAPM_from_CODECs	2010-11-05 09:15:44.000000000 +0200
@@ -5707,9 +5707,9 @@
  	LIST_HEAD(up_list);
  	LIST_HEAD(down_list);
 @@ -903,7 +909,7 @@ static int dapm_power_widgets(struct snd_soc_codec *codec, int event)
+ 	/* Check which widgets we need to power and store them in
  	 * lists indicating if they should be powered up or down.
  	 */
- 	mutex_lock(&card->dpw_mutex);
 -	list_for_each_entry(w, &codec->dapm_widgets, list) {
 +	list_for_each_entry(w, &dapm->widgets, list) {
  		switch (w->id) {
@@ -5800,9 +5800,9 @@
 +	pop_dbg(dapm->pop_time, "DAPM sequencing finished, waiting %dms\n",
 +		dapm->pop_time);
 +	pop_wait(dapm->pop_time);
- 	mutex_unlock(&card->dpw_mutex);
  
  	return 0;
+ }
 @@ -1037,9 +1043,9 @@ static ssize_t dapm_widget_power_read_file(struct file *file,
  		return -ENOMEM;

  reply	other threads:[~2010-11-05  7:19 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-29 12:00 [RFC i-iv] ASoC: Add support for cross-device paths without dai and without name collision Jarkko Nikula
2010-10-29 12:00 ` [RFC_i/iv 1/3] ASoC: Decouple DAPM from CODECs. Part core (will be squashed) Jarkko Nikula
2010-10-29 20:04   ` Mark Brown
2010-10-30 18:01     ` Liam Girdwood
2010-10-31 18:13       ` Jarkko Nikula
2010-11-01 13:13       ` Mark Brown
2010-11-04 12:38         ` [PATCH] ASoC: Decouple DAPM from CODECs Jarkko Nikula
2010-11-05  3:29           ` Mark Brown
2010-11-05  7:20             ` Jarkko Nikula [this message]
2010-11-05 13:38               ` Mark Brown
2010-11-05 13:53                 ` Jarkko Nikula
2010-11-05 14:02                   ` Mark Brown
     [not found] ` <1288353618-21753-3-git-send-email-jhnikula@gmail.com>
2010-10-29 13:45   ` [RFC_i/iv 2/3] ASoC: Decouple DAPM from CODECs. Part codecs (will be squashed) Jarkko Nikula
2010-10-29 20:45   ` Mark Brown
     [not found] ` <1288353618-21753-4-git-send-email-jhnikula@gmail.com>
2010-10-29 20:47   ` [RFC_i/iv 3/3] ASoC: Decouple DAPM from CODECs. Part platforms " Mark Brown
2010-10-31 18:11     ` Jarkko Nikula
2010-11-01 13:14       ` 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=20101105092008.388e67de.jhnikula@gmail.com \
    --to=jhnikula@gmail.com \
    --cc=Cliff@alsa-project.org \
    --cc=Jassi@alsa-project.org \
    --cc=Kuninori@alsa-project.org \
    --cc=Wan@alsa-project.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=arnaud.patard@rtp-net.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=cliff.cai@analog.com \
    --cc=dg@emlix.com \
    --cc=eric.y.miao@gmail.com \
    --cc=jassi.brar@samsung.com \
    --cc=khilman@deeprootsystems.com \
    --cc=lars@metafoo.de \
    --cc=lrg@slimlogic.co.uk \
    --cc=manuel.lauss@googlemail.com \
    --cc=mcuos.com@gmail.com \
    --cc=morimoto.kuninori@renesas.com \
    --cc=nicolas.ferre@atmel.com \
    --cc=ryan@bluewatersys.com \
    --cc=s.hauer@pengutronix.de \
    --cc=timur@freescale.com \
    --cc=vapier.adi@gmail.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).