summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcg <cg@FreeBSD.org>2000-07-30 19:36:13 +0000
committercg <cg@FreeBSD.org>2000-07-30 19:36:13 +0000
commit9446f7ff1646ceee64956ee4813cd95aebd89f39 (patch)
treef05f2605ad66453a1592796adf22af86f23607a6
parent4ab606e4852dbb08c5cd571a19d5419e353f6520 (diff)
downloadFreeBSD-src-9446f7ff1646ceee64956ee4813cd95aebd89f39.zip
FreeBSD-src-9446f7ff1646ceee64956ee4813cd95aebd89f39.tar.gz
fix a bug where opening /dev/dsp twice resulted in it being busy until reboot
-rw-r--r--sys/dev/sound/pcm/dsp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/sound/pcm/dsp.c b/sys/dev/sound/pcm/dsp.c
index 903de31..8765860 100644
--- a/sys/dev/sound/pcm/dsp.c
+++ b/sys/dev/sound/pcm/dsp.c
@@ -141,8 +141,11 @@ dsp_close(snddev_info *d, int chan, int devtype)
{
pcm_channel *rdch, *wrch;
+#if 0
+ /* enable this if/when every close() is propagated here */
d->ref[chan]--;
if (d->ref[chan]) return 0;
+#endif
d->flags &= ~SD_F_TRANSIENT;
rdch = d->arec[chan];
wrch = d->aplay[chan];
OpenPOWER on IntegriCloud