]> err.no Git - linux-2.6/commitdiff
[ALSA] soc - Report errors from snd_soc_dapm_set_endpoint()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 26 Feb 2008 12:16:08 +0000 (13:16 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 24 Apr 2008 10:00:16 +0000 (12:00 +0200)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/soc/soc-dapm.c

index 620d7ea3c15ff56a10aba1e9402c98aa2c6940c8..abac6847ecad59e44985b8cf3c5781eef9de8072 100644 (file)
@@ -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);