forked from luck/tmp_suning_uos_patched
[ALSA] soc - Report errors from snd_soc_dapm_set_endpoint()
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
b26451c059
commit
964a788e0b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user