From 70c203c7dccbc6f7c9106f6161444d2c6db3de29 Mon Sep 17 00:00:00 2001 From: Giovanni Maruzzelli Date: Fri, 26 Feb 2010 17:52:36 +0000 Subject: [PATCH] skypiax: snd-dummy alsa driver, make it ready (need to be edited before compilation) for alsa-1.0.22 still works on 1.0.20 and compatible with old alsa versions git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16837 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_skypiax/alsa/dummy.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/mod/endpoints/mod_skypiax/alsa/dummy.c b/src/mod/endpoints/mod_skypiax/alsa/dummy.c index 9df10793f7..e974f49949 100644 --- a/src/mod/endpoints/mod_skypiax/alsa/dummy.c +++ b/src/mod/endpoints/mod_skypiax/alsa/dummy.c @@ -630,9 +630,14 @@ static int __devinit snd_dummy_probe(struct platform_device *devptr) int idx, err; int dev = devptr->id; - card = snd_card_new(index[dev], id[dev], THIS_MODULE, sizeof(struct snd_dummy)); - if (card == NULL) - return -ENOMEM; + card = snd_card_new(index[dev], id[dev], THIS_MODULE, sizeof(struct snd_dummy)); //giova if this gives you problems, comment it out and remove comment from the 4 lines commented below + if (card == NULL) //giova if this gives you problems, comment it out and remove comment from the 4 lines commented below + return -ENOMEM; //giova if this gives you problems, comment it out and remove comment from the 4 lines commented below + + //giova err = snd_card_create(index[dev], id[dev], THIS_MODULE, + //giova sizeof(struct snd_dummy), &card); + //giova if (err < 0) + //giova return err; dummy = card->private_data; dummy->card = card;