[ALSA] oxygen: fix control filter
authorClemens Ladisch <clemens@ladisch.de>
Mon, 21 Jan 2008 07:52:11 +0000 (08:52 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 31 Jan 2008 16:30:08 +0000 (17:30 +0100)
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>
sound/pci/oxygen/oxygen_mixer.c

index 11114cedc05dd599136b9734d4bac12a73164d67..0993c29e62f106abf5ff9943eeec4fe3e72e1d92 100644 (file)
@@ -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);