diff options
author | cg <cg@FreeBSD.org> | 2000-07-30 19:36:13 +0000 |
---|---|---|
committer | cg <cg@FreeBSD.org> | 2000-07-30 19:36:13 +0000 |
commit | 9446f7ff1646ceee64956ee4813cd95aebd89f39 (patch) | |
tree | f05f2605ad66453a1592796adf22af86f23607a6 /sys/dev/sound | |
parent | 4ab606e4852dbb08c5cd571a19d5419e353f6520 (diff) | |
download | FreeBSD-src-9446f7ff1646ceee64956ee4813cd95aebd89f39.zip FreeBSD-src-9446f7ff1646ceee64956ee4813cd95aebd89f39.tar.gz |
fix a bug where opening /dev/dsp twice resulted in it being busy until reboot
Diffstat (limited to 'sys/dev/sound')
-rw-r--r-- | sys/dev/sound/pcm/dsp.c | 3 |
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]; |