Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F176926763
D60509.1793619013.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
475 B
Referenced Files
None
Subscribers
None
D60509.1793619013.diff
View Options
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
@@ -268,14 +268,14 @@
if (!PCM_REGISTERED(d))
return (ENODEV);
- PCM_LOCK(d);
+ PCM_ACQUIRE(d);
if (d->playcount > 0)
mode |= PCM_MODE_PLAY;
if (d->reccount > 0)
mode |= PCM_MODE_REC;
if (d->mixer != NULL)
mode |= PCM_MODE_MIXER;
- PCM_UNLOCK(d);
+ PCM_RELEASE(d);
return (sysctl_handle_int(oidp, &mode, 0, req));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 2, 11:30 AM (11 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40536904
Default Alt Text
D60509.1793619013.diff (475 B)
Attached To
Mode
D60509: sound: Busy the device in sysctl_dev_pcm_mode()
Attached
Detach File
Event Timeline