Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F175249501
D60505.id189168.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
662 B
Referenced Files
None
Subscribers
None
D60505.id189168.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
Sat, Oct 10, 10:28 AM (4 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40537937
Default Alt Text
D60505.id189168.diff (662 B)
Attached To
Mode
D60505: sound: Shut the channels down with the device busied
Attached
Detach File
Event Timeline
Log In to Comment