summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-07-27 15:29:55 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-07-27 15:29:55 +0000
commitcd5540251c4d2dfb8583e9b9246c29f7c8ff5a4e (patch)
treecdaa5d714f72112dda6130b4035dc15486016e11 /sys/dev
parent1dc064fd5d0d37e5437e223c19aa650cf8da93db (diff)
Allow mmap. Not really working correctly yet, but almost.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/cs4281.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/pci/cs4281.c b/sys/dev/pci/cs4281.c
index fead8db04e3..a200ef379a5 100644
--- a/sys/dev/pci/cs4281.c
+++ b/sys/dev/pci/cs4281.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cs4281.c,v 1.3 2001/06/12 15:40:30 niklas Exp $ */
+/* $OpenBSD: cs4281.c,v 1.4 2001/07/27 15:29:54 art Exp $ */
/* $Tera: cs4281.c,v 1.18 2000/12/27 14:24:45 tacha Exp $ */
/*
@@ -236,7 +236,7 @@ struct audio_hw_if cs4281_hw_if = {
cs4281_malloc,
cs4281_free,
cs4281_round_buffersize,
- NULL, /* cs4281_mappage, */
+ cs4281_mappage,
cs4281_get_props,
cs4281_trigger_output,
cs4281_trigger_input,
@@ -1448,9 +1448,7 @@ cs4281_get_props(void *addr)
int retval;
retval = AUDIO_PROP_INDEPENDENT | AUDIO_PROP_FULLDUPLEX;
-#ifdef MMAP_READY
retval |= AUDIO_PROP_MMAP;
-#endif
return (retval);
}