summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/sound/pcm/sndstat.c2
-rw-r--r--sys/dev/sound/pcm/sound.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sound/pcm/sndstat.c b/sys/dev/sound/pcm/sndstat.c
index 5c44771..77c63f3 100644
--- a/sys/dev/sound/pcm/sndstat.c
+++ b/sys/dev/sound/pcm/sndstat.c
@@ -340,7 +340,7 @@ sndstat_prepare(struct sbuf *s)
static int
sndstat_init(void)
{
- mtx_init(&sndstat_lock, "sndstat", NULL, 0);
+ mtx_init(&sndstat_lock, "sndstat", NULL, MTX_DEF);
sndstat_dev = make_dev(&sndstat_cdevsw, SND_DEV_STATUS, UID_ROOT, GID_WHEEL, 0444, "sndstat");
return (sndstat_dev != 0)? 0 : ENXIO;
diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c
index a7a5851..ecf8b8d 100644
--- a/sys/dev/sound/pcm/sound.c
+++ b/sys/dev/sound/pcm/sound.c
@@ -96,7 +96,7 @@ snd_mtxcreate(const char *desc, const char *type)
m = malloc(sizeof(*m), M_DEVBUF, M_WAITOK | M_ZERO);
if (m == NULL)
return NULL;
- mtx_init(m, desc, type, MTX_RECURSE);
+ mtx_init(m, desc, type, MTX_DEF | MTX_RECURSE);
return m;
#else
return (void *)0xcafebabe;
OpenPOWER on IntegriCloud