Update of /cvsroot/alsa/alsa-driver/isa In directory usw-pr-cvs1:/tmp/cvs-serv27579
Modified Files: sscape.c Log Message: Used snd_malloc_isa_pages_fallback() in get_dmabuf() Index: sscape.c =================================================================== RCS file: /cvsroot/alsa/alsa-driver/isa/sscape.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- sscape.c 25 Sep 2002 11:48:08 -0000 1.4 +++ sscape.c 29 Sep 2002 17:13:48 -0000 1.5 @@ -161,15 +161,11 @@ static struct dmabuf *get_dmabuf(struct dmabuf *buf, unsigned long s) { if (buf) { - while (((buf->data = snd_malloc_isa_pages(s, &buf->addr)) == NULL) && (s > PAGE_SIZE)) - s /= 2; - + buf->data = snd_malloc_isa_pages_fallback(s, &buf->addr, &buf->size); if (!buf->data) { printk(KERN_ERR "sscape: Failed to allocate %lu bytes for DMA\n", s); return NULL; } - - buf->size = s; } return buf; ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog