Commits

Hannu Savolainen  committed ee7da68

Fix to card instance creation in Cuckoo

  • Participants
  • Parent commits 60af2c5

Comments (0)

Files changed (1)

File setup/Linux/oss/cuckoo/cuckoo.c

 		}
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
-#define snd_card_create snd_card_new
+	      if ((card =
+		   snd_card_new (index[ncards], id[ncards], THIS_MODULE,
+				 0)) == NULL)
+#else
+	      if (
+		   snd_card_create (index[ncards], id[ncards], THIS_MODULE,
+				 0, &card) != 0)
 #endif
-
-	      if ((card =
-		   snd_card_create (index[ncards], id[ncards], THIS_MODULE,
-				 0)) == NULL)
 		{
 		  printk ("cuckoo: Can't create a card instance\n");
 		  return -EIO;