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

Commit 86fdf692 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: dapm: Fix double lock of dapm mutex"

parents c6fd4269 b2132185
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -3628,10 +3628,8 @@ int snd_soc_dapm_force_enable_pin_unlocked(struct snd_soc_dapm_context *dapm,
{
	struct snd_soc_dapm_widget *w = dapm_find_widget(dapm, pin, true);

	mutex_lock_nested(&dapm->card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME);
	if (!w) {
		dev_err(dapm->dev, "ASoC: unknown pin %s\n", pin);
		mutex_unlock(&dapm->card->dapm_mutex);
		return -EINVAL;
	}

@@ -3639,7 +3637,6 @@ int snd_soc_dapm_force_enable_pin_unlocked(struct snd_soc_dapm_context *dapm,
	w->connected = 1;
	w->force = 1;
	dapm_mark_dirty(w, "force enable");
	mutex_unlock(&dapm->card->dapm_mutex);

	return 0;
}