[PATCH] [2.1.80-pre4] soundcard.c

Bernhard Rosenkraenzer (root@bero-online.ml.org)
Sun, 18 Jan 1998 15:11:52 +0000 (GMT)


In 2.1.80-pre4, soundcard.c is still using the old-style __get_free_pages.
Here's a fix:

--- soundcard.c~ Tue Dec 30 19:02:39 1997
+++ soundcard.c Sun Jan 18 15:09:53 1998
@@ -1100,7 +1100,7 @@

dmap->buffsize = PAGE_SIZE * (1 << sz);

- if ((start_addr = (char *) __get_free_pages(GFP_ATOMIC,
sz, MAX_DMA_ADDRESS)) == NULL)
+ if ((start_addr = (char *) __get_free_pages(GFP_ATOMIC,
sz)) == NULL)
dmap->buffsize /= 2;
}

LLaP
bero

-- bero@bero-online.ml.org - ICQ/UIN 6545964 - http://www.star-trek.ml.org/ --

"Nobody will ever need more than 640k RAM!"
-- Bill Gates, 1981
"Windows 95 needs at least 8 MB RAM."
-- Bill Gates, 1996
"Nobody will ever need Windows 95."
-- logical conclusion