Skip to contentSkip to conversation

ASoC: dapm: Make sure all dapm contexts are updated

PATCH Applied Liam Girdwood 2 participants 2 messages Jul 6, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: dapm: Make sure all dapm contexts are updated

Make sure we set the bias level for all DAPM contexts when changing level.

---
 sound/soc/soc-dapm.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/soc-dapm.c +3 -3
index 912330b..0f078de 100644
@@ -291,9 +291,9 @@ static int snd_soc_dapm_set_bias_level(struct snd_soc_dapm_context *dapm,
 		if (dapm->codec->driver->set_bias_level)
 			ret = dapm->codec->driver->set_bias_level(dapm->codec,
 								  level);
-		else
-			dapm->bias_level = level;
-	}
+	} else
+		dapm->bias_level = level;
+
 	if (ret != 0)
 		goto out;
 
Signature · 1 line
1.7.9.5
Applied
#1 lore raw
Quoted 2 lines · Liam Girdwood

Make sure we set the bias level for all DAPM contexts when changing level.

Applied, thanks.