cvs commit: src/sys/dev/sound/pcm dsp.c mixer.c sound.c sound.h
ariff at FreeBSD.org
Tue Mar 21 06:35:50 UTC 2006
ariff 2006-03-21 06:35:48 UTC
FreeBSD src repository
sys/dev/sound/pcm dsp.c mixer.c sound.c sound.h
Apply more thorough fixes while dealing with device opening and closing:
- Determine open direction using 'flags', not 'mode'. This bug exist since
past 4 years.
- Don't allow opening the same device twice, be it in a same or different
- O_RDWR is allowed, provided that it is done by a single open (for example
by mixer(8)) and the underlying hardware support true full-duplex operation.
- Do various paranoid checking in case other process/thread trying to hijack
the same device twice (or more).
MFC after: 5 days
Revision Changes Path
1.94 +73 -91 src/sys/dev/sound/pcm/dsp.c
1.49 +13 -1 src/sys/dev/sound/pcm/mixer.c
1.101 +188 -92 src/sys/dev/sound/pcm/sound.c
1.68 +1 -1 src/sys/dev/sound/pcm/sound.h
More information about the cvs-all