]> err.no Git - linux-2.6/commitdiff
[ALSA] dbri - Fix broken change for value range checks
authorTakashi Iwai <tiwai@suse.de>
Tue, 20 Nov 2007 17:31:22 +0000 (18:31 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 31 Jan 2008 16:29:26 +0000 (17:29 +0100)
The last patch for value range checks included a broken merge result.
Now fixed properly.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/sparc/dbri.c

index af1bf4bf9459203bec0a0a4c30025a99c09159ae..fc683174f2c75f2c21069b65cbcf215915e31523 100644 (file)
@@ -2292,12 +2292,12 @@ static int snd_cs4215_put_volume(struct snd_kcontrol *kcontrol,
                        return -EINVAL;
        }
 
-       if (info->left_gain != 
-               info->left_gain = ucontrol->value.integer.value[0];
+       if (info->left_gain != vol[0]) {
+               info->left_gain = vol[0];
                changed = 1;
        }
-       if (info->right_gain != ucontrol->value.integer.value[1]) {
-               info->right_gain = ucontrol->value.integer.value[1];
+       if (info->right_gain != vol[1]) {
+               info->right_gain = vol[1];
                changed = 1;
        }
        if (changed) {