Pārlūkot izejas kodu

[ALSA] oxygen: fix control filter

Actually use the template that was maybe changed by the control filter
instead of the original one.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Clemens Ladisch 17 gadi atpakaļ
vecāks
revīzija
e9d88a8bd9
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      sound/pci/oxygen/oxygen_mixer.c

+ 1 - 1
sound/pci/oxygen/oxygen_mixer.c

@@ -667,7 +667,7 @@ static int add_controls(struct oxygen *chip,
 		err = chip->model->control_filter(&template);
 		if (err < 0)
 			return err;
-		ctl = snd_ctl_new1(&controls[i], chip);
+		ctl = snd_ctl_new1(&template, chip);
 		if (!ctl)
 			return -ENOMEM;
 		err = snd_ctl_add(chip->card, ctl);