lkml.org 
[lkml]   [1998]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.035 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site