diff options
| author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-08-23 13:10:42 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-08-25 08:50:21 -0400 |
| commit | d8c3bb911f5afc32f7276c2e2e89eb58af4306ae (patch) | |
| tree | 53d927bc75fc589c46835ac633761d3e09ffc661 | |
| parent | bc72d26bdb23c908ad52ec2d321a137d27762f08 (diff) | |
ASoC: dapm: Make sure we update the bias level for CODECs with no op
Commit 412312 (ASoC: dapm: Make sure all dapm contexts are updated)
ensures that we update non-CODEC DAPM contexts but means that if a
CODEC has no set_bias_level() operation it'll not be updated. Fix
that.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
| -rw-r--r-- | sound/soc/soc-dapm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index dd7c49fafd75..145ec4b56ca9 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
| @@ -291,6 +291,8 @@ static int snd_soc_dapm_set_bias_level(struct snd_soc_dapm_context *dapm, | |||
| 291 | if (dapm->codec->driver->set_bias_level) | 291 | if (dapm->codec->driver->set_bias_level) |
| 292 | ret = dapm->codec->driver->set_bias_level(dapm->codec, | 292 | ret = dapm->codec->driver->set_bias_level(dapm->codec, |
| 293 | level); | 293 | level); |
| 294 | else | ||
| 295 | dapm->bias_level = level; | ||
| 294 | } else | 296 | } else |
| 295 | dapm->bias_level = level; | 297 | dapm->bias_level = level; |
| 296 | 298 | ||
