[ALSA] dbri - Fix broken change for value range checks
[linux-2.6.git] / 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) {