Date: Tue, 21 Mar 2006 06:35:48 +0000 (UTC) From: Ariff Abdullah <ariff@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/sound/pcm dsp.c mixer.c sound.c sound.h Message-ID: <200603210635.k2L6ZmlL010844@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ariff 2006-03-21 06:35:48 UTC
FreeBSD src repository
Modified files:
sys/dev/sound/pcm dsp.c mixer.c sound.c sound.h
Log:
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
direction.
- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603210635.k2L6ZmlL010844>
