Subject: Re: CVS commit: src/sys/dev
To: None <fredette@netbsd.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: source-changes
Date: 12/22/2002 19:22:15
Isn't the change verbose way for:

	info->mode &= ~(AUMODE_PLAY|AUMODE_PLAY_ALL|AUMODE_RECORD);

Jaromir

Matthew Fredette wrote:
> 
> 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.
> 


-- 
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.org/
-=- We should be mindful of the potential goal, but as the tantric    -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow.   Do not let this distract you.''     -=-