[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>
This commit is contained in:
Родитель
547ac2ae38
Коммит
c6d6eeeacc
|
@ -1618,6 +1618,8 @@ static int __devinit snd_ca0106_probe(struct pci_dev *pci,
|
||||||
snd_ca0106_proc_init(chip);
|
snd_ca0106_proc_init(chip);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
snd_card_set_dev(card, &pci->dev);
|
||||||
|
|
||||||
if ((err = snd_card_register(card)) < 0) {
|
if ((err = snd_card_register(card)) < 0) {
|
||||||
snd_card_free(card);
|
snd_card_free(card);
|
||||||
return err;
|
return err;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче