diff options
author | Takashi Iwai <tiwai@suse.de> | 2007-02-08 08:50:31 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2007-02-09 03:04:03 -0500 |
commit | c6d6eeeacc2ed0b736f20692ca021324f3b203b3 (patch) | |
tree | 62c10d510ad8aca77d1eb2fc62c9466ebd2da42d /sound/pci | |
parent | 547ac2ae3890b8e17bcfea4ba8840a10f3496da4 (diff) |
[ALSA] ca0106 - Add missing sysfs device assignment
Added the missing device assignment before creating sysfs tree.
This caused the insufficient device permissions.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/ca0106/ca0106_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/ca0106/ca0106_main.c b/sound/pci/ca0106/ca0106_main.c index 6f781b811876..ea6712b63c9f 100644 --- a/sound/pci/ca0106/ca0106_main.c +++ b/sound/pci/ca0106/ca0106_main.c | |||
@@ -1618,6 +1618,8 @@ static int __devinit snd_ca0106_probe(struct pci_dev *pci, | |||
1618 | snd_ca0106_proc_init(chip); | 1618 | snd_ca0106_proc_init(chip); |
1619 | #endif | 1619 | #endif |
1620 | 1620 | ||
1621 | snd_card_set_dev(card, &pci->dev); | ||
1622 | |||
1621 | if ((err = snd_card_register(card)) < 0) { | 1623 | if ((err = snd_card_register(card)) < 0) { |
1622 | snd_card_free(card); | 1624 | snd_card_free(card); |
1623 | return err; | 1625 | return err; |