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

Commit 964a788e authored by Mark Brown's avatar Mark Brown Committed by Takashi Iwai
Browse files

[ALSA] soc - Report errors from snd_soc_dapm_set_endpoint()

parent b26451c0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1334,10 +1334,11 @@ int snd_soc_dapm_set_endpoint(struct snd_soc_codec *codec,
	list_for_each_entry(w, &codec->dapm_widgets, list) {
		if (!strcmp(w->name, endpoint)) {
			w->connected = status;
			return 0;
		}
	}

	return 0;
	return -ENODEV;
}
EXPORT_SYMBOL_GPL(snd_soc_dapm_set_endpoint);