]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/sound/core.h
Merge branch 'topic/quirk-cleanup' into for-linus
[linux-2.6-omap-h63xx.git] / include / sound / core.h
index f67952a61a2dad3f7a1817e21cc61edb9686177d..59491f22da9450f9fa159880686c61abdf2d1619 100644 (file)
@@ -296,8 +296,20 @@ int snd_card_locked(int card);
 extern int (*snd_mixer_oss_notify_callback)(struct snd_card *card, int cmd);
 #endif
 
+int snd_card_create(int idx, const char *id,
+                   struct module *module, int extra_size,
+                   struct snd_card **card_ret);
+
+static inline __deprecated
 struct snd_card *snd_card_new(int idx, const char *id,
-                        struct module *module, int extra_size);
+                             struct module *module, int extra_size)
+{
+       struct snd_card *card;
+       if (snd_card_create(idx, id, module, extra_size, &card) < 0)
+               return NULL;
+       return card;
+}
+
 int snd_card_disconnect(struct snd_card *card);
 int snd_card_free(struct snd_card *card);
 int snd_card_free_when_closed(struct snd_card *card);