diff options
Diffstat (limited to 'sound/soc/soc-dapm.c')
| -rw-r--r-- | sound/soc/soc-dapm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index dd7c49fafd75..f90139b5f50d 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
| @@ -291,8 +291,11 @@ 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 | 294 | else |
| 295 | dapm->bias_level = level; | ||
| 296 | } else if (!card || dapm != &card->dapm) { | ||
| 295 | dapm->bias_level = level; | 297 | dapm->bias_level = level; |
| 298 | } | ||
| 296 | 299 | ||
| 297 | if (ret != 0) | 300 | if (ret != 0) |
| 298 | goto out; | 301 | goto out; |
