Skip to content

Commit

Permalink
[ALSA] emu10k1x - Add missing snd_card_set_dev call
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed Jan 31, 2008
1 parent 3d3909f commit 682fc0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/pci/emu10k1/emu10k1x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1583,6 +1583,8 @@ static int __devinit snd_emu10k1x_probe(struct pci_dev *pci,
sprintf(card->longname, "%s at 0x%lx irq %i",
card->shortname, chip->port, chip->irq);

snd_card_set_dev(card, &pci->dev);

if ((err = snd_card_register(card)) < 0) {
snd_card_free(card);
return err;
Expand Down

0 comments on commit 682fc0a

Please sign in to comment.