Re: broken pas2 ioctl followup

Hannu Savolainen (hannu@opensound.com)
Fri, 9 Jan 1998 00:47:17 +0200 (EET)


On Thu, 8 Jan 1998, Thomas Sailer wrote:

> > The return value of pas_audio_ioctl has changed. Before, it returned
> > the return value of pcm_set_channels. Now, it returns the return
> > value of __put_user.
>
> Does the following work for you?
This change will _NOT_ work and it will break lot of applications.

The return value of the low level driver is significant and it's the value
that has to be returned to the application. The low level driver doesn't
always return the same value as requested by the application.

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/TASD/VoxWare)