From: Sasha Khapyorsky Date: Tue, 13 Sep 2005 09:21:30 +0000 (+0200) Subject: [ALSA] no templated index for mc97 controls X-Git-Tag: v2.6.14-rc4~25^2~25 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0444e2aca9ac89f571f0bb7781d12818719e4baf;p=linux-2.6-omap-h63xx.git [ALSA] no templated index for mc97 controls AC97 Codec No index is templated for mdoem controls. Signed-off-by: Sasha Khapyorsky Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/ac97/ac97_codec.c b/sound/pci/ac97/ac97_codec.c index e64cb07a39c..f221eba5c32 100644 --- a/sound/pci/ac97/ac97_codec.c +++ b/sound/pci/ac97/ac97_codec.c @@ -1557,7 +1557,7 @@ static int snd_ac97_modem_build(snd_card_t * card, ac97_t * ac97) /* build modem switches */ for (idx = 0; idx < ARRAY_SIZE(snd_ac97_controls_modem_switches); idx++) - if ((err = snd_ctl_add(card, snd_ac97_cnew(&snd_ac97_controls_modem_switches[idx], ac97))) < 0) + if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_ac97_controls_modem_switches[idx], ac97))) < 0) return err; /* build chip specific controls */