aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sound/pcm/dsp.c
diff options
context:
space:
mode:
authorChristos Margiolis <christos@FreeBSD.org>2024-04-05 10:27:47 +0000
committerChristos Margiolis <christos@FreeBSD.org>2024-04-05 10:33:23 +0000
commit365067e98e4e9deba18070f5ebd4e9eee7149b6d (patch)
tree04666b5635d80fcf59a7a14691d41b682557a85f /sys/dev/sound/pcm/dsp.c
parent5ffb19ac36c4b5c9e72d69048250c8e56acff739 (diff)
downloadsrc-365067e98e4e9deba18070f5ebd4e9eee7149b6d.tar.gz
src-365067e98e4e9deba18070f5ebd4e9eee7149b6d.zip
Revert "sound: Implement asynchronous device detach"
This reverts commit 9eff58c6d52b66eb8abe7f724dabcd804a566df4. We are reverting dc831e93bad6 ("sound: Get rid of snd_clone and use DEVFS_CDEVPRIV(9)"), so revert this commit as well since it depends dc831e93bad6.
Diffstat (limited to 'sys/dev/sound/pcm/dsp.c')
-rw-r--r--sys/dev/sound/pcm/dsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/dsp.c b/sys/dev/sound/pcm/dsp.c
index 754f09c7199e..b9693908da43 100644
--- a/sys/dev/sound/pcm/dsp.c
+++ b/sys/dev/sound/pcm/dsp.c
@@ -295,7 +295,7 @@ dsp_close(void *data)
d = priv->sc;
/* At this point pcm_unregister() will destroy all channels anyway. */
- if (PCM_DETACHING(d))
+ if (!PCM_REGISTERED(d))
goto skip;
PCM_GIANT_ENTER(d);