Page MenuHomeFreeBSD

D60509.diff
No OneTemporary

D60509.diff

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

Mime Type
text/plain
Expires
Sat, Oct 10, 9:35 AM (3 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40536904
Default Alt Text
D60509.diff (475 B)

Event Timeline