Commit e9d88a8b authored by Clemens Ladisch's avatar Clemens Ladisch Committed by Jaroslav Kysela

[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: default avatarClemens Ladisch <clemens@ladisch.de>
Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
parent 7ef37cd9
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment