Browse Source

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: Takashi Iwai <tiwai@suse.de>
Takashi Iwai 16 năm trước cách đây
mục cha
commit
4f2d23e1c3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      sound/pci/hda/patch_sigmatel.c

+ 1 - 1
sound/pci/hda/patch_sigmatel.c

@@ -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;