aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/emu10k1
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2007-11-26 02:45:43 -0500
committerJaroslav Kysela <perex@perex.cz>2008-01-31 11:29:29 -0500
commit682fc0a5fe1a309a9a1860a0d50a2c6977d961cd (patch)
tree4a50cfe8621c056f119c856c28349b8d11556397 /sound/pci/emu10k1
parent3d3909ffe57174ee10a2ba2cdd75a7c7383f1983 (diff)
[ALSA] emu10k1x - Add missing snd_card_set_dev call
Added the missing snd_card_set_dev() call. This will fix the incomplete sysfs entry for this card. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/pci/emu10k1')
-rw-r--r--sound/pci/emu10k1/emu10k1x.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/emu10k1/emu10k1x.c b/sound/pci/emu10k1/emu10k1x.c
index 1ec7ebaff9e9..0030d8b84669 100644
--- a/sound/pci/emu10k1/emu10k1x.c
+++ b/sound/pci/emu10k1/emu10k1x.c
@@ -1583,6 +1583,8 @@ static int __devinit snd_emu10k1x_probe(struct pci_dev *pci,
1583 sprintf(card->longname, "%s at 0x%lx irq %i", 1583 sprintf(card->longname, "%s at 0x%lx irq %i",
1584 card->shortname, chip->port, chip->irq); 1584 card->shortname, chip->port, chip->irq);
1585 1585
1586 snd_card_set_dev(card, &pci->dev);
1587
1586 if ((err = snd_card_register(card)) < 0) { 1588 if ((err = snd_card_register(card)) < 0) {
1587 snd_card_free(card); 1589 snd_card_free(card);
1588 return err; 1590 return err;