Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cc4c670a authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: Only provide a default bias level update for CODEC contexts



This allows the card driver to use the bias level variable more easily in
multi component systems.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarLiam Girdwood <lrg@ti.com>
parent d4c6005f
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -146,10 +146,13 @@ static int snd_soc_dapm_set_bias_level(struct snd_soc_dapm_context *dapm,
	if (ret != 0)
		goto out;

	if (dapm->codec && dapm->codec->driver->set_bias_level)
		ret = dapm->codec->driver->set_bias_level(dapm->codec, level);
	if (dapm->codec) {
		if (dapm->codec->driver->set_bias_level)
			ret = dapm->codec->driver->set_bias_level(dapm->codec,
								  level);
		else
			dapm->bias_level = level;
	}
	if (ret != 0)
		goto out;