diff options
author | nsayer <nsayer@FreeBSD.org> | 2002-08-24 19:13:11 +0000 |
---|---|---|
committer | nsayer <nsayer@FreeBSD.org> | 2002-08-24 19:13:11 +0000 |
commit | 650738429c3e7b69bcd7f750722da6a4d8c7d6fd (patch) | |
tree | 072303a3a71a282e96225d0fc36fc09d43562a99 /sys/dev/sound/pcm/sound.c | |
parent | c7f77c221c37ee1b8b8ff2a8fb2e17384cca4582 (diff) | |
download | FreeBSD-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/pcm/sound.c')
-rw-r--r-- | sys/dev/sound/pcm/sound.c | 1 |
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; } |