Messages in this thread | | | Date | Tue, 21 Apr 1998 08:13:07 +0300 (EEST) | From | Hannu Savolainen <> | Subject | Re: GETOSPACE in Sound DMA handler, mmap [hack patch] |
| |
Hi,
I recall SNDCTL_DSP_GETOSPACE ioctl has always been disabled with mmap(). At least it should be. The information returned by it is absolutely meaningless together with mmap() and it's a _MAJOR_ bug in Quake2 if it tries to use it. It's also a major error trying to fix the situation by removing this test from the driver.
SNDCTL_DSP_GETOSPACE call is intended to be used with write(). It returns the number of bytes that can be written to the device without blocking. It has no defined meaning together with mmap.
The call that Quake2 should use is SNDCTL_DSP_GETOPTR.
Best regards,
Hannu ----- Hannu Savolainen (hannu@opensound.com) http://www.fi.opensound.com/~hannu (personal) http://www.opensound.com/oss.html (Open Sound System (OSS)) http://www.opensound.com/ossfree (OSS/Free)
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |