소스 검색

ALSA: ca0106 - Add missing card->private_data initialization

Added the missing card->private_data initialization that caused obvious
problems at PM.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Takashi Iwai 16 년 전
부모
커밋
72077aa336
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      sound/pci/ca0106/ca0106_main.c

+ 1 - 0
sound/pci/ca0106/ca0106_main.c

@@ -1694,6 +1694,7 @@ static int __devinit snd_ca0106_probe(struct pci_dev *pci,
 	err = snd_ca0106_create(dev, card, pci, &chip);
 	err = snd_ca0106_create(dev, card, pci, &chip);
 	if (err < 0)
 	if (err < 0)
 		goto error;
 		goto error;
+	card->private_data = chip;
 
 
 	for (i = 0; i < 4; i++) {
 	for (i = 0; i < 4; i++) {
 		err = snd_ca0106_pcm(chip, i);
 		err = snd_ca0106_pcm(chip, i);