1
0
Fork 0

ASoC: dapm: Make sure all dapm contexts are updated

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

Signed-off-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
hifive-unleashed-5.1
Liam Girdwood 2012-07-06 16:56:16 +01:00 committed by Mark Brown
parent 01005a729a
commit 4123128ee4
1 changed files with 3 additions and 3 deletions

View File

@ -288,9 +288,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;