summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound
diff options
context:
space:
mode:
authornsayer <nsayer@FreeBSD.org>2002-08-24 19:13:11 +0000
committernsayer <nsayer@FreeBSD.org>2002-08-24 19:13:11 +0000
commit650738429c3e7b69bcd7f750722da6a4d8c7d6fd (patch)
tree072303a3a71a282e96225d0fc36fc09d43562a99 /sys/dev/sound
parentc7f77c221c37ee1b8b8ff2a8fb2e17384cca4582 (diff)
downloadFreeBSD-src-650738429c3e7b69bcd7f750722da6a4d8c7d6fd.zip
FreeBSD-src-650738429c3e7b69bcd7f750722da6a4d8c7d6fd.tar.gz
Be sure to unregister from sndstat on unregister. Gets rid of phantom
sndstat output after removing uaudio.
Diffstat (limited to 'sys/dev/sound')
-rw-r--r--sys/dev/sound/pcm/sound.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c
index 8fe48a2..a733abf 100644
--- a/sys/dev/sound/pcm/sound.c
+++ b/sys/dev/sound/pcm/sound.c
@@ -691,6 +691,7 @@ pcm_unregister(device_t dev)
chn_kill(d->fakechan);
fkchan_kill(d->fakechan);
+ sndstat_unregister(dev);
snd_mtxfree(d->lock);
return 0;
}
OpenPOWER on IntegriCloud