All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/8] ASoC: dapm: Fix marking widgets dirty when a route is added
@ 2013-08-27 13:50 Lars-Peter Clausen
  2013-08-27 13:50 ` [PATCH 2/8] ASoC: dmic: Convert table based DAPM setup Lars-Peter Clausen
                   ` (7 more replies)
  0 siblings, 8 replies; 18+ messages in thread
From: Lars-Peter Clausen @ 2013-08-27 13:50 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood; +Cc: alsa-devel, Lars-Peter Clausen

The current calls to dapm_mark_dirty() in snd_soc_dapm_add_path() are on a path
that is only reached if the sink widget is either a mixer or a mux. Move the
calls further up so they are called for all widget types.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
 sound/soc/soc-dapm.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index d84bd0f..7e9afbc4 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -2374,6 +2374,9 @@ static int snd_soc_dapm_add_path(struct snd_soc_dapm_context *dapm,
 			wsource->ext = 1;
 	}
 
+	dapm_mark_dirty(wsource, "Route added");
+	dapm_mark_dirty(wsink, "Route added");
+
 	/* connect static paths */
 	if (control == NULL) {
 		list_add(&path->list, &dapm->card->paths);
@@ -2436,9 +2439,6 @@ static int snd_soc_dapm_add_path(struct snd_soc_dapm_context *dapm,
 		return 0;
 	}
 
-	dapm_mark_dirty(wsource, "Route added");
-	dapm_mark_dirty(wsink, "Route added");
-
 	return 0;
 err:
 	kfree(path);
-- 
1.8.0

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2013-08-27 14:54 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-27 13:50 [PATCH 1/8] ASoC: dapm: Fix marking widgets dirty when a route is added Lars-Peter Clausen
2013-08-27 13:50 ` [PATCH 2/8] ASoC: dmic: Convert table based DAPM setup Lars-Peter Clausen
2013-08-27 14:32   ` Mark Brown
2013-08-27 13:50 ` [PATCH 3/8] ASoC: tlv320aic32x4: Convert table based control and " Lars-Peter Clausen
2013-08-27 14:35   ` Mark Brown
2013-08-27 14:41     ` Lars-Peter Clausen
2013-08-27 14:54       ` Mark Brown
2013-08-27 13:50 ` [PATCH 4/8] ASoC; wm8904: Remove unnecessary call to snd_soc_dapm_new_widgets() Lars-Peter Clausen
2013-08-27 14:36   ` Mark Brown
2013-08-27 13:50 ` [PATCH 5/8] ASoC: jack: " Lars-Peter Clausen
2013-08-27 14:37   ` Mark Brown
2013-08-27 13:50 ` [PATCH 6/8] ASoC: Call snd_soc_dapm_new_widgets() only once during card initialization Lars-Peter Clausen
2013-08-27 14:38   ` Mark Brown
2013-08-27 13:51 ` [PATCH 7/8] ASoC: Move call to snd_soc_dapm_new_widgets() after snd_soc_dapm_auto_nc_codec_pins() Lars-Peter Clausen
2013-08-27 14:41   ` Mark Brown
2013-08-27 13:51 ` [PATCH 8/8] ASoC: Pass card instead of dapm context to snd_soc_dapm_new_widgets() Lars-Peter Clausen
2013-08-27 14:42   ` Mark Brown
2013-08-27 14:33 ` [PATCH 1/8] ASoC: dapm: Fix marking widgets dirty when a route is added Mark Brown

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.