Commit eb12f72e authored by Takashi Sakamoto's avatar Takashi Sakamoto Committed by Takashi Iwai

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: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent f77ac91e
...@@ -381,7 +381,7 @@ static int special_clk_ctl_put(struct snd_kcontrol *kctl, ...@@ -381,7 +381,7 @@ static int special_clk_ctl_put(struct snd_kcontrol *kctl,
id = uval->value.enumerated.item[0]; id = uval->value.enumerated.item[0];
if (id >= ARRAY_SIZE(special_clk_labels)) if (id >= ARRAY_SIZE(special_clk_labels))
return 0; return -EINVAL;
mutex_lock(&bebob->mutex); mutex_lock(&bebob->mutex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment