From 9745684ebe151a825bdef45d38da2ef82fc893d1 Mon Sep 17 00:00:00 2001 From: augustss Date: Sun, 27 Jul 1997 01:16:32 +0000 Subject: Changes to the sudio system: - It is now possible to handle devices that want "looping" DMA, e.g. the SoundBlaster correctly. The WSS and SB drivers use this. To do this several new methods were introduced in audio_hw_if. - Different silence handling (forced by previous change). - The audio driver can now be mmap()-ed, but due to problems in the VM system only for writing for now. - The OSS (Linux) audio emulation takes advantage of some of the new features. --- sys/compat/linux/multiarch/linux_oldselect.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/compat/linux/multiarch/linux_oldselect.c') diff --git a/sys/compat/linux/multiarch/linux_oldselect.c b/sys/compat/linux/multiarch/linux_oldselect.c index 32b1690d8fe..c874ae6be61 100644 --- a/sys/compat/linux/multiarch/linux_oldselect.c +++ b/sys/compat/linux/multiarch/linux_oldselect.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_oldselect.c,v 1.30 1997/04/07 14:13:16 augustss Exp $ */ +/* $NetBSD: linux_oldselect.c,v 1.31 1997/07/27 01:16:39 augustss Exp $ */ /* * Copyright (c) 1995 Frank van der Linden @@ -502,6 +502,8 @@ linux_sys_mmap(p, v, retval) SCARG(&cma,addr) = lmap.lm_addr; SCARG(&cma,len) = lmap.lm_len; + if (lmap.lm_prot & VM_PROT_WRITE) /* XXX */ + lmap.lm_prot |= VM_PROT_READ; SCARG(&cma,prot) = lmap.lm_prot; SCARG(&cma,flags) = flags; SCARG(&cma,fd) = lmap.lm_fd; -- cgit