aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sound/pcm/sound.h
diff options
context:
space:
mode:
authorCameron Grant <cg@FreeBSD.org>2002-11-25 17:17:43 +0000
committerCameron Grant <cg@FreeBSD.org>2002-11-25 17:17:43 +0000
commit67beb5a5c83db8c1d868f88768c9de9049fda826 (patch)
treeac1448d81f09f0d496c1b9ce490a1df51856353d /sys/dev/sound/pcm/sound.h
parent68f4e7f1d353d95cfbb7f682b22304fe08e43a8d (diff)
various fixes to eliminate locking warnings
Approved by: re Reviewed by: orion
Notes
Notes: svn path=/head/; revision=107237
Diffstat (limited to 'sys/dev/sound/pcm/sound.h')
-rw-r--r--sys/dev/sound/pcm/sound.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/sound.h b/sys/dev/sound/pcm/sound.h
index 5966e364cdae..5038a2823525 100644
--- a/sys/dev/sound/pcm/sound.h
+++ b/sys/dev/sound/pcm/sound.h
@@ -249,9 +249,10 @@ int snd_setup_intr(device_t dev, struct resource *res, int flags,
void *snd_mtxcreate(const char *desc, const char *type);
void snd_mtxfree(void *m);
void snd_mtxassert(void *m);
+/*
void snd_mtxlock(void *m);
void snd_mtxunlock(void *m);
-
+*/
int sysctl_hw_snd_vchans(SYSCTL_HANDLER_ARGS);
typedef int (*sndstat_handler)(struct sbuf *s, device_t dev, int verbose);
@@ -280,6 +281,9 @@ int sndstat_busy(void);
#define DV_F_DEV_MASK 0x0000ff00 /* force device type/class */
#define DV_F_DEV_SHIFT 8 /* force device type/class */
+#define snd_mtxlock(m) mtx_lock(m)
+#define snd_mtxunlock(m) mtx_unlock(m)
+
#endif /* _KERNEL */
#endif /* _OS_H_ */