aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2008-01-21 02:52:11 -0500
committerJaroslav Kysela <perex@perex.cz>2008-01-31 11:30:08 -0500
commite9d88a8bd9fb85d2a4a0adb89c47dcae437fa308 (patch)
tree37f6e5a6fcd08015184516897650387729e23361
parent7ef37cd95494a0a9be425c4d75f21ee8d2807b5a (diff)
[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>
-rw-r--r--sound/pci/oxygen/oxygen_mixer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/oxygen/oxygen_mixer.c b/sound/pci/oxygen/oxygen_mixer.c
index 11114cedc05d..0993c29e62f1 100644
--- a/sound/pci/oxygen/oxygen_mixer.c
+++ b/sound/pci/oxygen/oxygen_mixer.c
@@ -667,7 +667,7 @@ static int add_controls(struct oxygen *chip,
667 err = chip->model->control_filter(&template); 667 err = chip->model->control_filter(&template);
668 if (err < 0) 668 if (err < 0)
669 return err; 669 return err;
670 ctl = snd_ctl_new1(&controls[i], chip); 670 ctl = snd_ctl_new1(&template, chip);
671 if (!ctl) 671 if (!ctl)
672 return -ENOMEM; 672 return -ENOMEM;
673 err = snd_ctl_add(chip->card, ctl); 673 err = snd_ctl_add(chip->card, ctl);