提交 c187c041 编写于 作者: T Takashi Iwai 提交者: Jaroslav Kysela

[ALSA] Add missing sysfs device assignment for ALSA PCI drivers

Added the missing sysfs device assignment for ALSA PCI drivers.
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
Signed-off-by: NJaroslav Kysela <perex@suse.cz>
上级 3fc24d85
...@@ -2312,6 +2312,8 @@ static int __devinit snd_ali_create(struct snd_card *card, ...@@ -2312,6 +2312,8 @@ static int __devinit snd_ali_create(struct snd_card *card,
return err; return err;
} }
snd_card_set_dev(card, &pci->dev);
/* initialise synth voices*/ /* initialise synth voices*/
for (i = 0; i < ALI_CHANNELS; i++ ) { for (i = 0; i < ALI_CHANNELS; i++ ) {
codec->synth.voices[i].number = i; codec->synth.voices[i].number = i;
......
...@@ -2033,6 +2033,8 @@ static int __devinit snd_echo_probe(struct pci_dev *pci, ...@@ -2033,6 +2033,8 @@ static int __devinit snd_echo_probe(struct pci_dev *pci,
if (card == NULL) if (card == NULL)
return -ENOMEM; return -ENOMEM;
snd_card_set_dev(card, &pci->dev);
if ((err = snd_echo_create(card, pci, &chip)) < 0) { if ((err = snd_echo_create(card, pci, &chip)) < 0) {
snd_card_free(card); snd_card_free(card);
return err; return err;
......
...@@ -1919,6 +1919,8 @@ snd_riptide_create(struct snd_card *card, struct pci_dev *pci, ...@@ -1919,6 +1919,8 @@ snd_riptide_create(struct snd_card *card, struct pci_dev *pci,
return err; return err;
} }
snd_card_set_dev(card, &pci->dev);
*rchip = chip; *rchip = chip;
return 0; return 0;
} }
......
...@@ -4468,6 +4468,8 @@ static int __devinit snd_hdspm_probe(struct pci_dev *pci, ...@@ -4468,6 +4468,8 @@ static int __devinit snd_hdspm_probe(struct pci_dev *pci,
hdspm->dev = dev; hdspm->dev = dev;
hdspm->pci = pci; hdspm->pci = pci;
snd_card_set_dev(card, &pci->dev);
if ((err = if ((err =
snd_hdspm_create(card, hdspm, precise_ptr[dev], snd_hdspm_create(card, hdspm, precise_ptr[dev],
enable_monitor[dev])) < 0) { enable_monitor[dev])) < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册