Commit 4f2d23e1 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Use snd_hda_ctl_add() in patch_sigmatel.c

Fixed the call of snd_ctl_add() by replacing with snd_hda_ctl_add()
so that this mixer element can be tracked for re-configuration.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 827057f5
......@@ -1293,7 +1293,7 @@ static int stac92xx_build_controls(struct hda_codec *codec)
spec->spdif_mute = 1;
}
stac_smux_mixer.count = spec->num_smuxes;
err = snd_ctl_add(codec->bus->card,
err = snd_hda_ctl_add(codec,
snd_ctl_new1(&stac_smux_mixer, codec));
if (err < 0)
return err;
......
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