mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
[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>
This commit is contained in:
parent
7ef37cd954
commit
e9d88a8bd9
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue