Subject: audio.c mode handling change
To: None <tech-kern@netbsd.org>
From: Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
List: tech-kern
Date: 10/25/2002 00:51:14
On Thu, Oct 17, 2002 at 12:07:10AM +0300, Jaromir Dolecek wrote:
> Modified Files:
> syssrc/sys/dev: audio.c
>
> Log Message:
> for AUDIO_SETINFO, silently enforce same mode as the currently used one;
> this value is supposed to be read-only for this ioctl
> cvs rdiff -r1.165 -r1.166 syssrc/sys/dev/audio.c
This change contrasts the documented behaviour, see audio(4):
The
.Va mode
field should be set to
.Dv AUMODE_PLAY ,
.Dv AUMODE_RECORD ,
.Dv AUMODE_PLAY_ALL ,
or a bitwise OR combination of the three.
This was last changed in March 1997.
I think it should be backed out.
Bye,
Thomas
--
Thomas Klausner - wiz@danbala.ifoer.tuwien.ac.at
Main Rule of Usenet: Never argue with idiots. They drag you down to
their level, then beat you with experience.