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

Commit 3017358a authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: Ensure supplies are maintained for force enabled widgets



If a widget has been force enabled then not only do we need to keep the
widget itself enabled, we also need to keep any supplies the widget
requires enabled. The user could force all the individual widgets on but
this requires too much knowledge of device internals.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Tested-by: default avatarStephen Warren <swarren@nvidia.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent c52fd021
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -712,7 +712,15 @@ static int dapm_supply_check_power(struct snd_soc_dapm_widget *w)
		    !path->connected(path->source, path->sink))
			continue;

		if (path->sink && path->sink->power_check &&
		if (!path->sink)
			continue;

		if (path->sink->force) {
			power = 1;
			break;
		}

		if (path->sink->power_check &&
		    path->sink->power_check(path->sink)) {
			power = 1;
			break;