aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2014-07-22 11:02:08 -0400
committerTakashi Iwai <tiwai@suse.de>2014-07-22 11:31:28 -0400
commiteb12f72ee7245ca207818b9efd10be2641494502 (patch)
tree43eb70cb6666befdc6da0ebb5fb918a3e6a4ae32 /sound
parentf77ac91e8edade4755f732d52fa094dc3bfd8b8e (diff)
ALSA: bebob: Correction for return value of special_clk_ctl_put() in error
This commit is a supplement to my previous patch. http://mailman.alsa-project.org/pipermail/alsa-devel/2014-July/079190.html The special_clk_ctl_put() still returns 0 in error handling case. It should return -EINVAL. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/firewire/bebob/bebob_maudio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/firewire/bebob/bebob_maudio.c b/sound/firewire/bebob/bebob_maudio.c
index d6d6ff8cb8dd..70faa3a32526 100644
--- a/sound/firewire/bebob/bebob_maudio.c
+++ b/sound/firewire/bebob/bebob_maudio.c
@@ -381,7 +381,7 @@ static int special_clk_ctl_put(struct snd_kcontrol *kctl,
381 381
382 id = uval->value.enumerated.item[0]; 382 id = uval->value.enumerated.item[0];
383 if (id >= ARRAY_SIZE(special_clk_labels)) 383 if (id >= ARRAY_SIZE(special_clk_labels))
384 return 0; 384 return -EINVAL;
385 385
386 mutex_lock(&bebob->mutex); 386 mutex_lock(&bebob->mutex);
387 387