Re: Poll and OSS API

2000-11-03 Thread Jeff Garzik
Linus Torvalds wrote: > Considering that about 100% of the sound drivers do not follow that > particular API damage anyway (they can't, as has been pointed out: the > driver doesn't even receive enough information to be _able_ to follow the > documented API), I doubt that there are all that many

Re: Poll and OSS API

2000-11-03 Thread Jeff Garzik
Linus Torvalds wrote: > > On Sat, 4 Nov 2000, Jeff Garzik wrote: > > > So fix the stupid API. > > > > > > The above is just idiocy. > > > > We're pretty much stuck with the API, until we look at merging ALSA in > > 2.5.x. Broken API or not, OSS is a mature API, and there are > > spec-correct

Re: Poll and OSS API

2000-11-03 Thread Linus Torvalds
On Sat, 4 Nov 2000, Jeff Garzik wrote: > > So fix the stupid API. > > > > The above is just idiocy. > > We're pretty much stuck with the API, until we look at merging ALSA in > 2.5.x. Broken API or not, OSS is a mature API, and there are > spec-correct apps that depend on this behavior.

Re: Poll and OSS API

2000-11-03 Thread Jeff Garzik
Linus Torvalds wrote: > > On Thu, 2 Nov 2000, Thomas Sailer wrote: > > > > The OSS API (http://www.opensound.com/pguide/oss.pdf, page 102ff) > > specifies that a select _with the sounddriver's filedescriptor > > set in the read mask_ should start the recording. > > So fix the stupid API. > >

Re: Poll and OSS API

2000-11-03 Thread Jeff Garzik
Linus Torvalds wrote: On Thu, 2 Nov 2000, Thomas Sailer wrote: The OSS API (http://www.opensound.com/pguide/oss.pdf, page 102ff) specifies that a select _with the sounddriver's filedescriptor set in the read mask_ should start the recording. So fix the stupid API. The above is

Re: Poll and OSS API

2000-11-03 Thread Linus Torvalds
On Sat, 4 Nov 2000, Jeff Garzik wrote: So fix the stupid API. The above is just idiocy. We're pretty much stuck with the API, until we look at merging ALSA in 2.5.x. Broken API or not, OSS is a mature API, and there are spec-correct apps that depend on this behavior. Considering

Re: Poll and OSS API

2000-11-03 Thread Jeff Garzik
Linus Torvalds wrote: On Sat, 4 Nov 2000, Jeff Garzik wrote: So fix the stupid API. The above is just idiocy. We're pretty much stuck with the API, until we look at merging ALSA in 2.5.x. Broken API or not, OSS is a mature API, and there are spec-correct apps that depend on

Re: Poll and OSS API

2000-11-03 Thread Jeff Garzik
Linus Torvalds wrote: Considering that about 100% of the sound drivers do not follow that particular API damage anyway (they can't, as has been pointed out: the driver doesn't even receive enough information to be _able_ to follow the documented API), I doubt that there are all that many

Re: Poll and OSS API

2000-11-02 Thread Alan Cox
> On Thu, 2 Nov 2000, Thomas Sailer wrote: > > > > The OSS API (http://www.opensound.com/pguide/oss.pdf, page 102ff) > > specifies that a select _with the sounddriver's filedescriptor > > set in the read mask_ should start the recording. > > So fix the stupid API. > The above is just idiocy.

Re: Poll and OSS API

2000-11-02 Thread Linus Torvalds
On Thu, 2 Nov 2000, Thomas Sailer wrote: > > The OSS API (http://www.opensound.com/pguide/oss.pdf, page 102ff) > specifies that a select _with the sounddriver's filedescriptor > set in the read mask_ should start the recording. So fix the stupid API. The above is just idiocy.

Re: Poll and OSS API

2000-11-02 Thread Jeff Garzik
Thomas Sailer wrote: > > The OSS API (http://www.opensound.com/pguide/oss.pdf, page 102ff) > specifies that a select _with the sounddriver's filedescriptor > set in the read mask_ should start the recording. > > Implementing this is currently not possible, as the driver does > not get to know

Re: Poll and OSS API

2000-11-02 Thread Jeff Garzik
"Richard B. Johnson" wrote: > The specification is bogus and should be fixed. select() is not > a function that was designed to start/stop anything. Writing > a specification to qualify some particular implementation's > side-affects is patently wrong. ioctl() was designed to control > things. >

Re: Poll and OSS API

2000-11-02 Thread Thomas Sailer
"Richard B. Johnson" wrote: > The specification is bogus and should be fixed. select() is not Don't tell me, I didn't write that spec. > side-affects is patently wrong. ioctl() was designed to control > things. It already exists, ioctl(fd, SNDCTL_DSP_SETTRIGGER, PCM_ENABLE_INPUT). If we

Re: Poll and OSS API

2000-11-02 Thread Richard B. Johnson
On Thu, 2 Nov 2000, Thomas Sailer wrote: > The OSS API (http://www.opensound.com/pguide/oss.pdf, page 102ff) > specifies that a select _with the sounddriver's filedescriptor > set in the read mask_ should start the recording. > > Implementing this is currently not possible, as the driver does >

Poll and OSS API

2000-11-02 Thread Thomas Sailer
The OSS API (http://www.opensound.com/pguide/oss.pdf, page 102ff) specifies that a select _with the sounddriver's filedescriptor set in the read mask_ should start the recording. Implementing this is currently not possible, as the driver does not get to know whether the application had the

Poll and OSS API

2000-11-02 Thread Thomas Sailer
The OSS API (http://www.opensound.com/pguide/oss.pdf, page 102ff) specifies that a select _with the sounddriver's filedescriptor set in the read mask_ should start the recording. Implementing this is currently not possible, as the driver does not get to know whether the application had the

Re: Poll and OSS API

2000-11-02 Thread Richard B. Johnson
On Thu, 2 Nov 2000, Thomas Sailer wrote: The OSS API (http://www.opensound.com/pguide/oss.pdf, page 102ff) specifies that a select _with the sounddriver's filedescriptor set in the read mask_ should start the recording. Implementing this is currently not possible, as the driver does not

Re: Poll and OSS API

2000-11-02 Thread Thomas Sailer
"Richard B. Johnson" wrote: The specification is bogus and should be fixed. select() is not Don't tell me, I didn't write that spec. side-affects is patently wrong. ioctl() was designed to control things. It already exists, ioctl(fd, SNDCTL_DSP_SETTRIGGER, PCM_ENABLE_INPUT). If we

Re: Poll and OSS API

2000-11-02 Thread Jeff Garzik
"Richard B. Johnson" wrote: The specification is bogus and should be fixed. select() is not a function that was designed to start/stop anything. Writing a specification to qualify some particular implementation's side-affects is patently wrong. ioctl() was designed to control things. You

Re: Poll and OSS API

2000-11-02 Thread Jeff Garzik
Thomas Sailer wrote: The OSS API (http://www.opensound.com/pguide/oss.pdf, page 102ff) specifies that a select _with the sounddriver's filedescriptor set in the read mask_ should start the recording. Implementing this is currently not possible, as the driver does not get to know whether

Re: Poll and OSS API

2000-11-02 Thread Linus Torvalds
On Thu, 2 Nov 2000, Thomas Sailer wrote: The OSS API (http://www.opensound.com/pguide/oss.pdf, page 102ff) specifies that a select _with the sounddriver's filedescriptor set in the read mask_ should start the recording. So fix the stupid API. The above is just idiocy.

Re: Poll and OSS API

2000-11-02 Thread Alan Cox
On Thu, 2 Nov 2000, Thomas Sailer wrote: The OSS API (http://www.opensound.com/pguide/oss.pdf, page 102ff) specifies that a select _with the sounddriver's filedescriptor set in the read mask_ should start the recording. So fix the stupid API. The above is just idiocy. Its a