Subject: CVS commit: src/sys/dev
To: None <source-changes@netbsd.org>
From: Matthew Fredette <fredette@netbsd.org>
List: source-changes
Date: 12/20/2002 20:30:02
Module Name:	src
Committed By:	fredette
Date:		Fri Dec 20 18:30:02 UTC 2002

Modified Files:
	src/sys/dev: audio.c

Log Message:
If the user is providing a mode value in AUDIO_SETINFO, that value
cannot change the recording or playback mode of the device, it can
only change other mode-like values (like AUMODE_PLAY_ALL).  Be very
explicit about fixing up the user's mode value based on the mode of
the device.  Before, giving AUMODE_PLAY_ALL could cause AUMODE_PLAY
to become set on the device, and once AUMODE_PLAY_ALL was set it
was impossible to clear.


To generate a diff of this commit:
cvs rdiff -r1.169 -r1.170 src/sys/dev/audio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.