Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177118106
D60505.1793830543.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
662 B
Referenced Files
None
Subscribers
None
D60505.1793830543.diff
View Options
diff --git a/sys/dev/sound/pcm/channel.c b/sys/dev/sound/pcm/channel.c
--- a/sys/dev/sound/pcm/channel.c
+++ b/sys/dev/sound/pcm/channel.c
@@ -1348,6 +1348,7 @@
{
struct pcm_channel *c;
+ PCM_BUSYASSERT(d);
KASSERT(!PCM_REGISTERED(d), ("%s(): still registered\n", __func__));
CHN_FOREACH(c, d, channels.pcm) {
diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c
--- a/sys/dev/sound/pcm/sound.c
+++ b/sys/dev/sound/pcm/sound.c
@@ -411,9 +411,8 @@
PCM_ACQUIRE(d);
d->flags &= ~SD_F_REGISTERED;
- PCM_RELEASE(d);
-
chn_shutdownall(d);
+ PCM_RELEASE(d);
/*
* Destroy the dsp cdev before freeing resources, otherwise threads
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 4, 10:15 PM (17 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41415097
Default Alt Text
D60505.1793830543.diff (662 B)
Attached To
Mode
D60505: sound: Shut the channels down with the device busied
Attached
Detach File
Event Timeline