diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-02-26 07:16:08 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-04-24 06:00:16 -0400 |
commit | 964a788e0ba64aa4ce2e6488718f3ee28cc2e61e (patch) | |
tree | cc455862676c3105fdc01ceaa0bc013554c0f4d7 /sound/soc | |
parent | b26451c059e741ec5e3389f7758627cb094b3766 (diff) |
[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>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/soc-dapm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 620d7ea3c15f..abac6847ecad 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
@@ -1334,10 +1334,11 @@ int snd_soc_dapm_set_endpoint(struct snd_soc_codec *codec, | |||
1334 | list_for_each_entry(w, &codec->dapm_widgets, list) { | 1334 | list_for_each_entry(w, &codec->dapm_widgets, list) { |
1335 | if (!strcmp(w->name, endpoint)) { | 1335 | if (!strcmp(w->name, endpoint)) { |
1336 | w->connected = status; | 1336 | w->connected = status; |
1337 | return 0; | ||
1337 | } | 1338 | } |
1338 | } | 1339 | } |
1339 | 1340 | ||
1340 | return 0; | 1341 | return -ENODEV; |
1341 | } | 1342 | } |
1342 | EXPORT_SYMBOL_GPL(snd_soc_dapm_set_endpoint); | 1343 | EXPORT_SYMBOL_GPL(snd_soc_dapm_set_endpoint); |
1343 | 1344 | ||