diff options
author | dg <dg@FreeBSD.org> | 1994-09-27 17:58:30 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-09-27 17:58:30 +0000 |
commit | 54a697ba7cc3a705c4d27d169175ce7ac64dfc24 (patch) | |
tree | 2cb37c2b1904efc3013807ecdd76a30b8fe2aaf5 /sys/i386/isa/sound/soundcard.c | |
parent | 0b0fbe4d94707b6c6de6652b718d12e327aedf7a (diff) | |
download | FreeBSD-src-54a697ba7cc3a705c4d27d169175ce7ac64dfc24.zip FreeBSD-src-54a697ba7cc3a705c4d27d169175ce7ac64dfc24.tar.gz |
First round of changes to get the sound code working in 2.0.
Diffstat (limited to 'sys/i386/isa/sound/soundcard.c')
-rw-r--r-- | sys/i386/isa/sound/soundcard.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/i386/isa/sound/soundcard.c b/sys/i386/isa/sound/soundcard.c index bc44b00..f3acf7e 100644 --- a/sys/i386/isa/sound/soundcard.c +++ b/sys/i386/isa/sound/soundcard.c @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: soundcard.c,v 1.18 1994/08/02 07:40:58 davidg Exp $ */ #include "sound_config.h" @@ -72,7 +72,6 @@ unsigned long get_time(void) { -extern struct timeval time; struct timeval timecopy; int x; @@ -345,8 +344,7 @@ sound_mem_init (void) for (snd_raw_count[dev] = 0; snd_raw_count[dev] < sound_buffcounts[dev]; snd_raw_count[dev]++) { - char *tmpbuf = contigmalloc (sound_buffsizes[dev], M_DEVBUF, M_NOWAIT, - 0xFFFFFFul, 0ul, dma_pagesize - 1); + char *tmpbuf = (char *)vm_page_alloc_contig(sound_buffsizes[dev], 0ul, 0xfffffful, dma_pagesize); if (tmpbuf == NULL) { |