]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[ALSA] Add missing sysfs device assignment for ALSA PCI drivers
authorTakashi Iwai <tiwai@suse.de>
Mon, 19 Feb 2007 14:27:33 +0000 (15:27 +0100)
committerJaroslav Kysela <perex@suse.cz>
Tue, 6 Mar 2007 09:40:29 +0000 (10:40 +0100)
Added the missing sysfs device assignment for ALSA PCI drivers.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/pci/ali5451/ali5451.c
sound/pci/echoaudio/echoaudio.c
sound/pci/riptide/riptide.c
sound/pci/rme9652/hdspm.c

index 9327ab2eccb0c704a951a2a59b51f1c5eb28e2df..ba7fa22b285dd837c881f61d1856205dba58fb13 100644 (file)
@@ -2312,6 +2312,8 @@ static int __devinit snd_ali_create(struct snd_card *card,
                return err;
        }
 
+       snd_card_set_dev(card, &pci->dev);
+
        /* initialise synth voices*/
        for (i = 0; i < ALI_CHANNELS; i++ ) {
                codec->synth.voices[i].number = i;
index 6a428b81dba65e4719980a5dee6f3922b83a431b..e413da00759bcbe3cc2e67086b41866d12e4bc4a 100644 (file)
@@ -2033,6 +2033,8 @@ static int __devinit snd_echo_probe(struct pci_dev *pci,
        if (card == NULL)
                return -ENOMEM;
 
+       snd_card_set_dev(card, &pci->dev);
+
        if ((err = snd_echo_create(card, pci, &chip)) < 0) {
                snd_card_free(card);
                return err;
index 5e1d5d2b285030be51f42d7cee4e3654a20f50b0..952625dead58ef56973f48fbbe122cc63fd8a58e 100644 (file)
@@ -1919,6 +1919,8 @@ snd_riptide_create(struct snd_card *card, struct pci_dev *pci,
                return err;
        }
 
+       snd_card_set_dev(card, &pci->dev);
+
        *rchip = chip;
        return 0;
 }
index e0215aca119364eff28261ab238a01e84a840963..6e95857e4e67a4cd10f5843312cae93ed661237b 100644 (file)
@@ -4468,6 +4468,8 @@ static int __devinit snd_hdspm_probe(struct pci_dev *pci,
        hdspm->dev = dev;
        hdspm->pci = pci;
 
+       snd_card_set_dev(card, &pci->dev);
+
        if ((err =
             snd_hdspm_create(card, hdspm, precise_ptr[dev],
                              enable_monitor[dev])) < 0) {