mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
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>
This commit is contained in:
parent
bc72d26bdb
commit
d8c3bb911f
@ -291,6 +291,8 @@ 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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user