Skip to content

Commit

Permalink
[ALSA] dbri - Fix broken change for value range checks
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed Jan 31, 2008
1 parent dec44db commit 4581aa3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sound/sparc/dbri.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4581aa3

Please sign in to comment.