diff options
author | Takashi Iwai <tiwai@suse.de> | 2007-03-28 22:40:35 +0200 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2007-03-28 22:40:35 +0200 |
commit | 37642635267293ac1d6aece76c5fdbd1adc570a0 (patch) | |
tree | b55bd05d2550ddc21a946575a5f83adc5098471f | |
parent | 19373e32df8abb10fa7e12d76e24a105a6717bfd (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: Adrian Bunk <bunk@stusta.de>
-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 cf84d4453af..e307c1216e3 100644 --- a/sound/pci/ca0106/ca0106_main.c +++ b/sound/pci/ca0106/ca0106_main.c @@ -1544,6 +1544,8 @@ static int __devinit snd_ca0106_probe(struct pci_dev *pci, snd_ca0106_proc_init(chip); #endif + snd_card_set_dev(card, &pci->dev); + if ((err = snd_card_register(card)) < 0) { snd_card_free(card); return err; |